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 )" |
23 |
|
|
|
24 |
pkg_setup() { |
25 |
if use python; then |
26 |
python_pkg_setup |
27 |
fi |
28 |
} |
20 |
|
29 |
|
21 |
src_prepare() { |
30 |
src_prepare() { |
22 |
epatch "${FILESDIR}"/libxslt.m4-${P}.patch \ |
31 |
epatch "${FILESDIR}"/libxslt.m4-${P}.patch \ |
23 |
"${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \ |
32 |
"${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \ |
24 |
"${FILESDIR}"/${P}-undefined.patch |
33 |
"${FILESDIR}"/${P}-undefined.patch |
|
|
34 |
|
35 |
# Python bindings are built/tested/installed manually. |
36 |
sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed" |
37 |
|
25 |
eautoreconf |
38 |
eautoreconf |
26 |
epunt_cxx |
39 |
epunt_cxx |
27 |
} |
40 |
} |
Lines 43-51
Link Here
|
43 |
$(use_with debug mem-debug) |
56 |
$(use_with debug mem-debug) |
44 |
} |
57 |
} |
45 |
|
58 |
|
|
|
59 |
src_compile() { |
60 |
default |
61 |
|
62 |
if use python; then |
63 |
python_copy_sources python |
64 |
building() { |
65 |
emake PYTHON_INCLUDES="$(python_get_includedir)" \ |
66 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" |
67 |
} |
68 |
python_execute_function -s --source-dir python building |
69 |
fi |
70 |
} |
71 |
|
72 |
src_test() { |
73 |
default |
74 |
|
75 |
if use python; then |
76 |
testing() { |
77 |
emake test |
78 |
} |
79 |
python_execute_function -s --source-dir python testing |
80 |
fi |
81 |
} |
82 |
|
46 |
src_install() { |
83 |
src_install() { |
47 |
emake DESTDIR="${D}" install || die |
84 |
emake DESTDIR="${D}" install || die |
|
|
85 |
|
86 |
if use python; then |
87 |
installation() { |
88 |
emake DESTDIR="${D}" \ |
89 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ |
90 |
install |
91 |
} |
92 |
python_execute_function -s --source-dir python installation |
93 |
|
94 |
python_clean_installation_image |
95 |
fi |
96 |
|
48 |
mv -vf "${D}"/usr/share/doc/${PN}-python-${PV} \ |
97 |
mv -vf "${D}"/usr/share/doc/${PN}-python-${PV} \ |
49 |
"${D}"/usr/share/doc/${PF}/python |
98 |
"${D}"/usr/share/doc/${PF}/python |
50 |
dodoc AUTHORS ChangeLog FEATURES NEWS README TODO || die |
99 |
dodoc AUTHORS ChangeLog FEATURES NEWS README TODO || die |
51 |
} |
100 |
} |
|
|
101 |
|
102 |
pkg_postinst() { |
103 |
if use python; then |
104 |
python_mod_optimize libxslt.py |
105 |
fi |
106 |
} |
107 |
|
108 |
pkg_postrm() { |
109 |
if use python; then |
110 |
python_mod_cleanup libxslt.py |
111 |
fi |
112 |
} |