Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libxml2/
Date: Tue, 01 Nov 2022 21:35:17
Message-Id: 1667337135.e07628f6e8bffb7e8f154e6610e0f5d0393a901f.ajak@gentoo
1 commit: e07628f6e8bffb7e8f154e6610e0f5d0393a901f
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 21:02:08 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 21:12:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e07628f6
7
8 dev-libs/libxml2: drop 2.10.2
9
10 Bug: https://bugs.gentoo.org/877149
11 Bug: https://bugs.gentoo.org/878269
12 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
13
14 dev-libs/libxml2/Manifest | 1 -
15 dev-libs/libxml2/libxml2-2.10.2.ebuild | 194 ---------------------------------
16 2 files changed, 195 deletions(-)
17
18 diff --git a/dev-libs/libxml2/Manifest b/dev-libs/libxml2/Manifest
19 index 3d7290a41a37..f1f353c677b0 100644
20 --- a/dev-libs/libxml2/Manifest
21 +++ b/dev-libs/libxml2/Manifest
22 @@ -1,4 +1,3 @@
23 -DIST libxml2-2.10.2.tar.xz 2636304 BLAKE2B 3ccc11ac73a81ee7ea3e565597c95e74923eba3d858c9a915aecf1dcf2fb6ab3e46c6ed2ea504261a822de2ac2132834ffa8ffd039e9e1390a9637a2dac7d6c5 SHA512 c26ee428ae2fae2326fcaec156ed36c5f5d63aeb4839d626f6544a3fad158a1602e9dc0d542b2f947e6a8de0c09ff130da2626a30aec27446ce09614f78466b5
24 DIST libxml2-2.10.3.tar.xz 2639908 BLAKE2B aef2cc87e4632ddc478ff719155fdcb17601a8af37ecc1145ca05e01340935b57f07722e016ca2b27e4b269d47bd2fe97db09119a47849e8745e077e42b8bb66 SHA512 33bb87ae9a45c475c3de09477e5d94840d8f687f893ef7839408bc7267e57611c4f2b863ed8ec819a4b5f1ebd6a122db9f6054c73bceed427d37f3e67f62620c
25 DIST xmlts20130923.tar.gz 641522 BLAKE2B 63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be SHA512 d5c4d26b324ed21f4e0641cd7f8b76dbf9de80df8b519982e44d41c960df29fd03618e02e9693b2d11ad06d19c4a965274c95a048ec3b9653eacb919a7f8b733
26 DIST xsts-2002-01-16.tar.gz 6894439 BLAKE2B 1e9ec63d2c104655e64249e07440a04d862fcbcd4d4e19745d81b34994319b510a531c9d6df1491fae1e90b5d0764f0f1a827251ca8df5d613178b0eab01ef25 SHA512 43300af6d39c1e2221b0ed7318fe14c7464eeb6eb030ed1e22eb29b4ab17f014e2a4c8887c3a46ae5d243e3072da27f00f4e285498ae6f1288177d38d1108288
27
28 diff --git a/dev-libs/libxml2/libxml2-2.10.2.ebuild b/dev-libs/libxml2/libxml2-2.10.2.ebuild
29 deleted file mode 100644
30 index 7b940b3948b0..000000000000
31 --- a/dev-libs/libxml2/libxml2-2.10.2.ebuild
32 +++ /dev/null
33 @@ -1,194 +0,0 @@
34 -# Copyright 1999-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=8
38 -
39 -# Note: Please bump in sync with dev-libs/libxslt
40 -
41 -PYTHON_COMPAT=( python3_{8..11} )
42 -PYTHON_REQ_USE="xml(+)"
43 -inherit flag-o-matic python-r1 multilib-minimal
44 -
45 -XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
46 -XSTS_NAME_1="xmlschema2002-01-16"
47 -XSTS_NAME_2="xmlschema2004-01-14"
48 -XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
49 -XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
50 -XMLCONF_TARBALL="xmlts20130923.tar.gz"
51 -
52 -DESCRIPTION="XML C parser and toolkit"
53 -HOMEPAGE="http://www.xmlsoft.org/ https://gitlab.gnome.org/GNOME/libxml2"
54 -if [[ ${PV} == 9999 ]] ; then
55 - EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/libxml2"
56 - inherit autotools git-r3
57 -else
58 - inherit gnome.org libtool
59 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
60 -fi
61 -
62 -SRC_URI+="
63 - test? (
64 - ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
65 - ${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2}
66 - https://www.w3.org/XML/Test/${XMLCONF_TARBALL}
67 - )"
68 -S="${WORKDIR}/${PN}-${PV%_rc*}"
69 -
70 -LICENSE="MIT"
71 -SLOT="2"
72 -IUSE="debug examples +ftp icu lzma +python readline static-libs test"
73 -RESTRICT="!test? ( test )"
74 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
75 -
76 -RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]
77 - icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
78 - lzma? ( >=app-arch/xz-utils-5.0.5-r1:=[${MULTILIB_USEDEP}] )
79 - python? ( ${PYTHON_DEPS} )
80 - readline? ( sys-libs/readline:= )"
81 -DEPEND="${RDEPEND}"
82 -BDEPEND="virtual/pkgconfig"
83 -
84 -if [[ ${PV} == 9999 ]] ; then
85 - BDEPEND+=" dev-util/gtk-doc-am"
86 -fi
87 -
88 -MULTILIB_CHOST_TOOLS=(
89 - /usr/bin/xml2-config
90 -)
91 -
92 -DOCS=( NEWS README.md TODO TODO_SCHEMAS python/TODO )
93 -
94 -src_unpack() {
95 - if [[ ${PV} == 9999 ]] ; then
96 - git-r3_src_unpack
97 - else
98 - local tarname=${P/_rc/-rc}.tar.xz
99 -
100 - # ${A} isn't used to avoid unpacking of test tarballs into ${WORKDIR},
101 - # as they are needed as tarballs in ${S}/xstc instead and not unpacked
102 - unpack ${tarname}
103 -
104 - if [[ -n ${PATCHSET_VERSION} ]] ; then
105 - unpack ${PN}-${PATCHSET_VERSION}.tar.bz2
106 - fi
107 - fi
108 -
109 - cd "${S}" || die
110 -
111 - if use test ; then
112 - cp "${DISTDIR}/${XSTS_TARBALL_1}" \
113 - "${DISTDIR}/${XSTS_TARBALL_2}" \
114 - "${S}"/xstc/ \
115 - || die "Failed to install test tarballs"
116 - unpack ${XMLCONF_TARBALL}
117 - fi
118 -}
119 -
120 -src_prepare() {
121 - default
122 -
123 - if [[ ${PV} == 9999 ]] ; then
124 - eautoreconf
125 - else
126 - # Please do not remove, as else we get references to PORTAGE_TMPDIR
127 - # in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
128 - elibtoolize
129 - fi
130 -}
131 -
132 -multilib_src_configure() {
133 - # Filter seemingly problematic CFLAGS (bug #26320)
134 - filter-flags -fprefetch-loop-arrays -funroll-loops
135 -
136 - # Notes:
137 - # The meaning of the 'debug' USE flag does not apply to the --with-debug
138 - # switch (enabling the libxml2 debug module). See bug #100898.
139 - libxml2_configure() {
140 - ECONF_SOURCE="${S}" econf \
141 - --enable-ipv6 \
142 - $(use_with ftp) \
143 - $(use_with debug run-debug) \
144 - $(use_with icu) \
145 - $(use_with lzma) \
146 - $(use_enable static-libs static) \
147 - $(multilib_native_use_with readline) \
148 - $(multilib_native_use_with readline history) \
149 - "$@"
150 - }
151 -
152 - # Build python bindings separately
153 - libxml2_configure --without-python
154 -
155 - multilib_is_native_abi && use python &&
156 - python_foreach_impl run_in_build_dir libxml2_configure --with-python
157 -}
158 -
159 -libxml2_py_emake() {
160 - pushd "${BUILD_DIR}"/python >/dev/null || die
161 -
162 - emake top_builddir="${NATIVE_BUILD_DIR}" "$@"
163 -
164 - popd >/dev/null || die
165 -}
166 -
167 -multilib_src_compile() {
168 - default
169 -
170 - if multilib_is_native_abi && use python ; then
171 - NATIVE_BUILD_DIR="${BUILD_DIR}"
172 - python_foreach_impl run_in_build_dir libxml2_py_emake all
173 - fi
174 -}
175 -
176 -multilib_src_test() {
177 - ln -s "${S}"/xmlconf || die
178 -
179 - emake check
180 -
181 - multilib_is_native_abi && use python &&
182 - python_foreach_impl run_in_build_dir libxml2_py_emake check
183 -}
184 -
185 -multilib_src_install() {
186 - emake DESTDIR="${D}" install
187 -
188 - multilib_is_native_abi && use python &&
189 - python_foreach_impl run_in_build_dir libxml2_py_emake DESTDIR="${D}" install
190 -
191 - # Hack until automake release is made for the optimise fix
192 - # https://git.savannah.gnu.org/cgit/automake.git/commit/?id=bde43d0481ff540418271ac37012a574a4fcf097
193 - multilib_is_native_abi && use python && python_foreach_impl python_optimize
194 -}
195 -
196 -multilib_src_install_all() {
197 - einstalldocs
198 -
199 - if ! use examples ; then
200 - rm -rf "${ED}"/usr/share/doc/${PF}/examples || die
201 - rm -rf "${ED}"/usr/share/doc/${PF}/python/examples || die
202 - fi
203 -
204 - rm -rf "${ED}"/usr/share/doc/${PN}-python-${PVR} || die
205 -
206 - find "${ED}" -name '*.la' -delete || die
207 -}
208 -
209 -pkg_postinst() {
210 - # We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
211 - # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
212 - if [[ -n "${ROOT}" ]]; then
213 - elog "Skipping XML catalog creation for stage building (bug #208887)."
214 - else
215 - # Need an XML catalog, so no-one writes to a non-existent one
216 - CATALOG="${EROOT}/etc/xml/catalog"
217 -
218 - # We don't want to clobber an existing catalog though,
219 - # only ensure that one is there
220 - # <obz@g.o>
221 - if [[ ! -e "${CATALOG}" ]]; then
222 - [[ -d "${EROOT}/etc/xml" ]] || mkdir -p "${EROOT}/etc/xml"
223 - "${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}"
224 - einfo "Created XML catalog in ${CATALOG}"
225 - fi
226 - fi
227 -}