Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 352016 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/x11-misc/driconf/driconf-0.9.1-r1.ebuild (-16 / +6 lines)
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/driconf-0.9.1-r1.ebuild,v 1.6 2010/11/15 15:47:02 arfrever Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/driconf-0.9.1-r1.ebuild,v 1.6 2010/11/15 15:47:02 arfrever Exp $
4
4
5
EAPI="3"
5
EAPI="3"
6
PYTHON_DEPEND="2"
6
SUPPORT_PYTHON_ABIS="1"
7
RESTRICT_PYTHON_ABIS="3.* *-jython"
8
PYTHON_MODNAME="driconf.py dri.py driconf_commonui.py driconf_complexui.py driconf_simpleui.py"
7
PYTHON_USE_WITH="xml"
9
PYTHON_USE_WITH="xml"
8
10
9
inherit distutils eutils
11
inherit distutils eutils
Lines 24-38 Link Here
24
26
25
DOCS="CHANGELOG COPYING PKG-INFO README TODO"
27
DOCS="CHANGELOG COPYING PKG-INFO README TODO"
26
28
27
pkg_setup() {
28
	python_set_active_version 2
29
	python_pkg_setup
30
}
31
32
src_prepare() {
29
src_prepare() {
33
	epatch "${FILESDIR}"/${P}-glxinfo-unicode.patch \
30
	epatch "${FILESDIR}"/${P}-glxinfo-unicode.patch \
34
		"${FILESDIR}"/${P}-update-toolbar-methods.patch \
31
		"${FILESDIR}"/${P}-update-toolbar-methods.patch \
35
		"${FILESDIR}"/${P}-driconf_simpleui.py.patch
32
		"${FILESDIR}"/${P}-driconf_simpleui.py.patch \
33
		"${FILESDIR}"/${P}-drop-old-tooltips.patch
36
34
37
	# Fix install locations which breaks location policy - Josh_B
35
	# Fix install locations which breaks location policy - Josh_B
38
	sed -i \
36
	sed -i \
Lines 40-59 Link Here
40
		driconf \
38
		driconf \
41
		driconf.desktop \
39
		driconf.desktop \
42
		driconf.py \
40
		driconf.py \
43
		setup.cfg \
44
		setup.py \
41
		setup.py \
45
		|| die "Sed failed!"
42
		|| die "Sed failed!"
43
	rm setup.cfg || die "Failed to remove setup.cfg"
46
}
44
}
47
45
48
src_install() {
46
src_install() {
49
	distutils_src_install
47
	distutils_src_install
50
	domenu driconf.desktop
48
	domenu driconf.desktop
51
}
49
}
52
53
pkg_postinst() {
54
	python_mod_optimize /usr/lib/driconf
55
}
56
57
pkg_postrm() {
58
	python_mod_cleanup /usr/lib/driconf
59
}

Return to bug 352016