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