blob: df97274ea6ae88952fbcc80699665fb358b9e1a9 (
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-applets/gnome-applets-2.32.1.1-r2.ebuild,v 1.9 2014/01/05 08:40:17 tetromino Exp $
EAPI="4"
GCONF_DEBUG="no"
GNOME_TARBALL_SUFFIX="bz2"
PYTHON_DEPEND="2:2.5"
inherit eutils gnome2 python autotools
DESCRIPTION="Applets for the GNOME Desktop and Panel"
HOMEPAGE="http://www.gnome.org/"
LICENSE="GPL-2 FDL-1.1 LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
IUSE="+cpufreq gstreamer ipv6 networkmanager policykit"
# TODO: configure says python stuff is optional
# null applet still needs bonobo support for gnome-panel
RDEPEND=">=x11-libs/gtk+-2.20:2
>=dev-libs/glib-2.22:2
>=gnome-base/gconf-2.8:2
>=gnome-base/gnome-panel-2.31.2[bonobo]
>=x11-libs/libxklavier-4.0
>=x11-libs/libwnck-2.9.3:1
>=gnome-base/gnome-desktop-2.11.1:2
>=x11-libs/libnotify-0.3.2
>=sys-apps/dbus-1.1.2
>=dev-libs/dbus-glib-0.74
>=dev-libs/libxml2-2.5.0:2
>=x11-themes/gnome-icon-theme-2.15.91
>=dev-libs/libgweather-2.22.1:2
<dev-libs/libgweather-2.91:2
x11-libs/libX11
gnome-base/gnome-settings-daemon
gnome-base/libgnome
>=gnome-extra/gucharmap-2.23:0
>=gnome-base/libgtop-2.11.92:2
>=dev-python/pygobject-2.6:2
>=dev-python/pygtk-2.6:2
>=dev-python/gconf-python-2.10:2
>=dev-python/gnome-applets-python-2.10
cpufreq? ( sys-power/cpufrequtils )
gstreamer? (
>=media-libs/gstreamer-0.10.2:0.10
>=media-libs/gst-plugins-base-0.10.14:0.10
|| (
>=media-plugins/gst-plugins-alsa-0.10.14:0.10
>=media-plugins/gst-plugins-oss-0.10.14:0.10 ) )
networkmanager? ( >=net-misc/networkmanager-0.7.0 )
policykit? ( >=sys-auth/polkit-0.92 )"
DEPEND="${RDEPEND}
>=app-text/scrollkeeper-0.1.4
>=app-text/gnome-doc-utils-0.3.2
virtual/pkgconfig
>=dev-util/intltool-0.35
dev-libs/libxslt
~app-text/docbook-xml-dtd-4.3
gnome-base/gnome-common"
# gnome-base/gnome-common for eautoreconf
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
DOCS="AUTHORS ChangeLog NEWS README"
G2CONF="${G2CONF}
--without-hal
--disable-battstat
--disable-schemas-install
$(use_enable gstreamer mixer-applet)
$(use_enable ipv6)
$(use_enable networkmanager)
$(use_enable policykit polkit)"
# configure is broken and hiddenly disables cpufreq always, bug #439768
! use cpufreq && G2CONF+=" --disable-cpufreq"
epatch \
"${FILESDIR}"/${P}-libnotify-0.7.patch \
"${FILESDIR}"/${P}-underlinking.patch
# gweather: fix NetworkManager support to compile, see upstream bug 636217 and bug 358043
epatch "${FILESDIR}"/${P}-dbus-fix.patch
# underlinking in mixer applet, bug #497118
epatch "${FILESDIR}/${P}-mixer-libm.patch"
# Invest applet tests need gconf/proxy/...
sed 's/^TESTS.*/TESTS=/g' -i invest-applet/invest/Makefile.am \
invest-applet/invest/Makefile.in || die "disabling invest tests failed"
python_clean_py-compile_files
python_convert_shebangs -r 2 .
rm missing || die # old missing script causes autoreconf warnings
eautoreconf
gnome2_src_prepare
}
src_test() {
unset DBUS_SESSION_BUS_ADDRESS
emake check
}
src_install() {
gnome2_src_install
local APPLETS="accessx-status charpick drivemount geyes
gkb-new gswitchit gweather invest-applet mini-commander
mixer modemlights multiload null_applet stickynotes trashapplet"
use cpufreq && APPLETS="${APPLETS} cpufreq"
# modemlights is out because it needs system-tools-backends-1
for applet in ${APPLETS} ; do
docinto ${applet}
for d in AUTHORS ChangeLog NEWS README README.themes TODO ; do
[ -s ${applet}/${d} ] && dodoc ${applet}/${d}
done
done
}
pkg_postinst() {
gnome2_pkg_postinst
# check for new python modules on bumps
python_mod_optimize invest
}
pkg_postrm() {
gnome2_pkg_postrm
python_mod_cleanup invest
}
|