blob: e6207e6cd91b569d66199cae4070c1225af19021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.35.4.ebuild,v 1.5 2007/03/08 07:25:02 opfer Exp $
WANT_AUTOMAKE=latest
WANT_AUTOCONF=latest
inherit gnome2 eutils autotools multilib
MY_PN="gDesklets"
MY_P="${MY_PN}-${PV/_/}"
S=${WORKDIR}/${MY_P}
DESCRIPTION="GNOME Desktop Applets: Core library for desktop applets"
SRC_URI="http://www.gdesklets.de/files/${MY_P}.tar.bz2 \
doc? ( mirror://gentoo/gdesklets-develbook-${PV}.tar.bz2 )"
HOMEPAGE="http://www.gdesklets.de"
LICENSE="GPL-2"
SLOT="0"
IUSE="doc"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc x86"
RDEPEND=">=dev-lang/python-2.3
>=dev-libs/glib-2.4
>=gnome-base/librsvg-2.8
>=gnome-base/libgtop-2.8.2
>=dev-python/pygtk-2.4
>=dev-python/gnome-python-2.6
>=dev-libs/expat-1.95.8
>=dev-python/pyxml-0.8.3-r1"
DEPEND="${RDEPEND}
sys-devel/gettext
dev-util/pkgconfig
dev-util/intltool"
USE_DESTDIR="1"
DOCS="AUTHORS ChangeLog NEWS README TODO"
src_unpack() {
unpack ${A}
# Apply patch to correct POTFILES.in so testing will work
cd ${S}
epatch ${FILESDIR}/${P}-POTFILES.in.patch
}
src_install() {
gnome2_src_install
# Install the gdesklets-control-getid script
insinto /usr/$(get_libdir)/gdesklets
insopts -m0555
doins ${FILESDIR}/gdesklets-control-getid
# Create a global directory for Displays
dodir /usr/$(get_libdir)/gdesklets/Displays
# Install the Developer's Book
use doc && \
einfo "Installing the Developer's Book into" && \
einfo "/usr/share/doc/${PF}/html" && \
dohtml -r ${WORKDIR}/gdesklets-develbook/*
# Install the man page
doman ${S}/doc/man/*.1
# Remove conflicts with x11-misc/shared-mime-info and auto-generated MIME info
rm -rf ${D}/usr/share/mime/aliases ${D}/usr/share/mime/magic ${D}/usr/share/mime/globs \
${D}/usr/share/mime/subclasses ${D}/usr/share/mime/XMLnamespaces ${D}/usr/share/mime/mime.cache
}
pkg_postinst() {
gnome2_pkg_postinst
echo
einfo "gDesklets Displays are required before the library"
einfo "will be usable. The displays are found in -"
einfo " x11-plugins/desklet-*"
einfo "at http://www.gdesklets.de, or at http://gdesklets.zencomputer.ca"
echo
einfo "Next you'll need to start gdesklets using"
einfo " /usr/bin/gdesklets start"
einfo "If you're using GNOME this can be done conveniently"
einfo "through Applications->Accessories->gDesklets"
echo
einfo "If you're updating from a version less than 0.35_rc1,"
einfo "you can migrate your desklet configurations by"
einfo "running"
einfo " /usr/lib/gdesklets/gdesklets-migration-tool"
einfo "after the first time you run gdesklets"
echo
# This stuff is important, especially the migration-tool
# information which flies by on an update.
epause 9
}
|