1 |
commit: 1791bae0e350d9afb39f4000c8f4172e1aaf6e8c |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 17 16:46:08 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 17 16:46:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1791bae0 |
7 |
|
8 |
dev-libs/libxml2: bump to 2.9.9 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libxml2/Manifest | 1 + |
14 |
dev-libs/libxml2/libxml2-2.9.9.ebuild | 213 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 214 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libxml2/Manifest b/dev-libs/libxml2/Manifest |
18 |
index aed8b4f5a34..49ef3db88a9 100644 |
19 |
--- a/dev-libs/libxml2/Manifest |
20 |
+++ b/dev-libs/libxml2/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST libxml2-2.9.8.tar.gz 5469097 BLAKE2B 0b7836db46edebf6e7108c28da4bb7e3fb5ddc695aaa3e456ba51a66c0294a741d7b60eb4c31c7040443bbd54712c019424078bd533856a9650b39a703a926d5 SHA512 28903282c7672206effa1362fd564cbe4cf5be44264b083a7d14e383f73bccd1b81bcafb5f4f2f56f5e7e05914c660e27668c9ce91b1b9f256ef5358d55ba917 |
23 |
+DIST libxml2-2.9.9.tar.gz 5476717 BLAKE2B 00a67c38084f2effd5d68d7d3e68f0c96cf4f52eab6d8d9b96dc91f03a84baa132abeaf303a836ff9bbf04f832432a036077316c464398e433c9779d8519074b SHA512 cb7784ba4e72e942614e12e4f83f4ceb275f3d738b30e3b5c1f25edf8e9fa6789e854685974eed95b362049dbf6c8e7357e0327d64c681ed390534ac154e6810 |
24 |
DIST xmlts20080827.tar.gz 638940 BLAKE2B c5aab959c6e0698acd5b9be82b48a8ac26f4d01cc03f9acfff20d344f97f4711fc6d4a524ae70457147e8e30c72e27b6726829e1dd21896286aa974ed60774e7 SHA512 7325d0977c4427fc4944b291ccf896a665f654cc24399e5565c12a849c2bc3aef4fa3ee42a09ac115abcb6570c51a8fbd052c38d64d164279ecdecad5a4e884d |
25 |
DIST xsts-2002-01-16.tar.gz 6894439 BLAKE2B 1e9ec63d2c104655e64249e07440a04d862fcbcd4d4e19745d81b34994319b510a531c9d6df1491fae1e90b5d0764f0f1a827251ca8df5d613178b0eab01ef25 SHA512 43300af6d39c1e2221b0ed7318fe14c7464eeb6eb030ed1e22eb29b4ab17f014e2a4c8887c3a46ae5d243e3072da27f00f4e285498ae6f1288177d38d1108288 |
26 |
DIST xsts-2004-01-14.tar.gz 2761085 BLAKE2B 41545995fb3a65d053257c376c07d45ffd1041a433bfbdb46d4dd87a5afb60c18c8629a3d988323f9e7a1d709775b5a7e5930276a7121c0725a22705c0976e36 SHA512 32854388d7e720ad67156baf50bf2bae7bd878ca3e35fd7e44e57cad3f434f69d56bbbedd61509f8a1faf01c9eae74a078df8fe130780b182c05c05cb1c39ebe |
27 |
|
28 |
diff --git a/dev-libs/libxml2/libxml2-2.9.9.ebuild b/dev-libs/libxml2/libxml2-2.9.9.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..28e2af8bd1a |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/libxml2/libxml2-2.9.9.ebuild |
33 |
@@ -0,0 +1,213 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
39 |
+PYTHON_REQ_USE="xml" |
40 |
+ |
41 |
+inherit libtool flag-o-matic ltprune python-r1 autotools prefix multilib-minimal |
42 |
+ |
43 |
+DESCRIPTION="XML C parser and toolkit" |
44 |
+HOMEPAGE="http://www.xmlsoft.org/" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="2" |
48 |
+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 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
+IUSE="debug examples icu ipv6 lzma python readline static-libs test" |
50 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
51 |
+ |
52 |
+XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite" |
53 |
+XSTS_NAME_1="xmlschema2002-01-16" |
54 |
+XSTS_NAME_2="xmlschema2004-01-14" |
55 |
+XSTS_TARBALL_1="xsts-2002-01-16.tar.gz" |
56 |
+XSTS_TARBALL_2="xsts-2004-01-14.tar.gz" |
57 |
+XMLCONF_TARBALL="xmlts20080827.tar.gz" |
58 |
+ |
59 |
+SRC_URI="ftp://xmlsoft.org/${PN}/${PN}-${PV/_rc/-rc}.tar.gz |
60 |
+ test? ( |
61 |
+ ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1} |
62 |
+ ${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} |
63 |
+ http://www.w3.org/XML/Test/${XMLCONF_TARBALL} )" |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] |
67 |
+ icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] ) |
68 |
+ lzma? ( >=app-arch/xz-utils-5.0.5-r1:=[${MULTILIB_USEDEP}] ) |
69 |
+ python? ( ${PYTHON_DEPS} ) |
70 |
+ readline? ( sys-libs/readline:= ) |
71 |
+" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ dev-util/gtk-doc-am |
74 |
+ virtual/pkgconfig |
75 |
+ hppa? ( >=sys-devel/binutils-2.15.92.0.2 ) |
76 |
+" |
77 |
+ |
78 |
+S="${WORKDIR}/${PN}-${PV%_rc*}" |
79 |
+ |
80 |
+MULTILIB_CHOST_TOOLS=( |
81 |
+ /usr/bin/xml2-config |
82 |
+) |
83 |
+ |
84 |
+src_unpack() { |
85 |
+ # ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR, |
86 |
+ # as they are needed as tarballs in ${S}/xstc instead and not unpacked |
87 |
+ unpack ${P/_rc/-rc}.tar.gz |
88 |
+ cd "${S}" || die |
89 |
+ |
90 |
+ if use test; then |
91 |
+ cp "${DISTDIR}/${XSTS_TARBALL_1}" \ |
92 |
+ "${DISTDIR}/${XSTS_TARBALL_2}" \ |
93 |
+ "${S}"/xstc/ \ |
94 |
+ || die "Failed to install test tarballs" |
95 |
+ unpack ${XMLCONF_TARBALL} |
96 |
+ fi |
97 |
+} |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ default |
101 |
+ |
102 |
+ DOCS=( AUTHORS ChangeLog NEWS README* TODO* ) |
103 |
+ |
104 |
+ # Patches needed for prefix support |
105 |
+ eapply "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch |
106 |
+ |
107 |
+ eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c |
108 |
+ |
109 |
+ # Fix build for Windows platform |
110 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=760456 |
111 |
+ # eapply "${FILESDIR}"/${PN}-2.8.0_rc1-winnt.patch |
112 |
+ |
113 |
+ # Fix python detection, bug #567066 |
114 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=760458 |
115 |
+ eapply "${FILESDIR}"/${PN}-2.9.2-python-ABIFLAG.patch |
116 |
+ |
117 |
+ # Fix python tests when building out of tree #565576 |
118 |
+ eapply "${FILESDIR}"/${PN}-2.9.8-out-of-tree-test.patch |
119 |
+ |
120 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
121 |
+ # Avoid final linking arguments for python modules |
122 |
+ sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die |
123 |
+ # gcc-apple doesn't grok -Wno-array-bounds |
124 |
+ sed -i -e 's/-Wno-array-bounds//' configure.ac || die |
125 |
+ fi |
126 |
+ |
127 |
+ # Please do not remove, as else we get references to PORTAGE_TMPDIR |
128 |
+ # in /usr/lib/python?.?/site-packages/libxml2mod.la among things. |
129 |
+ # We now need to run eautoreconf at the end to prevent maintainer mode. |
130 |
+# elibtoolize |
131 |
+# epunt_cxx # if we don't eautoreconf |
132 |
+ |
133 |
+ eautoreconf |
134 |
+} |
135 |
+ |
136 |
+multilib_src_configure() { |
137 |
+ # filter seemingly problematic CFLAGS (#26320) |
138 |
+ filter-flags -fprefetch-loop-arrays -funroll-loops |
139 |
+ |
140 |
+ # USE zlib support breaks gnome2 |
141 |
+ # (libgnomeprint for instance fails to compile with |
142 |
+ # fresh install, and existing) - <azarah@g.o> (22 Dec 2002). |
143 |
+ |
144 |
+ # The meaning of the 'debug' USE flag does not apply to the --with-debug |
145 |
+ # switch (enabling the libxml2 debug module). See bug #100898. |
146 |
+ |
147 |
+ # --with-mem-debug causes unusual segmentation faults (bug #105120). |
148 |
+ |
149 |
+ libxml2_configure() { |
150 |
+ ECONF_SOURCE="${S}" econf \ |
151 |
+ --with-html-subdir=${PF}/html \ |
152 |
+ $(use_with debug run-debug) \ |
153 |
+ $(use_with icu) \ |
154 |
+ $(use_with lzma) \ |
155 |
+ $(use_enable ipv6) \ |
156 |
+ $(use_enable static-libs static) \ |
157 |
+ $(multilib_native_use_with readline) \ |
158 |
+ $(multilib_native_use_with readline history) \ |
159 |
+ "$@" |
160 |
+ } |
161 |
+ |
162 |
+ libxml2_py_configure() { |
163 |
+ mkdir -p "${BUILD_DIR}" || die # ensure python build dirs exist |
164 |
+ run_in_build_dir libxml2_configure "--with-python=${ROOT%/}${PYTHON}" # odd build system, also see bug #582130 |
165 |
+ } |
166 |
+ |
167 |
+ libxml2_configure --without-python # build python bindings separately |
168 |
+ |
169 |
+ if multilib_is_native_abi && use python; then |
170 |
+ python_foreach_impl libxml2_py_configure |
171 |
+ fi |
172 |
+} |
173 |
+ |
174 |
+multilib_src_compile() { |
175 |
+ default |
176 |
+ if multilib_is_native_abi && use python; then |
177 |
+ local native_builddir=${BUILD_DIR} |
178 |
+ python_foreach_impl libxml2_py_emake top_builddir="${native_builddir}" all |
179 |
+ fi |
180 |
+} |
181 |
+ |
182 |
+multilib_src_test() { |
183 |
+ emake check |
184 |
+ multilib_is_native_abi && use python && python_foreach_impl libxml2_py_emake test |
185 |
+} |
186 |
+ |
187 |
+multilib_src_install() { |
188 |
+ emake DESTDIR="${D}" \ |
189 |
+ EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples install |
190 |
+ |
191 |
+ if multilib_is_native_abi && use python; then |
192 |
+ python_foreach_impl libxml2_py_emake \ |
193 |
+ DESTDIR="${D}" \ |
194 |
+ docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \ |
195 |
+ exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \ |
196 |
+ install |
197 |
+ python_foreach_impl python_optimize |
198 |
+ fi |
199 |
+} |
200 |
+ |
201 |
+multilib_src_install_all() { |
202 |
+ # on windows, xmllint is installed by interix libxml2 in parent prefix. |
203 |
+ # this is the version to use. the native winnt version does not support |
204 |
+ # symlinks, which makes repoman fail if the portage tree is linked in |
205 |
+ # from another location (which is my default). -- mduft |
206 |
+ if [[ ${CHOST} == *-winnt* ]]; then |
207 |
+ rm -rf "${ED}"/usr/bin/xmllint |
208 |
+ rm -rf "${ED}"/usr/bin/xmlcatalog |
209 |
+ fi |
210 |
+ |
211 |
+ rm -rf "${ED}"/usr/share/doc/${P} |
212 |
+ einstalldocs |
213 |
+ |
214 |
+ if ! use examples; then |
215 |
+ rm -rf "${ED}"/usr/share/doc/${PF}/examples |
216 |
+ rm -rf "${ED}"/usr/share/doc/${PF}/python/examples |
217 |
+ fi |
218 |
+ |
219 |
+ prune_libtool_files --modules |
220 |
+} |
221 |
+ |
222 |
+pkg_postinst() { |
223 |
+ # We don't want to do the xmlcatalog during stage1, as xmlcatalog will not |
224 |
+ # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887. |
225 |
+ if [[ "${ROOT}" != "/" ]]; then |
226 |
+ elog "Skipping XML catalog creation for stage building (bug #208887)." |
227 |
+ else |
228 |
+ # need an XML catalog, so no-one writes to a non-existent one |
229 |
+ CATALOG="${EROOT}etc/xml/catalog" |
230 |
+ |
231 |
+ # we dont want to clobber an existing catalog though, |
232 |
+ # only ensure that one is there |
233 |
+ # <obz@g.o> |
234 |
+ if [[ ! -e ${CATALOG} ]]; then |
235 |
+ [[ -d "${EROOT}etc/xml" ]] || mkdir -p "${EROOT}etc/xml" |
236 |
+ "${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}" |
237 |
+ einfo "Created XML catalog in ${CATALOG}" |
238 |
+ fi |
239 |
+ fi |
240 |
+} |
241 |
+ |
242 |
+libxml2_py_emake() { |
243 |
+ pushd "${BUILD_DIR}/python" > /dev/null || die |
244 |
+ emake "$@" |
245 |
+ popd > /dev/null |
246 |
+} |