Line
Link Here
|
0 |
-- libxslt-1.1.26.ebuild |
0 |
++ libxslt-1.1.26.ebuild |
Lines 2-9
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/dev-libs/libxslt/libxslt-1.1.26.ebuild,v 1.12 2010/01/25 19:29:16 armin76 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/libxslt-1.1.26.ebuild,v 1.12 2010/01/25 19:29:16 armin76 Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI="2" |
6 |
inherit autotools eutils toolchain-funcs |
6 |
PYTHON_DEPEND="python? 2" |
|
|
7 |
SUPPORT_PYTHON_ABIS="1" |
8 |
RESTRICT_PYTHON_ABIS="3.*" |
9 |
|
10 |
inherit autotools eutils python toolchain-funcs |
7 |
|
11 |
|
8 |
DESCRIPTION="XSLT libraries and tools" |
12 |
DESCRIPTION="XSLT libraries and tools" |
9 |
HOMEPAGE="http://www.xmlsoft.org/" |
13 |
HOMEPAGE="http://www.xmlsoft.org/" |
Lines 15-27
Link Here
|
15 |
IUSE="crypt debug python" |
19 |
IUSE="crypt debug python" |
16 |
|
20 |
|
17 |
DEPEND=">=dev-libs/libxml2-2.6.27 |
21 |
DEPEND=">=dev-libs/libxml2-2.6.27 |
18 |
crypt? ( >=dev-libs/libgcrypt-1.1.42 ) |
22 |
crypt? ( >=dev-libs/libgcrypt-1.1.42 )" |
19 |
python? ( >=dev-lang/python-2.5 )" |
|
|
20 |
|
23 |
|
21 |
src_prepare() { |
24 |
src_prepare() { |
22 |
epatch "${FILESDIR}"/libxslt.m4-${P}.patch \ |
25 |
epatch "${FILESDIR}"/libxslt.m4-${P}.patch \ |
23 |
"${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \ |
26 |
"${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \ |
24 |
"${FILESDIR}"/${P}-undefined.patch |
27 |
"${FILESDIR}"/${P}-undefined.patch |
|
|
28 |
|
29 |
# Python bindings are built/tested/installed manually. |
30 |
sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed" |
31 |
|
25 |
eautoreconf |
32 |
eautoreconf |
26 |
epunt_cxx |
33 |
epunt_cxx |
27 |
} |
34 |
} |
Lines 33-39
Link Here
|
33 |
export LIBGCRYPT_CONFIG="${SYSROOT}/usr/bin/libgcrypt-config" |
40 |
export LIBGCRYPT_CONFIG="${SYSROOT}/usr/bin/libgcrypt-config" |
34 |
fi |
41 |
fi |
35 |
|
42 |
|
36 |
econf \ |
43 |
python_execute_function -f -q econf \ |
37 |
--disable-dependency-tracking \ |
44 |
--disable-dependency-tracking \ |
38 |
--with-html-dir=/usr/share/doc/${PF} \ |
45 |
--with-html-dir=/usr/share/doc/${PF} \ |
39 |
--with-html-subdir=html \ |
46 |
--with-html-subdir=html \ |
Lines 43-51
Link Here
|
43 |
$(use_with debug mem-debug) |
50 |
$(use_with debug mem-debug) |
44 |
} |
51 |
} |
45 |
|
52 |
|
|
|
53 |
src_compile() { |
54 |
default |
55 |
|
56 |
if use python; then |
57 |
python_copy_sources python |
58 |
building() { |
59 |
emake PYTHON_INCLUDES="$(python_get_includedir)" \ |
60 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" |
61 |
} |
62 |
python_execute_function -s --source-dir python building |
63 |
fi |
64 |
} |
65 |
|
66 |
src_test() { |
67 |
default |
68 |
|
69 |
if use python; then |
70 |
testing() { |
71 |
emake test |
72 |
} |
73 |
python_execute_function -s --source-dir python testing |
74 |
fi |
75 |
} |
76 |
|
46 |
src_install() { |
77 |
src_install() { |
47 |
emake DESTDIR="${D}" install || die |
78 |
emake DESTDIR="${D}" install || die |
|
|
79 |
|
80 |
if use python; then |
81 |
installation() { |
82 |
emake DESTDIR="${D}" \ |
83 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ |
84 |
install |
85 |
} |
86 |
python_execute_function -s --source-dir python installation |
87 |
|
88 |
python_clean_sitedirs |
89 |
fi |
90 |
|
48 |
mv -vf "${D}"/usr/share/doc/${PN}-python-${PV} \ |
91 |
mv -vf "${D}"/usr/share/doc/${PN}-python-${PV} \ |
49 |
"${D}"/usr/share/doc/${PF}/python |
92 |
"${D}"/usr/share/doc/${PF}/python |
50 |
dodoc AUTHORS ChangeLog FEATURES NEWS README TODO || die |
93 |
dodoc AUTHORS ChangeLog FEATURES NEWS README TODO || die |
51 |
} |
94 |
} |
|
|
95 |
|
96 |
pkg_postinst() { |
97 |
if use python; then |
98 |
python_mod_optimize libxslt.py |
99 |
fi |
100 |
} |
101 |
|
102 |
pkg_postrm() { |
103 |
if use python; then |
104 |
python_mod_cleanup libxslt.py |
105 |
fi |
106 |
} |