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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Mar 27 10:11:58 2011 UTC (8 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)

1 # Copyright 1999-2011 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-r1.ebuild,v 1.10 2011/03/16 10:34:27 nirbheek Exp $
4
5 EAPI="1"
6
7 inherit eutils gnome2 python
8
9 DESCRIPTION="Applets for the GNOME Desktop and Panel"
10 HOMEPAGE="http://www.gnome.org/"
11
12 LICENSE="GPL-2 FDL-1.1 LGPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
15 IUSE="battstat gnome gstreamer hal ipv6 networkmanager policykit"
16
17 # TODO: configure says python stuff is optional
18 # my secret script says cpufrequtils might be needed in RDEPEND
19
20 HALDEPEND=" hal? ( >=sys-apps/hal-0.5.3 ) "
21 RDEPEND=">=x11-libs/gtk+-2.13:2
22 >=dev-libs/glib-2.22.0:2
23 >=gnome-base/gconf-2.8:2
24 >=gnome-base/gnome-panel-2.13.4
25 >=x11-libs/libxklavier-4.0
26 >=x11-libs/libwnck-2.9.3:1
27 >=gnome-base/gnome-desktop-2.11.1:2
28 >=x11-libs/libnotify-0.3.2
29 >=sys-apps/dbus-1.1.2
30 >=dev-libs/dbus-glib-0.74
31 >=dev-libs/libxml2-2.5.0:2
32 >=x11-themes/gnome-icon-theme-2.15.91
33 >=dev-libs/libgweather-2.22.1:2
34 =virtual/python-2*
35 x11-libs/libX11
36
37 battstat? ( $HALDEPEND )
38 gnome? (
39 gnome-base/gnome-settings-daemon
40
41 >=gnome-extra/gucharmap-2.23
42 >=gnome-base/libgtop-2.11.92:2
43
44 >=dev-python/pygobject-2.6:2
45 >=dev-python/pygtk-2.6:2
46 >=dev-python/libgnome-python-2.10:2
47 >=dev-python/gconf-python-2.10:2
48 >=dev-python/gnome-applets-python-2.10 )
49 gstreamer? (
50 >=media-libs/gstreamer-0.10.2:0.10
51 >=media-libs/gst-plugins-base-0.10.14:0.10
52 || (
53 >=media-plugins/gst-plugins-alsa-0.10.14:0.10
54 >=media-plugins/gst-plugins-oss-0.10.14:0.10 ) )
55 networkmanager? ( >=net-misc/networkmanager-0.7.0 )
56 policykit? ( >=sys-auth/polkit-0.92 )"
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
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
80 pkg_setup() {
81 G2CONF="${G2CONF}
82 --disable-scrollkeeper
83 --disable-schemas-install
84 $(use_enable gstreamer mixer-applet)
85 $(use_enable ipv6)
86 $(use_enable networkmanager)
87 $(use_enable policykit polkit)"
88
89 if use battstat; then
90 G2CONF="${G2CONF} $(use_with hal)"
91 else
92 G2CONF="${G2CONF} --without-hal --disable-battstat"
93 fi
94 }
95
96 src_test() {
97 unset DBUS_SESSION_BUS_ADDRESS
98 emake check || die "emake check failed"
99 }
100
101 src_install() {
102 gnome2_src_install
103
104 local APPLETS="accessx-status battstat charpick cpufreq drivemount geyes
105 gkb-new gswitchit gweather invest-applet mini-commander
106 mixer modemlights multiload null_applet stickynotes trashapplet"
107
108 # modemlights is out because it needs system-tools-backends-1
109
110 for applet in ${APPLETS} ; do
111 docinto ${applet}
112
113 for d in AUTHORS ChangeLog NEWS README README.themes TODO ; do
114 [ -s ${applet}/${d} ] && dodoc ${applet}/${d}
115 done
116 done
117 }
118
119 pkg_postinst() {
120 gnome2_pkg_postinst
121
122 if use battstat && ! use hal ; then
123 elog "It is highly recommended that you install acpid if you use the"
124 elog "battstat applet to prevent any issues with other applications"
125 elog "trying to read acpi information."
126 fi
127
128 # check for new python modules on bumps
129 python_mod_optimize $(python_get_sitedir)/invest
130 }
131
132 pkg_postrm() {
133 gnome2_pkg_postrm
134 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/invest
135 }

  ViewVC Help
Powered by ViewVC 1.1.20