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 (-16 / +11 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="2"
6
PYTHON_DEPEND="2"
7
inherit toolchain-funcs eutils python
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 16-26 Link Here
16
		x11-base/xorg-server"
18
		x11-base/xorg-server"
17
SRC_URI="mirror://gentoo/${P}.tar.bz2"
19
SRC_URI="mirror://gentoo/${P}.tar.bz2"
18
20
19
src_unpack() {
21
pkg_setup() {
20
	unpack ${A}
22
	python_pkg_setup
21
	cd "${S}"
23
	python_set_active_version 2
24
}
22
25
26
src_prepare() {
23
	### Replace /usr/lib/xac with libdir version
27
	### Replace /usr/lib/xac with libdir version
28
24
	sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac
29
	sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac
25
30
26
	### Fix the x86 bios call with newer glibc
31
	### Fix the x86 bios call with newer glibc
Lines 30-50 Link Here
30
	chmod +x "${S}/src/setup.py"
35
	chmod +x "${S}/src/setup.py"
31
}
36
}
32
37
33
src_compile() {
34
	### Compile the C bindings
35
	cd "${S}"/src
36
	./setup.py build || die "Failed to build the C modules"
37
}
38
39
src_install() {
38
src_install() {
40
	local xac_base="/usr/$(get_libdir)/xac"
39
	local xac_base="/usr/$(get_libdir)/xac"
41
42
	dosbin "${S}"/xac
40
	dosbin "${S}"/xac
43
41
44
	### Install the C mods
45
	cd "${S}"/src
46
	./setup.py install --root "${D}" || die "Failed to install the C modules"
47
48
	dodir "${xac_base}"
42
	dodir "${xac_base}"
49
	insinto ${xac_base}
43
	insinto ${xac_base}
50
	doins "${S}"/py/*
44
	doins "${S}"/py/*
Lines 54-57 Link Here
54
		newinitd "${S}"/xac.init xac
48
		newinitd "${S}"/xac.init xac
55
		newconfd "${S}"/xac.conf xac
49
		newconfd "${S}"/xac.conf xac
56
	fi
50
	fi
57
}
51
	python_convert_shebangs -r 2 .
52
}	

Return to bug 317029