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

Contents of /gnome-base/gnome-applets/gnome-applets-2.30.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 14 11:27:31 2010 UTC (8 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Revision bump to really install battstat applet when requested since configure doesn't honor use_enable (thanks to rafnov for noticing). Also drop doc USE flag since it is not used at all.
(Portage version: 2.1.8.3/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.30.0.ebuild,v 1.2 2010/07/12 13:14:51 pacho Exp $
4
5 inherit 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 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
13 IUSE="battstat 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 HALDEPEND=" hal? ( >=sys-apps/hal-0.5.3 ) "
19 RDEPEND=">=x11-libs/gtk+-2.13
20 >=dev-libs/glib-2.22.0
21 >=gnome-base/gconf-2.8
22 >=gnome-base/gnome-panel-2.13.4
23 >=x11-libs/libxklavier-4.0
24 >=x11-libs/libwnck-2.9.3
25 >=gnome-base/gnome-desktop-2.11.1
26 >=x11-libs/libnotify-0.3.2
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 x11-libs/libX11
34
35 battstat? ( $HALDEPEND )
36 gnome? (
37 >=gnome-base/libgnomekbd-2.21.4.1
38 gnome-base/gnome-settings-daemon
39
40 >=gnome-extra/gucharmap-2.23
41 >=gnome-base/libgtop-2.11.92
42
43 >=dev-python/pygobject-2.6
44 >=dev-python/pygtk-2.6
45 >=dev-python/libgnome-python-2.10
46 >=dev-python/gconf-python-2.10
47 >=dev-python/gnome-applets-python-2.10 )
48 gstreamer? (
49 >=media-libs/gstreamer-0.10.2
50 >=media-libs/gst-plugins-base-0.10.14
51 || (
52 >=media-plugins/gst-plugins-alsa-0.10.14
53 >=media-plugins/gst-plugins-oss-0.10.14 ) )
54 networkmanager? ( >=net-misc/networkmanager-0.7.0 )
55 policykit? ( >=sys-auth/polkit-0.92 )"
56
57 DEPEND="${RDEPEND}
58 >=app-text/scrollkeeper-0.1.4
59 >=app-text/gnome-doc-utils-0.3.2
60 >=dev-util/pkgconfig-0.19
61 >=dev-util/intltool-0.35
62 dev-libs/libxslt
63 ~app-text/docbook-xml-dtd-4.3
64 doc? ( app-text/docbook-sgml-utils )"
65
66 DOCS="AUTHORS ChangeLog NEWS README"
67
68 src_unpack() {
69 gnome2_src_unpack
70
71 # disable pyc compiling
72 mv py-compile py-compile.orig
73 ln -s $(type -P true) py-compile
74
75 # Invest applet tests need gconf/proxy/...
76 sed 's/^TESTS.*/TESTS=/g' -i invest-applet/invest/Makefile.am \
77 invest-applet/invest/Makefile.in || die "disabling invest tests failed"
78
79 # Fix intltoolize broken file, see upstream #577133
80 sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in \
81 || die "intltool rules fix failed"
82 }
83
84 pkg_setup() {
85 G2CONF="${G2CONF}
86 --disable-scrollkeeper
87 --disable-schemas-install
88 --without-hal
89 $(use_enable gstreamer mixer-applet)
90 $(use_enable battstat)
91 $(use_enable ipv6)
92 $(use_enable networkmanager)
93 $(use_enable policykit polkit)"
94
95 if use battstat; then
96 G2CONF="${G2CONF} $(use_with hal)"
97 fi
98 }
99
100 src_test() {
101 unset DBUS_SESSION_BUS_ADDRESS
102 emake check || die "emake check failed"
103 }
104
105 src_install() {
106 gnome2_src_install
107
108 local APPLETS="accessx-status battstat charpick cpufreq drivemount geyes
109 gkb-new gswitchit gweather invest-applet mini-commander
110 mixer modemlights multiload null_applet stickynotes trashapplet"
111
112 # modemlights is out because it needs system-tools-backends-1
113
114 for applet in ${APPLETS} ; do
115 docinto ${applet}
116
117 for d in AUTHORS ChangeLog NEWS README README.themes TODO ; do
118 [ -s ${applet}/${d} ] && dodoc ${applet}/${d}
119 done
120 done
121 }
122
123 pkg_postinst() {
124 gnome2_pkg_postinst
125
126 if use battstat && ! use hal ; then
127 elog "It is highly recommended that you install acpid if you use the"
128 elog "battstat applet to prevent any issues with other applications"
129 elog "trying to read acpi information."
130 fi
131
132 # check for new python modules on bumps
133 python_mod_optimize $(python_get_sitedir)/invest
134 }
135
136 pkg_postrm() {
137 gnome2_pkg_postrm
138 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/invest
139 }

  ViewVC Help
Powered by ViewVC 1.1.20