/
indicator-session-0.3.96.ebuild
75 lines (63 loc) · 1.6 KB
/
indicator-session-0.3.96.ebuild
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
EAPI=4
inherit base eutils gnome2
UURL="http://archive.ubuntu.com/ubuntu/pool/main/i/${PN}"
UVER="0ubuntu1"
URELEASE="precise"
MY_P="${P/session-/session_}"
GNOME2_LA_PUNT="1"
DESCRIPTION="Indicator showing session management, status and user switching used by the Unity desktop"
HOMEPAGE="https://launchpad.net/indicator-session"
SRC_URI="${UURL}/${MY_P}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-admin/packagekit[gtk,qt4]
app-admin/packagekit-base[networkmanager,-nsplugin,policykit,udev]
app-admin/system-config-printer-gnome
>=dev-libs/glib-99.2.32.3
dev-libs/libappindicator
>=dev-libs/libdbusmenu-0.6.1[gtk]
dev-libs/libindicate-qt
>=gnome-extra/gnome-screensaver-3.4"
src_prepare() {
# Fix '--disable-apt' configure switch #
sed -e '/#include <libdbusmenu-glib\/client.h>/ a\#include <libdbusmenu-gtk\/menuitem.h>' \
-i src/device-menu-mgr.c
}
src_configure() {
# Build GTK2 support #
[[ -d build-gtk2 ]] || mkdir build-gtk2
pushd build-gtk2
../configure --prefix=/usr \
--with-gtk=2 \
--disable-apt || die
popd
# Build GTK3 support #
[[ -d build-gtk3 ]] || mkdir build-gtk3
pushd build-gtk3
../configure --prefix=/usr \
--with-gtk=3 \
--disable-apt || die
popd
}
src_compile() {
# Build GTK2 support #
pushd build-gtk2
emake || die
popd
# Build GTK3 support #
pushd build-gtk3
emake || die
popd
}
src_install() {
# Install GTK2 support #
pushd build-gtk2
emake DESTDIR="${D}" install || die
popd
# Install GTK3 support #
pushd build-gtk3
emake DESTDIR="${D}" install || die
popd
}