forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdesklets-core-0.36.3-r4.ebuild
74 lines (60 loc) · 1.75 KB
/
gdesklets-core-0.36.3-r4.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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
GCONF_DEBUG=no
GNOME2_LA_PUNT="yes"
PYTHON_REQ_USE="xml"
PYTHON_COMPAT=( python2_7 )
inherit autotools eutils gnome2 python-single-r1 multilib bash-completion-r1
MY_PN=${PN/-core}
MY_P=${MY_PN}-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="GNOME Desktop Applets: Core library for desktop applets"
SRC_URI="http://gdesklets.de/files/${MY_P}.tar.bz2"
HOMEPAGE="http://gdesklets.de"
LICENSE="GPL-2"
IUSE="dbus"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
# is libgsf needed for runtime or just compiling?
# only need expat for python-2.4, I think
RDEPEND="${PYTHON_DEPS}
>=dev-libs/glib-2:2
>=gnome-base/librsvg-2.8
>=gnome-base/libgtop-2.8.2
>=dev-python/pygtk-2.10[${PYTHON_USEDEP}]
>=dev-python/libbonobo-python-2.6[${PYTHON_USEDEP}]
>=dev-python/gconf-python-2.6[${PYTHON_USEDEP}]
>=dev-python/pygobject-2.6:2[${PYTHON_USEDEP}]
>=dev-python/pyorbit-2.0.1[${PYTHON_USEDEP}]
|| ( >=dev-python/gnome-vfs-python-2.6[${PYTHON_USEDEP}] >=dev-python/libgnome-python-2.6[${PYTHON_USEDEP}] )
>=dev-libs/expat-1.95.8
dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
"
DEPEND="${RDEPEND}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig
"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-.in-files.patch \
"${FILESDIR}"/${P}-CFLAGS.patch
python_fix_shebang .
eautoreconf
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure --disable-static
}
src_install() {
gnome2_src_install
# Install bash completion script
dobashcomp contrib/bash/gdesklets
# Install the gdesklets-control-getid script
insinto /usr/$(get_libdir)/gdesklets
insopts -m0555
doins "${FILESDIR}"/gdesklets-control-getid
}