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

Collapse All | Expand All

(-)xac.orig/xac-0.6_pre4.ebuild (-12 / +19 lines)
Lines 2-8 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/x11-misc/xac/xac-0.6_pre4.ebuild,v 1.6 2009/09/30 15:52:20 josejx Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xac/xac-0.6_pre4.ebuild,v 1.6 2009/09/30 15:52:20 josejx Exp $
4
4
5
inherit toolchain-funcs eutils
5
EAPI="4"
6
PYTHON_DEPEND="2"
7
inherit toolchain-funcs eutils distutils
6
8
7
DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org"
9
DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org"
8
HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html"
10
HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html"
Lines 14-25 Link Here
14
	   sys-apps/pciutils"
16
	   sys-apps/pciutils"
15
RDEPEND="	x11-base/xorg-server"
17
RDEPEND="	x11-base/xorg-server"
16
SRC_URI="mirror://gentoo/${P}.tar.bz2"
18
SRC_URI="mirror://gentoo/${P}.tar.bz2"
19
DISTUTILS_SETUP_FILES=("src|setup.py")
17
20
18
src_unpack() {
21
pkg_setup() {
19
	unpack ${A}
22
	python_pkg_setup	
20
	cd "${S}"
23
	python_set_active_version 2
21
	
24
}
22
	## Replace /usr/lib/xac with libdir version
25
26
src_prepare() {
27
	### Replace /usr/lib/xac with libdir version
23
	sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac
28
	sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac
24
29
25
	### Fix the x86 bios call with newer glibc
30
	### Fix the x86 bios call with newer glibc
Lines 31-48 Link Here
31
36
32
src_compile() {
37
src_compile() {
33
	### Compile the C bindings
38
	### Compile the C bindings
34
	cd "${S}"/src
39
	distutils_src_compile
35
	./setup.py build || die "Failed to build the C modules"
36
}
40
}
37
41
38
src_install() {
42
src_install() {
39
	local xac_base="/usr/$(get_libdir)/xac"
43
	local xac_base="/usr/$(get_libdir)/xac"
40
41
	dosbin "${S}"/xac
44
	dosbin "${S}"/xac
42
45
43
	### Install the C mods
46
	### Install the C mods using distutils_src_install
44
	cd "${S}"/src
47
        distutils_src_install
45
	./setup.py install --root "${D}" || die "Failed to install the C modules"
46
48
47
	dodir "${xac_base}"
49
	dodir "${xac_base}"
48
	insinto ${xac_base}
50
	insinto ${xac_base}
Lines 53-56 Link Here
53
		newinitd "${S}"/xac.init xac
55
		newinitd "${S}"/xac.init xac
54
		newconfd "${S}"/xac.conf xac
56
		newconfd "${S}"/xac.conf xac
55
	fi
57
	fi
58
	python_convert_shebangs -r 2 "${ED}"
59
}	
60
61
src_postint() {
62
	distutils_pkg_postinst
56
}
63
}

Return to bug 317029