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