Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 478116
Collapse All | Expand All

(-)a/gx86/dev-python/python-slip/python-slip-0.2.21.ebuild (-10 / +10 lines)
Lines 2-13 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-slip/python-slip-0.2.21.ebuild,v 1.4 2013/04/06 13:12:26 swift Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-slip/python-slip-0.2.21.ebuild,v 1.4 2013/04/06 13:12:26 swift Exp $
4
4
5
EAPI=4
5
EAPI=5
6
6
7
# pygtk, pygobject:2 etc. don't support multiple python2 slots
7
PYTHON_COMPAT=( python{2_6,2_7} )
8
PYTHON_COMPAT="python2_7"
9
8
10
inherit eutils python-distutils-ng
9
inherit distutils-r1
11
10
12
DESCRIPTION="Miscellaneous convenience, extension and workaround code for Python"
11
DESCRIPTION="Miscellaneous convenience, extension and workaround code for Python"
13
HOMEPAGE="https://fedorahosted.org/python-slip/"
12
HOMEPAGE="https://fedorahosted.org/python-slip/"
Lines 15-34 SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2" Link Here
15
14
16
LICENSE="GPL-2+"
15
LICENSE="GPL-2+"
17
SLOT="0"
16
SLOT="0"
18
KEYWORDS="amd64 x86"
17
KEYWORDS="~amd64 ~x86"
19
IUSE="dbus gtk selinux"
18
IUSE="dbus gtk selinux"
20
19
21
RDEPEND="
20
RDEPEND="
22
	dbus? (
21
	dbus? (
23
		dev-python/dbus-python
22
		dev-python/dbus-python[${PYTHON_USEDEP}]
24
		dev-python/pygobject:2
23
		dev-python/pygobject:2[${PYTHON_USEDEP}]
25
		sys-auth/polkit )
24
		sys-auth/polkit )
26
	gtk? ( dev-python/pygtk:2 )
25
	gtk? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
27
"
26
"
28
DEPEND=""
27
DEPEND=""
29
28
30
python_prepare_all() {
29
python_prepare_all() {
31
	use selinux || epatch "${FILESDIR}/${PN}-0.2.20-no-selinux.patch"
30
	use selinux || local PATCHES=( "${FILESDIR}/${PN}-0.2.20-no-selinux.patch" )
32
	sed -e "s:@VERSION@:${PV}:" setup.py.in > setup.py || die "sed failed"
31
	sed -e "s:@VERSION@:${PV}:" setup.py.in > setup.py || die "sed failed"
33
32
34
	if ! use dbus; then
33
	if ! use dbus; then
Lines 39-42 python_prepare_all() { Link Here
39
		sed -e '/name="slip.gtk"/ s/\(.*\)/if 0:\n    \1/' \
38
		sed -e '/name="slip.gtk"/ s/\(.*\)/if 0:\n    \1/' \
40
			-i setup.py || die "sed 3 failed"
39
			-i setup.py || die "sed 3 failed"
41
	fi
40
	fi
41
42
	distutils-r1_python_prepare_all
42
}
43
}
43
- 

Return to bug 478116