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 (-17 / +20 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 15-50 Link Here
15
RDEPEND=">=dev-lang/python-2.3
17
RDEPEND=">=dev-lang/python-2.3
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"
20
DISTUTILS_SETUP_FILES=("src|setup.py")
18
21
19
src_unpack() {
22
pkg_setup() {
20
	unpack ${A}
23
	python_pkg_setup
21
	cd "${S}"
24
	python_set_active_version 2
25
}
22
26
27
src_prepare() {
23
	### Replace /usr/lib/xac with libdir version
28
	### Replace /usr/lib/xac with libdir version
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
27
	epatch "${FILESDIR}/x86-biosfix.patch"
32
	epatch "${FILESDIR}/x86-biosfix.patch"
28
29
	### Make setup.py executable
30
	chmod +x "${S}/src/setup.py"
31
}
32
33
src_compile() {
34
	### Compile the C bindings
35
	cd "${S}"/src
36
	./setup.py build || die "Failed to build the C modules"
37
}
33
}
38
34
39
src_install() {
35
src_install() {
36
	distutils_src_install
40
	local xac_base="/usr/$(get_libdir)/xac"
37
	local xac_base="/usr/$(get_libdir)/xac"
41
38
42
	dosbin "${S}"/xac
39
	dosbin "${S}"/xac
43
40
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}"
41
	dodir "${xac_base}"
49
	insinto ${xac_base}
42
	insinto ${xac_base}
50
	doins "${S}"/py/*
43
	doins "${S}"/py/*
Lines 54-57 Link Here
54
		newinitd "${S}"/xac.init xac
47
		newinitd "${S}"/xac.init xac
55
		newconfd "${S}"/xac.conf xac
48
		newconfd "${S}"/xac.conf xac
56
	fi
49
	fi
50
57
}
51
}
52
53
pkg_postinst() {
54
	python_mod_optimize "${EROOT}"usr/lib64/xac
55
}
56
57
pkg_postrm() {
58
        python_mod_cleanup "${EROOT}"usr/lib64/xac
59
}
60

Return to bug 317029