/[gentoo-x86]/gnome-base/gnome-applets/gnome-applets-2.26.3-r1.ebuild
Gentoo

Contents of /gnome-base/gnome-applets/gnome-applets-2.26.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Oct 20 16:31:36 2010 UTC (8 years, 8 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.1.9.19/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-applets/gnome-applets-2.26.3-r1.ebuild,v 1.7 2010/07/20 15:34:01 jer Exp $
4
5 inherit autotools eutils gnome2 python
6
7 DESCRIPTION="Applets for the GNOME Desktop and Panel"
8 HOMEPAGE="http://www.gnome.org/"
9
10 LICENSE="GPL-2 FDL-1.1 LGPL-2"
11 SLOT="2"
12 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
13 IUSE="acpi apm doc gnome gstreamer hal ipv6 networkmanager policykit"
14
15 # TODO: configure says python stuff is optional
16 # my secret script says cpufrequtils might be needed in RDEPEND
17
18 RDEPEND=">=x11-libs/gtk+-2.13
19 >=dev-libs/glib-2.18.0
20 >=gnome-base/gconf-2.8
21 >=gnome-base/gnome-panel-2.13.4
22 >=x11-libs/libxklavier-2.91
23 >=x11-libs/libwnck-2.9.3
24 >=gnome-base/gnome-desktop-2.11.1
25 >=x11-libs/libnotify-0.3.2
26 hal? ( >=sys-apps/hal-0.5.3 )
27 >=sys-apps/dbus-1.1.2
28 >=dev-libs/dbus-glib-0.74
29 >=dev-libs/libxml2-2.5.0
30 >=x11-themes/gnome-icon-theme-2.15.91
31 >=dev-libs/libgweather-2.22.1
32 >=virtual/python-2.4
33 apm? ( sys-apps/apmd )
34 x11-libs/libX11
35 gnome? (
36 >=gnome-base/libgnomekbd-2.21.4.1
37 gnome-base/gnome-settings-daemon
38
39 >=gnome-extra/gucharmap-2.23
40 >=gnome-base/libgtop-2.11.92
41
42 >=dev-python/pygobject-2.6
43 >=dev-python/pygtk-2.6
44 >=dev-python/libgnome-python-2.10
45 >=dev-python/gconf-python-2.10
46 >=dev-python/gnome-applets-python-2.10 )
47 gstreamer? (
48 >=media-libs/gstreamer-0.10.2
49 >=media-libs/gst-plugins-base-0.10.14
50 || (
51 >=media-plugins/gst-plugins-alsa-0.10.14
52 >=media-plugins/gst-plugins-oss-0.10.14 ) )
53 networkmanager? ( >=net-misc/networkmanager-0.7.0 )
54 policykit? (
55 >=sys-auth/policykit-0.7
56 >=gnome-extra/policykit-gnome-0.7 )"
57
58 DEPEND="${RDEPEND}
59 >=app-text/scrollkeeper-0.1.4
60 >=app-text/gnome-doc-utils-0.3.2
61 >=dev-util/pkgconfig-0.19
62 >=dev-util/intltool-0.35
63 dev-libs/libxslt
64 ~app-text/docbook-xml-dtd-4.3
65 doc? ( app-text/docbook-sgml-utils )"
66
67 DOCS="AUTHORS ChangeLog NEWS README"
68
69 src_unpack() {
70 gnome2_src_unpack
71
72 # disable pyc compiling
73 mv py-compile py-compile.orig
74 ln -s $(type -P true) py-compile
75
76 # Networmanager is automagic, bug #266056
77 epatch "${FILESDIR}/${PN}-2.26.1-automagic-networkmanager.patch"
78
79 # Make it libtool-1 compatible, bug #266248
80 rm -v m4/lt* m4/libtool.m4 || die "removing libtool macros failed"
81
82 # Invest applet tests need gconf/proxy/...
83 sed 's/^TESTS.*/TESTS=/g' -i invest-applet/invest/Makefile.am \
84 invest-applet/invest/Makefile.in || die "disabling invest tests failed"
85
86 # Fix documentation validation, upstream bug #589058
87 epatch "${FILESDIR}/${P}-documentation-fix.patch"
88
89 intltoolize --force --copy --automake || die "intltoolize failed"
90 eautoreconf
91 }
92
93 pkg_setup() {
94 G2CONF="${G2CONF}
95 --disable-scrollkeeper
96 --disable-schemas-install
97 --enable-flags
98 $(use_enable gstreamer mixer-applet)
99 $(use_with hal)
100 $(use_enable ipv6)
101 $(use_enable networkmanager)
102 $(use_enable policykit polkit)"
103
104 if ! use ppc && ! use apm && ! use acpi; then
105 G2CONF="${G2CONF} --disable-battstat"
106 fi
107
108 if use ppc && ! use apm; then
109 G2CONF="${G2CONF} --disable-battstat"
110 fi
111 }
112
113 src_test() {
114 unset DBUS_SESSION_BUS_ADDRESS
115 emake check || die "emake check failed"
116 }
117
118 src_install() {
119 gnome2_src_install
120
121 local APPLETS="accessx-status battstat charpick cpufreq drivemount geyes
122 gkb-new gswitchit gweather invest-applet mini-commander
123 mixer modemlights multiload null_applet stickynotes trashapplet"
124
125 # modemlights is out because it needs system-tools-backends-1
126
127 for applet in ${APPLETS} ; do
128 docinto ${applet}
129
130 for d in AUTHORS ChangeLog NEWS README README.themes TODO ; do
131 [ -s ${applet}/${d} ] && dodoc ${applet}/${d}
132 done
133 done
134 }
135
136 pkg_postinst() {
137 gnome2_pkg_postinst
138
139 if use acpi && ! use hal ; then
140 elog "It is highly recommended that you install acpid if you use the"
141 elog "battstat applet to prevent any issues with other applications "
142 elog "trying to read acpi information."
143 fi
144
145 # check for new python modules on bumps
146 python_mod_optimize $(python_get_sitedir)/invest
147 }
148
149 pkg_postrm() {
150 gnome2_pkg_postrm
151 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/invest
152 }

  ViewVC Help
Powered by ViewVC 1.1.20