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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Dec 4 00:53:02 2010 UTC (8 years, 6 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump with bugfixes and translation updates, remove old.

(Portage version: 2.1.9.25/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.32.0.ebuild,v 1.4 2010/11/02 02:04:10 ford_prefect Exp $
4
5 EAPI="3"
6 GCONF_DEBUG="no"
7 PYTHON_DEPEND="2:2.4"
8
9 inherit eutils gnome2 python
10
11 DESCRIPTION="Applets for the GNOME Desktop and Panel"
12 HOMEPAGE="http://www.gnome.org/"
13
14 LICENSE="GPL-2 FDL-1.1 LGPL-2"
15 SLOT="2"
16 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
17 IUSE="battstat gnome gstreamer hal ipv6 networkmanager policykit"
18
19 # TODO: configure says python stuff is optional
20 HALDEPEND=" hal? ( >=sys-apps/hal-0.5.3 ) "
21 RDEPEND=">=x11-libs/gtk+-2.20:2
22 >=dev-libs/glib-2.22:2
23 >=gnome-base/gconf-2.8
24 >=gnome-base/gnome-panel-2.31.2
25 >=x11-libs/libxklavier-4.0
26 >=x11-libs/libwnck-2.9.3
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
32 >=x11-themes/gnome-icon-theme-2.15.91
33 >=dev-libs/libgweather-2.22.1
34 x11-libs/libX11
35
36 battstat? ( $HALDEPEND )
37 gnome? (
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
65 pkg_setup() {
66 DOCS="AUTHORS ChangeLog NEWS README"
67 G2CONF="${G2CONF}
68 --disable-scrollkeeper
69 --disable-schemas-install
70 $(use_enable gstreamer mixer-applet)
71 $(use_enable ipv6)
72 $(use_enable networkmanager)
73 $(use_enable policykit polkit)"
74
75 if use battstat; then
76 G2CONF="${G2CONF} $(use_with hal)"
77 else
78 G2CONF="${G2CONF} --without-hal --disable-battstat"
79 fi
80
81 python_set_active_version 2
82 }
83
84 src_prepare() {
85 gnome2_src_prepare
86
87 # disable pyc compiling
88 mv py-compile py-compile.orig
89 ln -s $(type -P true) py-compile
90
91 # Invest applet tests need gconf/proxy/...
92 sed 's/^TESTS.*/TESTS=/g' -i invest-applet/invest/Makefile.am \
93 invest-applet/invest/Makefile.in || die "disabling invest tests failed"
94
95 python_convert_shebangs -r 2 .
96 }
97
98 src_test() {
99 unset DBUS_SESSION_BUS_ADDRESS
100 emake check || die "emake check failed"
101 }
102
103 src_install() {
104 gnome2_src_install
105
106 local APPLETS="accessx-status battstat charpick cpufreq drivemount geyes
107 gkb-new gswitchit gweather invest-applet mini-commander
108 mixer modemlights multiload null_applet stickynotes trashapplet"
109
110 # modemlights is out because it needs system-tools-backends-1
111
112 for applet in ${APPLETS} ; do
113 docinto ${applet}
114
115 for d in AUTHORS ChangeLog NEWS README README.themes TODO ; do
116 [ -s ${applet}/${d} ] && dodoc ${applet}/${d}
117 done
118 done
119 }
120
121 pkg_postinst() {
122 gnome2_pkg_postinst
123
124 if use battstat && ! use hal ; then
125 elog "It is highly recommended that you install acpid if you use the"
126 elog "battstat applet to prevent any issues with other applications"
127 elog "trying to read acpi information."
128 fi
129
130 # check for new python modules on bumps
131 python_mod_optimize invest
132 }
133
134 pkg_postrm() {
135 gnome2_pkg_postrm
136 python_mod_cleanup invest
137 }

  ViewVC Help
Powered by ViewVC 1.1.20