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 |
|
8 |
inherit toolchain-funcs eutils distutils |
6 |
|
9 |
|
7 |
DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org" |
10 |
DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org" |
8 |
HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html" |
11 |
HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html" |
Lines 15-25
Link Here
|
15 |
RDEPEND=" x11-base/xorg-server" |
18 |
RDEPEND=" x11-base/xorg-server" |
16 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
19 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
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 |
# DISTUTILS_SETUP_FILES |
22 |
## Replace /usr/lib/xac with libdir version |
25 |
} |
|
|
26 |
|
27 |
src_prepare() { |
28 |
### Replace /usr/lib/xac with libdir version |
23 |
sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac |
29 |
sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac |
24 |
|
30 |
|
25 |
### Fix the x86 bios call with newer glibc |
31 |
### Fix the x86 bios call with newer glibc |
Lines 32-48
Link Here
|
32 |
src_compile() { |
38 |
src_compile() { |
33 |
### Compile the C bindings |
39 |
### Compile the C bindings |
34 |
cd "${S}"/src |
40 |
cd "${S}"/src |
35 |
./setup.py build || die "Failed to build the C modules" |
41 |
distutils_src_compile |
36 |
} |
42 |
} |
37 |
|
43 |
|
38 |
src_install() { |
44 |
src_install() { |
39 |
local xac_base="/usr/$(get_libdir)/xac" |
45 |
local xac_base="/usr/$(get_libdir)/xac" |
40 |
|
|
|
41 |
dosbin "${S}"/xac |
46 |
dosbin "${S}"/xac |
42 |
|
47 |
|
43 |
### Install the C mods |
48 |
### Install the C mods using distutils_src_install |
44 |
cd "${S}"/src |
49 |
cd "${S}"/src |
45 |
./setup.py install --root "${D}" || die "Failed to install the C modules" |
50 |
distutils_src_install |
46 |
|
51 |
|
47 |
dodir "${xac_base}" |
52 |
dodir "${xac_base}" |
48 |
insinto ${xac_base} |
53 |
insinto ${xac_base} |
Lines 53-56
Link Here
|
53 |
newinitd "${S}"/xac.init xac |
58 |
newinitd "${S}"/xac.init xac |
54 |
newconfd "${S}"/xac.conf xac |
59 |
newconfd "${S}"/xac.conf xac |
55 |
fi |
60 |
fi |
|
|
61 |
python_convert_shebangs -r 2 "${ED}" |
62 |
} |
63 |
|
64 |
src_postint() { |
65 |
distutils_pkg_postinst |
56 |
} |
66 |
} |