1 |
tetromino 13/12/30 05:31:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libxml2-2.9.1-r2.ebuild |
5 |
Log: |
6 |
Add multilib support (bug #480404, thanks to David Heidelberger (okias) and Alexis Ballier). |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
9 |
|
10 |
Revision Changes Path |
11 |
1.404 dev-libs/libxml2/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxml2/ChangeLog?rev=1.404&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxml2/ChangeLog?rev=1.404&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxml2/ChangeLog?r1=1.403&r2=1.404 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v |
20 |
retrieving revision 1.403 |
21 |
retrieving revision 1.404 |
22 |
diff -u -r1.403 -r1.404 |
23 |
--- ChangeLog 19 Oct 2013 14:05:37 -0000 1.403 |
24 |
+++ ChangeLog 30 Dec 2013 05:31:08 -0000 1.404 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-libs/libxml2 |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.403 2013/10/19 14:05:37 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.404 2013/12/30 05:31:08 tetromino Exp $ |
30 |
+ |
31 |
+*libxml2-2.9.1-r2 (30 Dec 2013) |
32 |
+ |
33 |
+ 30 Dec 2013; Alexandre Rostovtsev <tetromino@g.o> |
34 |
+ +libxml2-2.9.1-r2.ebuild, +files/libxml2-2.9.1-icu-pkgconfig.patch: |
35 |
+ Add multilib support (bug #480404, thanks to David Heidelberger (okias) and |
36 |
+ Alexis Ballier). |
37 |
|
38 |
19 Oct 2013; Pacho Ramos <pacho@g.o> |
39 |
-files/libxml2-2.7.8-disable_static_modules.patch, |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-libs/libxml2/libxml2-2.9.1-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxml2/libxml2-2.9.1-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libxml2/libxml2-2.9.1-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: libxml2-2.9.1-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.9.1-r2.ebuild,v 1.1 2013/12/30 05:31:08 tetromino Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
56 |
PYTHON_REQ_USE="xml" |
57 |
|
58 |
inherit libtool flag-o-matic eutils python-r1 autotools prefix multilib-minimal |
59 |
|
60 |
DESCRIPTION="Version 2 of the library to manipulate XML files" |
61 |
HOMEPAGE="http://www.xmlsoft.org/" |
62 |
|
63 |
LICENSE="MIT" |
64 |
SLOT="2" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
66 |
IUSE="debug examples icu ipv6 lzma python readline static-libs test" |
67 |
|
68 |
XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite" |
69 |
XSTS_NAME_1="xmlschema2002-01-16" |
70 |
XSTS_NAME_2="xmlschema2004-01-14" |
71 |
XSTS_TARBALL_1="xsts-2002-01-16.tar.gz" |
72 |
XSTS_TARBALL_2="xsts-2004-01-14.tar.gz" |
73 |
XMLCONF_TARBALL="xmlts20080827.tar.gz" |
74 |
|
75 |
SRC_URI="ftp://xmlsoft.org/${PN}/${PN}-${PV/_rc/-rc}.tar.gz |
76 |
test? ( |
77 |
${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1} |
78 |
${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} |
79 |
http://www.w3.org/XML/Test/${XMLCONF_TARBALL} )" |
80 |
|
81 |
COMMON_DEPEND="sys-libs/zlib:=[${MULTILIB_USEDEP}] |
82 |
icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) |
83 |
lzma? ( app-arch/xz-utils:=[${MULTILIB_USEDEP}] ) |
84 |
python? ( ${PYTHON_DEPS} ) |
85 |
readline? ( sys-libs/readline:= ) |
86 |
" |
87 |
RDEPEND="${COMMON_DEPEND} |
88 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r6 |
89 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] ) |
90 |
" |
91 |
DEPEND="${COMMON_DEPEND} |
92 |
dev-util/gtk-doc-am |
93 |
virtual/pkgconfig |
94 |
hppa? ( >=sys-devel/binutils-2.15.92.0.2 ) |
95 |
" |
96 |
|
97 |
S="${WORKDIR}/${PN}-${PV%_rc*}" |
98 |
|
99 |
src_unpack() { |
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 ${P/_rc/-rc}.tar.gz |
103 |
cd "${S}" |
104 |
|
105 |
if use test; then |
106 |
cp "${DISTDIR}/${XSTS_TARBALL_1}" \ |
107 |
"${DISTDIR}/${XSTS_TARBALL_2}" \ |
108 |
"${S}"/xstc/ \ |
109 |
|| die "Failed to install test tarballs" |
110 |
unpack ${XMLCONF_TARBALL} |
111 |
fi |
112 |
} |
113 |
|
114 |
src_prepare() { |
115 |
DOCS=( AUTHORS ChangeLog NEWS README* TODO* ) |
116 |
|
117 |
# Patches needed for prefix support |
118 |
epatch "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch |
119 |
epatch "${FILESDIR}"/${PN}-2.8.0_rc1-winnt.patch |
120 |
|
121 |
eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c |
122 |
|
123 |
# epunt_cxx # if we don't eautoreconf |
124 |
|
125 |
# Important patches from 2.9.2 |
126 |
epatch "${FILESDIR}/${P}-missing-break.patch" \ |
127 |
"${FILESDIR}/${P}-python-2.6.patch" \ |
128 |
"${FILESDIR}/${P}-compression-detection.patch" \ |
129 |
"${FILESDIR}/${P}-non-ascii-cr-lf.patch" \ |
130 |
"${FILESDIR}/${PN}-2.9.1-python3.patch" \ |
131 |
"${FILESDIR}/${PN}-2.9.1-python3a.patch" |
132 |
|
133 |
# Please do not remove, as else we get references to PORTAGE_TMPDIR |
134 |
# in /usr/lib/python?.?/site-packages/libxml2mod.la among things. |
135 |
# We now need to run eautoreconf at the end to prevent maintainer mode. |
136 |
# elibtoolize |
137 |
|
138 |
# Python bindings are built/tested/installed manually. |
139 |
epatch "${FILESDIR}/${PN}-2.9.0-manual-python.patch" |
140 |
|
141 |
# Use pkgconfig to find icu to properly support multilib |
142 |
epatch "${FILESDIR}/${PN}-2.9.1-icu-pkgconfig.patch" |
143 |
|
144 |
eautoreconf |
145 |
} |
146 |
|
147 |
multilib_src_configure() { |
148 |
# filter seemingly problematic CFLAGS (#26320) |
149 |
filter-flags -fprefetch-loop-arrays -funroll-loops |
150 |
|
151 |
# USE zlib support breaks gnome2 |
152 |
# (libgnomeprint for instance fails to compile with |
153 |
# fresh install, and existing) - <azarah@g.o> (22 Dec 2002). |
154 |
|
155 |
# The meaning of the 'debug' USE flag does not apply to the --with-debug |
156 |
# switch (enabling the libxml2 debug module). See bug #100898. |
157 |
|
158 |
# --with-mem-debug causes unusual segmentation faults (bug #105120). |
159 |
|
160 |
if multilib_is_native_abi; then |
161 |
myconf="$(use_with python) |
162 |
$(use_with readline) |
163 |
$(use_with readline history)" |
164 |
else |
165 |
myconf="--without-python |
166 |
--without-readline |
167 |
--without-history" |
168 |
fi |
169 |
|
170 |
ECONF_SOURCE="${S}" econf \ |
171 |
--with-html-subdir=${PF}/html \ |
172 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
173 |
$(use_with debug run-debug) \ |
174 |
$(use_with icu) \ |
175 |
$(use_with lzma) \ |
176 |
$(use_enable ipv6) \ |
177 |
$(use_enable static-libs static) \ |
178 |
${myconf} |
179 |
} |
180 |
|
181 |
multilib_src_compile() { |
182 |
default |
183 |
if multilib_is_native_abi && use python; then |
184 |
python_copy_sources |
185 |
python_foreach_impl libxml2_py_emake |
186 |
fi |
187 |
} |
188 |
|
189 |
multilib_src_test() { |
190 |
default |
191 |
multilib_is_native_abi && use python && python_foreach_impl libxml2_py_emake test |
192 |
} |
193 |
|
194 |
multilib_src_install() { |
195 |
emake DESTDIR="${D}" \ |
196 |
EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples install |
197 |
|
198 |
if multilib_is_native_abi && use python; then |
199 |
python_foreach_impl libxml2_py_emake DESTDIR="${D}" \ |
200 |
docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \ |
201 |
exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \ |
202 |
install |
203 |
python_foreach_impl python_optimize |
204 |
fi |
205 |
} |
206 |
|
207 |
multilib_src_install_all() { |
208 |
# on windows, xmllint is installed by interix libxml2 in parent prefix. |
209 |
# this is the version to use. the native winnt version does not support |
210 |
# symlinks, which makes repoman fail if the portage tree is linked in |
211 |
# from another location (which is my default). -- mduft |
212 |
if [[ ${CHOST} == *-winnt* ]]; then |
213 |
rm -rf "${ED}"/usr/bin/xmllint |
214 |
rm -rf "${ED}"/usr/bin/xmlcatalog |
215 |
fi |
216 |
|
217 |
rm -rf "${ED}"/usr/share/doc/${P} |
218 |
einstalldocs |
219 |
|
220 |
if ! use python; then |
221 |
rm -rf "${ED}"/usr/share/doc/${PF}/python |
222 |
rm -rf "${ED}"/usr/share/doc/${PN}-python-${PV} |
223 |
fi |
224 |
|
225 |
if ! use examples; then |
226 |
rm -rf "${ED}/usr/share/doc/${PF}/examples" |
227 |
rm -rf "${ED}/usr/share/doc/${PF}/python/examples" |
228 |
fi |
229 |
|
230 |
prune_libtool_files --modules |
231 |
} |
232 |
|
233 |
pkg_postinst() { |
234 |
# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not |
235 |
# be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887. |
236 |
if [[ "${ROOT}" != "/" ]]; then |
237 |
elog "Skipping XML catalog creation for stage building (bug #208887)." |
238 |
else |
239 |
# need an XML catalog, so no-one writes to a non-existent one |
240 |
CATALOG="${EROOT}etc/xml/catalog" |
241 |
|
242 |
# we dont want to clobber an existing catalog though, |
243 |
# only ensure that one is there |
244 |
# <obz@g.o> |
245 |
if [[ ! -e ${CATALOG} ]]; then |
246 |
[[ -d "${EROOT}etc/xml" ]] || mkdir -p "${EROOT}etc/xml" |
247 |
"${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}" |
248 |
einfo "Created XML catalog in ${CATALOG}" |
249 |
fi |
250 |
fi |
251 |
} |
252 |
|
253 |
libxml2_py_emake() { |
254 |
pushd "${BUILD_DIR}/python" > /dev/null || die |
255 |
emake \ |
256 |
PYTHON="${PYTHON}" \ |
257 |
PYTHON_INCLUDES="${EPREFIX}/usr/include/${EPYTHON}" \ |
258 |
PYTHON_LIBS="$(python-config --ldflags)" \ |
259 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ |
260 |
pythondir="$(python_get_sitedir)" "$@" |
261 |
popd > /dev/null |
262 |
} |