1 |
mgorny 14/09/03 09:51:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libxslt-1.1.28-r4.ebuild |
5 |
Log: |
6 |
Use wrapped xml2-config, bug #518728. And CHOST-ize xslt-config too while at it. |
7 |
|
8 |
(Portage version: 2.2.13_pre1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.289 dev-libs/libxslt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxslt/ChangeLog?rev=1.289&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxslt/ChangeLog?rev=1.289&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxslt/ChangeLog?r1=1.288&r2=1.289 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/libxslt/ChangeLog,v |
20 |
retrieving revision 1.288 |
21 |
retrieving revision 1.289 |
22 |
diff -u -r1.288 -r1.289 |
23 |
--- ChangeLog 25 Aug 2014 10:57:17 -0000 1.288 |
24 |
+++ ChangeLog 3 Sep 2014 09:51:38 -0000 1.289 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-libs/libxslt |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/ChangeLog,v 1.288 2014/08/25 10:57:17 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/ChangeLog,v 1.289 2014/09/03 09:51:38 mgorny Exp $ |
30 |
+ |
31 |
+*libxslt-1.1.28-r4 (03 Sep 2014) |
32 |
+ |
33 |
+ 03 Sep 2014; Michał Górny <mgorny@g.o> |
34 |
+ +files/libxslt-1.1.28-AC_PATH_TOOL.patch, +libxslt-1.1.28-r4.ebuild: |
35 |
+ Use wrapped xml2-config, bug #518728. And CHOST-ize xslt-config too while at |
36 |
+ it. |
37 |
|
38 |
25 Aug 2014; Agostino Sarubbo <ago@g.o> libxslt-1.1.28-r3.ebuild: |
39 |
Stable for alpha, wrt bug #512012 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-libs/libxslt/libxslt-1.1.28-r4.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxslt/libxslt-1.1.28-r4.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxslt/libxslt-1.1.28-r4.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: libxslt-1.1.28-r4.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/libxslt-1.1.28-r4.ebuild,v 1.1 2014/09/03 09:51:38 mgorny Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
57 |
PYTHON_REQ_USE="xml" |
58 |
|
59 |
inherit autotools eutils python-r1 toolchain-funcs multilib-minimal |
60 |
|
61 |
DESCRIPTION="XSLT libraries and tools" |
62 |
HOMEPAGE="http://www.xmlsoft.org/" |
63 |
SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz" |
64 |
|
65 |
LICENSE="MIT" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
68 |
IUSE="crypt debug python static-libs" |
69 |
|
70 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
71 |
|
72 |
RDEPEND=">=dev-libs/libxml2-2.9.1-r5:2[${MULTILIB_USEDEP}] |
73 |
crypt? ( >=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}] ) |
74 |
python? ( |
75 |
${PYTHON_DEPS} |
76 |
dev-libs/libxml2:2[python,${PYTHON_USEDEP}] ) |
77 |
abi_x86_32? ( |
78 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r20 |
79 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
80 |
) |
81 |
" |
82 |
DEPEND="${RDEPEND}" |
83 |
|
84 |
MULTILIB_CHOST_TOOLS=( |
85 |
/usr/bin/xslt-config |
86 |
) |
87 |
|
88 |
src_prepare() { |
89 |
DOCS=( AUTHORS ChangeLog FEATURES NEWS README TODO ) |
90 |
|
91 |
# https://bugzilla.gnome.org/show_bug.cgi?id=684621 |
92 |
epatch "${FILESDIR}"/${PN}.m4-${PN}-1.1.26.patch |
93 |
|
94 |
epatch "${FILESDIR}"/${PN}-1.1.26-disable_static_modules.patch |
95 |
|
96 |
# use AC_PATH_TOOL for libgcrypt-config for sane cross-compile and multilib support |
97 |
# https://bugzilla.gnome.org/show_bug.cgi?id=725635 |
98 |
# same for xml2-config |
99 |
# https://bugs.gentoo.org/show_bug.cgi?id=518728 |
100 |
epatch "${FILESDIR}"/${PN}-1.1.28-AC_PATH_TOOL.patch |
101 |
|
102 |
eautoreconf |
103 |
# If eautoreconf'd with new autoconf, then epunt_cxx is not necessary |
104 |
# and it is propably otherwise too if upstream generated with new |
105 |
# autoconf |
106 |
# epunt_cxx |
107 |
# But Prefix always needs elibtoolize if not eautoreconf'd. |
108 |
# elibtoolize |
109 |
} |
110 |
|
111 |
multilib_src_configure() { |
112 |
libxslt_configure() { |
113 |
ECONF_SOURCE=${S} econf \ |
114 |
$(use_enable static-libs static) \ |
115 |
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF} \ |
116 |
--with-html-subdir=html \ |
117 |
$(use_with crypt crypto) \ |
118 |
$(use_with debug) \ |
119 |
$(use_with debug mem-debug) \ |
120 |
"$@" |
121 |
} |
122 |
|
123 |
libxslt_py_configure() { |
124 |
mkdir -p "${BUILD_DIR}" || die # ensure python build dirs exist |
125 |
run_in_build_dir libxslt_configure "--with-python=${PYTHON}" # odd build system |
126 |
} |
127 |
|
128 |
libxslt_configure --without-python # build python bindings separately |
129 |
|
130 |
if multilib_is_native_abi && use python; then |
131 |
python_parallel_foreach_impl libxslt_py_configure |
132 |
fi |
133 |
} |
134 |
|
135 |
multilib_src_compile() { |
136 |
default |
137 |
multilib_is_native_abi && use python && libxslt_foreach_py_emake all |
138 |
} |
139 |
|
140 |
multilib_src_test() { |
141 |
default |
142 |
multilib_is_native_abi && use python && libxslt_foreach_py_emake test |
143 |
} |
144 |
|
145 |
multilib_src_install() { |
146 |
# "default" does not work here - docs are installed by multilib_src_install_all |
147 |
emake DESTDIR="${D}" install |
148 |
|
149 |
if multilib_is_native_abi && use python; then |
150 |
libxslt_foreach_py_emake DESTDIR="${D}" install |
151 |
python_foreach_impl python_optimize |
152 |
mv "${ED}"/usr/share/doc/${PN}-python-${PV} "${ED}"/usr/share/doc/${PF}/python |
153 |
fi |
154 |
|
155 |
prune_libtool_files --modules |
156 |
} |
157 |
|
158 |
libxslt_foreach_py_emake() { |
159 |
libxslt_py_emake() { |
160 |
pushd "${BUILD_DIR}/python" > /dev/null || die |
161 |
emake "$@" |
162 |
popd > /dev/null |
163 |
} |
164 |
local native_builddir=${BUILD_DIR} |
165 |
python_foreach_impl libxslt_py_emake top_builddir="${native_builddir}" "$@" |
166 |
} |