Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libxml2/, dev-libs/libxml2/files/
Date: Wed, 25 Jul 2018 16:47:37
Message-Id: 1532537228.2bea1ac35a4e6955517315078a2176c94cb4388d.leio@gentoo
1 commit: 2bea1ac35a4e6955517315078a2176c94cb4388d
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 25 13:17:56 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 25 16:47:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bea1ac3
7
8 dev-libs/libxml2: remove old
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 dev-libs/libxml2/Manifest | 2 -
13 .../libxml2/files/libxml2-2.8.0_rc1-winnt.patch | 91 ---------
14 dev-libs/libxml2/libxml2-2.9.6.ebuild | 208 ---------------------
15 dev-libs/libxml2/libxml2-2.9.7.ebuild | 208 ---------------------
16 4 files changed, 509 deletions(-)
17
18 diff --git a/dev-libs/libxml2/Manifest b/dev-libs/libxml2/Manifest
19 index b8be3f373f7..aed8b4f5a34 100644
20 --- a/dev-libs/libxml2/Manifest
21 +++ b/dev-libs/libxml2/Manifest
22 @@ -1,5 +1,3 @@
23 -DIST libxml2-2.9.6.tar.gz 5469624 BLAKE2B cb8fc74044876b2ddf9742a4a84d685ce6cd1e41a991ee79fd70a9175c54d2a9a3d3a2c3229a4ce177fcd4e30b0cee08c7cf3a36fef68b179db0ce521fbbf3b0 SHA512 5ef80f895374bd5dd3bcd5f00c715795f026bf45d998f8f762c0cdb739b8755e01de40cf853d98a3826eacef95c4adebe4777db11020e8d98d0bda921f55a0ed
24 -DIST libxml2-2.9.7.tar.gz 5467389 BLAKE2B e15082fb87fb41a7aab6f39120b1d1bbd0325af8009bb3b74c69a98bf7347a39f59055762df157dcf223a79ac84f17535cb40af0a9a461ee3d2c1d55f4832e1b SHA512 da06cb7c5032ef4b7c8e902fabb9d2c74634c42c161be07a7c66a00d53a68029f89b0d4de32a6b9d4ff338c2d1d9c4e53aefb9cf50cb1c2d6c6b06b442ef42d5
25 DIST libxml2-2.9.8.tar.gz 5469097 BLAKE2B 0b7836db46edebf6e7108c28da4bb7e3fb5ddc695aaa3e456ba51a66c0294a741d7b60eb4c31c7040443bbd54712c019424078bd533856a9650b39a703a926d5 SHA512 28903282c7672206effa1362fd564cbe4cf5be44264b083a7d14e383f73bccd1b81bcafb5f4f2f56f5e7e05914c660e27668c9ce91b1b9f256ef5358d55ba917
26 DIST xmlts20080827.tar.gz 638940 BLAKE2B c5aab959c6e0698acd5b9be82b48a8ac26f4d01cc03f9acfff20d344f97f4711fc6d4a524ae70457147e8e30c72e27b6726829e1dd21896286aa974ed60774e7 SHA512 7325d0977c4427fc4944b291ccf896a665f654cc24399e5565c12a849c2bc3aef4fa3ee42a09ac115abcb6570c51a8fbd052c38d64d164279ecdecad5a4e884d
27 DIST xsts-2002-01-16.tar.gz 6894439 BLAKE2B 1e9ec63d2c104655e64249e07440a04d862fcbcd4d4e19745d81b34994319b510a531c9d6df1491fae1e90b5d0764f0f1a827251ca8df5d613178b0eab01ef25 SHA512 43300af6d39c1e2221b0ed7318fe14c7464eeb6eb030ed1e22eb29b4ab17f014e2a4c8887c3a46ae5d243e3072da27f00f4e285498ae6f1288177d38d1108288
28
29 diff --git a/dev-libs/libxml2/files/libxml2-2.8.0_rc1-winnt.patch b/dev-libs/libxml2/files/libxml2-2.8.0_rc1-winnt.patch
30 deleted file mode 100644
31 index cce3ecb058a..00000000000
32 --- a/dev-libs/libxml2/files/libxml2-2.8.0_rc1-winnt.patch
33 +++ /dev/null
34 @@ -1,91 +0,0 @@
35 -From 168e20836fe9614dd2dd4b42006c17a783f11c48 Mon Sep 17 00:00:00 2001
36 -From: Markus Duft <mduft@g.o>
37 -Date: Thu, 20 Nov 2008 11:04:33 -0500
38 -Subject: [PATCH] Fix for ~x86-winnt
39 -
40 -[Alexandre Rostovtsev <tetromino@g.o>: port to 2.8.0-rc1]
41 ----
42 - dict.c | 2 +-
43 - include/wsockcompat.h | 2 +-
44 - nanohttp.c | 2 +-
45 - xmlIO.c | 4 ++++
46 - 4 files changed, 7 insertions(+), 3 deletions(-)
47 -
48 -diff --git a/dict.c b/dict.c
49 -index 3579f64..71e7bc6 100644
50 ---- a/dict.c
51 -+++ b/dict.c
52 -@@ -47,7 +47,7 @@
53 - #else
54 - #ifdef HAVE_INTTYPES_H
55 - #include <inttypes.h>
56 --#elif defined(WIN32)
57 -+#elif defined(WIN32) || defined (__PARITY__)
58 - typedef unsigned __int32 uint32_t;
59 - #endif
60 - #endif
61 -diff --git a/include/wsockcompat.h b/include/wsockcompat.h
62 -index c762a64..1ed822b 100644
63 ---- a/include/wsockcompat.h
64 -+++ b/include/wsockcompat.h
65 -@@ -27,7 +27,7 @@
66 - #endif
67 - #endif
68 -
69 --#if defined( __MINGW32__ ) || defined( _MSC_VER )
70 -+#if defined( __MINGW32__ ) || defined( _MSC_VER ) || defined(__PARITY__)
71 - /* Include <errno.h> here to ensure that it doesn't get included later
72 - * (e.g. by iconv.h) and overwrites the definition of EWOULDBLOCK. */
73 - #include <errno.h>
74 -diff --git a/nanohttp.c b/nanohttp.c
75 -index 2437fed..dbe97a7 100644
76 ---- a/nanohttp.c
77 -+++ b/nanohttp.c
78 -@@ -74,7 +74,7 @@
79 - #define XML_SOCKLEN_T unsigned int
80 - #endif
81 -
82 --#if defined(__MINGW32__) || defined(_WIN32_WCE)
83 -+#if defined(__MINGW32__) || defined(_WIN32_WCE) || defined(__PARITY__)
84 - #ifndef _WINSOCKAPI_
85 - #define _WINSOCKAPI_
86 - #endif
87 -diff --git a/xmlIO.c b/xmlIO.c
88 -index 73a995d..99562f6 100644
89 ---- a/xmlIO.c
90 -+++ b/xmlIO.c
91 -@@ -47,6 +47,7 @@
92 - #include <winnls.h> /* for CP_UTF8 */
93 - #endif
94 -
95 -+#ifndef __PARITY__
96 - /* Figure a portable way to know if a file is a directory. */
97 - #ifndef HAVE_STAT
98 - # ifdef HAVE__STAT
99 -@@ -82,6 +83,7 @@
100 - # endif
101 - # endif
102 - #endif
103 -+#endif /* __PARITY__ */
104 -
105 - #include <libxml/xmlmemory.h>
106 - #include <libxml/parser.h>
107 -@@ -657,6 +659,7 @@ xmlWrapStatUtf8(const char *path,struct stat *info)
108 - {
109 - #ifdef HAVE_STAT
110 - int retval = -1;
111 -+#ifndef __PARITY__
112 - wchar_t *wPath;
113 -
114 - wPath = __xmlIOWin32UTF8ToWChar(path);
115 -@@ -665,6 +668,7 @@ xmlWrapStatUtf8(const char *path,struct stat *info)
116 - retval = _wstat(wPath,info);
117 - xmlFree(wPath);
118 - }
119 -+#endif
120 - /* maybe path in native encoding */
121 - if(retval < 0)
122 - retval = stat(path,info);
123 ---
124 -1.7.8.6
125 -
126
127 diff --git a/dev-libs/libxml2/libxml2-2.9.6.ebuild b/dev-libs/libxml2/libxml2-2.9.6.ebuild
128 deleted file mode 100644
129 index e1b36acddb4..00000000000
130 --- a/dev-libs/libxml2/libxml2-2.9.6.ebuild
131 +++ /dev/null
132 @@ -1,208 +0,0 @@
133 -# Copyright 1999-2018 Gentoo Foundation
134 -# Distributed under the terms of the GNU General Public License v2
135 -
136 -EAPI=6
137 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
138 -PYTHON_REQ_USE="xml"
139 -
140 -inherit libtool flag-o-matic ltprune python-r1 autotools prefix multilib-minimal
141 -
142 -DESCRIPTION="Version 2 of the library to manipulate XML files"
143 -HOMEPAGE="http://www.xmlsoft.org/"
144 -
145 -LICENSE="MIT"
146 -SLOT="2"
147 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
148 -IUSE="debug examples icu ipv6 lzma python readline static-libs test"
149 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
150 -
151 -XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
152 -XSTS_NAME_1="xmlschema2002-01-16"
153 -XSTS_NAME_2="xmlschema2004-01-14"
154 -XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
155 -XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
156 -XMLCONF_TARBALL="xmlts20080827.tar.gz"
157 -
158 -SRC_URI="ftp://xmlsoft.org/${PN}/${PN}-${PV/_rc/-rc}.tar.gz
159 - test? (
160 - ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
161 - ${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2}
162 - http://www.w3.org/XML/Test/${XMLCONF_TARBALL} )"
163 -
164 -RDEPEND="
165 - >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]
166 - icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
167 - lzma? ( >=app-arch/xz-utils-5.0.5-r1:=[${MULTILIB_USEDEP}] )
168 - python? ( ${PYTHON_DEPS} )
169 - readline? ( sys-libs/readline:= )
170 -"
171 -DEPEND="${RDEPEND}
172 - dev-util/gtk-doc-am
173 - virtual/pkgconfig
174 - hppa? ( >=sys-devel/binutils-2.15.92.0.2 )
175 -"
176 -
177 -S="${WORKDIR}/${PN}-${PV%_rc*}"
178 -
179 -MULTILIB_CHOST_TOOLS=(
180 - /usr/bin/xml2-config
181 -)
182 -
183 -src_unpack() {
184 - # ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR,
185 - # as they are needed as tarballs in ${S}/xstc instead and not unpacked
186 - unpack ${P/_rc/-rc}.tar.gz
187 - cd "${S}" || die
188 -
189 - if use test; then
190 - cp "${DISTDIR}/${XSTS_TARBALL_1}" \
191 - "${DISTDIR}/${XSTS_TARBALL_2}" \
192 - "${S}"/xstc/ \
193 - || die "Failed to install test tarballs"
194 - unpack ${XMLCONF_TARBALL}
195 - fi
196 -}
197 -
198 -src_prepare() {
199 - default
200 -
201 - DOCS=( AUTHORS ChangeLog NEWS README* TODO* )
202 -
203 - # Patches needed for prefix support
204 - eapply "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch
205 -
206 - eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c
207 -
208 - # Fix build for Windows platform
209 - # https://bugzilla.gnome.org/show_bug.cgi?id=760456
210 - eapply "${FILESDIR}"/${PN}-2.8.0_rc1-winnt.patch
211 -
212 - # Fix python detection, bug #567066
213 - # https://bugzilla.gnome.org/show_bug.cgi?id=760458
214 - eapply "${FILESDIR}"/${PN}-2.9.2-python-ABIFLAG.patch
215 -
216 - # Avoid final linking arguments for python modules
217 - if [[ ${CHOST} == *-darwin* ]] ; then
218 - sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die
219 - fi
220 -
221 - # Please do not remove, as else we get references to PORTAGE_TMPDIR
222 - # in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
223 - # We now need to run eautoreconf at the end to prevent maintainer mode.
224 -# elibtoolize
225 -# epunt_cxx # if we don't eautoreconf
226 -
227 - eautoreconf
228 -}
229 -
230 -multilib_src_configure() {
231 - # filter seemingly problematic CFLAGS (#26320)
232 - filter-flags -fprefetch-loop-arrays -funroll-loops
233 -
234 - # USE zlib support breaks gnome2
235 - # (libgnomeprint for instance fails to compile with
236 - # fresh install, and existing) - <azarah@g.o> (22 Dec 2002).
237 -
238 - # The meaning of the 'debug' USE flag does not apply to the --with-debug
239 - # switch (enabling the libxml2 debug module). See bug #100898.
240 -
241 - # --with-mem-debug causes unusual segmentation faults (bug #105120).
242 -
243 - libxml2_configure() {
244 - ECONF_SOURCE="${S}" econf \
245 - --with-html-subdir=${PF}/html \
246 - $(use_with debug run-debug) \
247 - $(use_with icu) \
248 - $(use_with lzma) \
249 - $(use_enable ipv6) \
250 - $(use_enable static-libs static) \
251 - $(multilib_native_use_with readline) \
252 - $(multilib_native_use_with readline history) \
253 - "$@"
254 - }
255 -
256 - libxml2_py_configure() {
257 - mkdir -p "${BUILD_DIR}" || die # ensure python build dirs exist
258 - run_in_build_dir libxml2_configure "--with-python=${ROOT%/}${PYTHON}" # odd build system, also see bug #582130
259 - }
260 -
261 - libxml2_configure --without-python # build python bindings separately
262 -
263 - if multilib_is_native_abi && use python; then
264 - python_foreach_impl libxml2_py_configure
265 - fi
266 -}
267 -
268 -multilib_src_compile() {
269 - default
270 - if multilib_is_native_abi && use python; then
271 - local native_builddir=${BUILD_DIR}
272 - python_foreach_impl libxml2_py_emake top_builddir="${native_builddir}" all
273 - fi
274 -}
275 -
276 -multilib_src_test() {
277 - emake check
278 - multilib_is_native_abi && use python && python_foreach_impl libxml2_py_emake test
279 -}
280 -
281 -multilib_src_install() {
282 - emake DESTDIR="${D}" \
283 - EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples install
284 -
285 - if multilib_is_native_abi && use python; then
286 - python_foreach_impl libxml2_py_emake \
287 - DESTDIR="${D}" \
288 - docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \
289 - exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \
290 - install
291 - python_foreach_impl python_optimize
292 - fi
293 -}
294 -
295 -multilib_src_install_all() {
296 - # on windows, xmllint is installed by interix libxml2 in parent prefix.
297 - # this is the version to use. the native winnt version does not support
298 - # symlinks, which makes repoman fail if the portage tree is linked in
299 - # from another location (which is my default). -- mduft
300 - if [[ ${CHOST} == *-winnt* ]]; then
301 - rm -rf "${ED}"/usr/bin/xmllint
302 - rm -rf "${ED}"/usr/bin/xmlcatalog
303 - fi
304 -
305 - rm -rf "${ED}"/usr/share/doc/${P}
306 - einstalldocs
307 -
308 - if ! use examples; then
309 - rm -rf "${ED}"/usr/share/doc/${PF}/examples
310 - rm -rf "${ED}"/usr/share/doc/${PF}/python/examples
311 - fi
312 -
313 - prune_libtool_files --modules
314 -}
315 -
316 -pkg_postinst() {
317 - # We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
318 - # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
319 - if [[ "${ROOT}" != "/" ]]; then
320 - elog "Skipping XML catalog creation for stage building (bug #208887)."
321 - else
322 - # need an XML catalog, so no-one writes to a non-existent one
323 - CATALOG="${EROOT}etc/xml/catalog"
324 -
325 - # we dont want to clobber an existing catalog though,
326 - # only ensure that one is there
327 - # <obz@g.o>
328 - if [[ ! -e ${CATALOG} ]]; then
329 - [[ -d "${EROOT}etc/xml" ]] || mkdir -p "${EROOT}etc/xml"
330 - "${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}"
331 - einfo "Created XML catalog in ${CATALOG}"
332 - fi
333 - fi
334 -}
335 -
336 -libxml2_py_emake() {
337 - pushd "${BUILD_DIR}/python" > /dev/null || die
338 - emake "$@"
339 - popd > /dev/null
340 -}
341
342 diff --git a/dev-libs/libxml2/libxml2-2.9.7.ebuild b/dev-libs/libxml2/libxml2-2.9.7.ebuild
343 deleted file mode 100644
344 index bac5bf78210..00000000000
345 --- a/dev-libs/libxml2/libxml2-2.9.7.ebuild
346 +++ /dev/null
347 @@ -1,208 +0,0 @@
348 -# Copyright 1999-2018 Gentoo Foundation
349 -# Distributed under the terms of the GNU General Public License v2
350 -
351 -EAPI=6
352 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
353 -PYTHON_REQ_USE="xml"
354 -
355 -inherit libtool flag-o-matic ltprune python-r1 autotools prefix multilib-minimal
356 -
357 -DESCRIPTION="Version 2 of the library to manipulate XML files"
358 -HOMEPAGE="http://www.xmlsoft.org/"
359 -
360 -LICENSE="MIT"
361 -SLOT="2"
362 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
363 -IUSE="debug examples icu ipv6 lzma python readline static-libs test"
364 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
365 -
366 -XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
367 -XSTS_NAME_1="xmlschema2002-01-16"
368 -XSTS_NAME_2="xmlschema2004-01-14"
369 -XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
370 -XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
371 -XMLCONF_TARBALL="xmlts20080827.tar.gz"
372 -
373 -SRC_URI="ftp://xmlsoft.org/${PN}/${PN}-${PV/_rc/-rc}.tar.gz
374 - test? (
375 - ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
376 - ${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2}
377 - http://www.w3.org/XML/Test/${XMLCONF_TARBALL} )"
378 -
379 -RDEPEND="
380 - >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]
381 - icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
382 - lzma? ( >=app-arch/xz-utils-5.0.5-r1:=[${MULTILIB_USEDEP}] )
383 - python? ( ${PYTHON_DEPS} )
384 - readline? ( sys-libs/readline:= )
385 -"
386 -DEPEND="${RDEPEND}
387 - dev-util/gtk-doc-am
388 - virtual/pkgconfig
389 - hppa? ( >=sys-devel/binutils-2.15.92.0.2 )
390 -"
391 -
392 -S="${WORKDIR}/${PN}-${PV%_rc*}"
393 -
394 -MULTILIB_CHOST_TOOLS=(
395 - /usr/bin/xml2-config
396 -)
397 -
398 -src_unpack() {
399 - # ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR,
400 - # as they are needed as tarballs in ${S}/xstc instead and not unpacked
401 - unpack ${P/_rc/-rc}.tar.gz
402 - cd "${S}" || die
403 -
404 - if use test; then
405 - cp "${DISTDIR}/${XSTS_TARBALL_1}" \
406 - "${DISTDIR}/${XSTS_TARBALL_2}" \
407 - "${S}"/xstc/ \
408 - || die "Failed to install test tarballs"
409 - unpack ${XMLCONF_TARBALL}
410 - fi
411 -}
412 -
413 -src_prepare() {
414 - default
415 -
416 - DOCS=( AUTHORS ChangeLog NEWS README* TODO* )
417 -
418 - # Patches needed for prefix support
419 - eapply "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch
420 -
421 - eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c
422 -
423 - # Fix build for Windows platform
424 - # https://bugzilla.gnome.org/show_bug.cgi?id=760456
425 - # eapply "${FILESDIR}"/${PN}-2.8.0_rc1-winnt.patch
426 -
427 - # Fix python detection, bug #567066
428 - # https://bugzilla.gnome.org/show_bug.cgi?id=760458
429 - eapply "${FILESDIR}"/${PN}-2.9.2-python-ABIFLAG.patch
430 -
431 - # Avoid final linking arguments for python modules
432 - if [[ ${CHOST} == *-darwin* ]] ; then
433 - sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die
434 - fi
435 -
436 - # Please do not remove, as else we get references to PORTAGE_TMPDIR
437 - # in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
438 - # We now need to run eautoreconf at the end to prevent maintainer mode.
439 -# elibtoolize
440 -# epunt_cxx # if we don't eautoreconf
441 -
442 - eautoreconf
443 -}
444 -
445 -multilib_src_configure() {
446 - # filter seemingly problematic CFLAGS (#26320)
447 - filter-flags -fprefetch-loop-arrays -funroll-loops
448 -
449 - # USE zlib support breaks gnome2
450 - # (libgnomeprint for instance fails to compile with
451 - # fresh install, and existing) - <azarah@g.o> (22 Dec 2002).
452 -
453 - # The meaning of the 'debug' USE flag does not apply to the --with-debug
454 - # switch (enabling the libxml2 debug module). See bug #100898.
455 -
456 - # --with-mem-debug causes unusual segmentation faults (bug #105120).
457 -
458 - libxml2_configure() {
459 - ECONF_SOURCE="${S}" econf \
460 - --with-html-subdir=${PF}/html \
461 - $(use_with debug run-debug) \
462 - $(use_with icu) \
463 - $(use_with lzma) \
464 - $(use_enable ipv6) \
465 - $(use_enable static-libs static) \
466 - $(multilib_native_use_with readline) \
467 - $(multilib_native_use_with readline history) \
468 - "$@"
469 - }
470 -
471 - libxml2_py_configure() {
472 - mkdir -p "${BUILD_DIR}" || die # ensure python build dirs exist
473 - run_in_build_dir libxml2_configure "--with-python=${ROOT%/}${PYTHON}" # odd build system, also see bug #582130
474 - }
475 -
476 - libxml2_configure --without-python # build python bindings separately
477 -
478 - if multilib_is_native_abi && use python; then
479 - python_foreach_impl libxml2_py_configure
480 - fi
481 -}
482 -
483 -multilib_src_compile() {
484 - default
485 - if multilib_is_native_abi && use python; then
486 - local native_builddir=${BUILD_DIR}
487 - python_foreach_impl libxml2_py_emake top_builddir="${native_builddir}" all
488 - fi
489 -}
490 -
491 -multilib_src_test() {
492 - emake check
493 - multilib_is_native_abi && use python && python_foreach_impl libxml2_py_emake test
494 -}
495 -
496 -multilib_src_install() {
497 - emake DESTDIR="${D}" \
498 - EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples install
499 -
500 - if multilib_is_native_abi && use python; then
501 - python_foreach_impl libxml2_py_emake \
502 - DESTDIR="${D}" \
503 - docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \
504 - exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \
505 - install
506 - python_foreach_impl python_optimize
507 - fi
508 -}
509 -
510 -multilib_src_install_all() {
511 - # on windows, xmllint is installed by interix libxml2 in parent prefix.
512 - # this is the version to use. the native winnt version does not support
513 - # symlinks, which makes repoman fail if the portage tree is linked in
514 - # from another location (which is my default). -- mduft
515 - if [[ ${CHOST} == *-winnt* ]]; then
516 - rm -rf "${ED}"/usr/bin/xmllint
517 - rm -rf "${ED}"/usr/bin/xmlcatalog
518 - fi
519 -
520 - rm -rf "${ED}"/usr/share/doc/${P}
521 - einstalldocs
522 -
523 - if ! use examples; then
524 - rm -rf "${ED}"/usr/share/doc/${PF}/examples
525 - rm -rf "${ED}"/usr/share/doc/${PF}/python/examples
526 - fi
527 -
528 - prune_libtool_files --modules
529 -}
530 -
531 -pkg_postinst() {
532 - # We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
533 - # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
534 - if [[ "${ROOT}" != "/" ]]; then
535 - elog "Skipping XML catalog creation for stage building (bug #208887)."
536 - else
537 - # need an XML catalog, so no-one writes to a non-existent one
538 - CATALOG="${EROOT}etc/xml/catalog"
539 -
540 - # we dont want to clobber an existing catalog though,
541 - # only ensure that one is there
542 - # <obz@g.o>
543 - if [[ ! -e ${CATALOG} ]]; then
544 - [[ -d "${EROOT}etc/xml" ]] || mkdir -p "${EROOT}etc/xml"
545 - "${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}"
546 - einfo "Created XML catalog in ${CATALOG}"
547 - fi
548 - fi
549 -}
550 -
551 -libxml2_py_emake() {
552 - pushd "${BUILD_DIR}/python" > /dev/null || die
553 - emake "$@"
554 - popd > /dev/null
555 -}