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 (-19 / +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 multilib
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 10-50 Link Here
10
KEYWORDS="~amd64 ppc ppc64 ~x86"
12
KEYWORDS="~amd64 ppc ppc64 ~x86"
11
SLOT="0"
13
SLOT="0"
12
IUSE="livecd"
14
IUSE="livecd"
13
DEPEND=">=dev-lang/python-2.3
15
DEPEND="sys-apps/pciutils"
14
	   sys-apps/pciutils"
15
RDEPEND=">=dev-lang/python-2.3
16
RDEPEND=">=dev-lang/python-2.3
16
		x11-base/xorg-server"
17
		x11-base/xorg-server"
17
SRC_URI="mirror://gentoo/${P}.tar.bz2"
18
SRC_URI="mirror://gentoo/${P}.tar.bz2"
19
DISTUTILS_SETUP_FILES=("src|setup.py")
18
20
19
src_unpack() {
21
pkg_setup() {
20
	unpack ${A}
22
	python_set_active_version 2
21
	cd "${S}"
23
	python_pkg_setup
24
}
22
25
26
src_prepare() {
23
	### Replace /usr/lib/xac with libdir version
27
	### Replace /usr/lib/xac with libdir version
24
	sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac
28
	sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac
25
29
26
	### Fix the x86 bios call with newer glibc
30
	### Fix the x86 bios call with newer glibc
27
	epatch "${FILESDIR}/x86-biosfix.patch"
31
	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
}
32
}
38
33
39
src_install() {
34
src_install() {
35
	distutils_src_install
40
	local xac_base="/usr/$(get_libdir)/xac"
36
	local xac_base="/usr/$(get_libdir)/xac"
41
37
42
	dosbin "${S}"/xac
38
	dosbin "${S}"/xac
43
39
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}"
40
	dodir "${xac_base}"
49
	insinto ${xac_base}
41
	insinto ${xac_base}
50
	doins "${S}"/py/*
42
	doins "${S}"/py/*
Lines 54-57 Link Here
54
		newinitd "${S}"/xac.init xac
46
		newinitd "${S}"/xac.init xac
55
		newconfd "${S}"/xac.conf xac
47
		newconfd "${S}"/xac.conf xac
56
	fi
48
	fi
49
50
}
51
52
pkg_postinst() {
53
	python_mod_optimize /usr/$(get_libdir)/xac
54
}
55
56
pkg_postrm() {
57
	python_mod_cleanup /usr/$(get_libdir)/xac
57
}
58
}

Return to bug 317029