Gentoo Archives: gentoo-commits

From: "Remi Cardona (remi)" <remi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libxml2: ChangeLog libxml2-2.6.32.ebuild
Date: Tue, 27 May 2008 15:35:23
Message-Id: E1K11Cp-00047W-Td@stork.gentoo.org
1 remi 08/05/27 15:35:19
2
3 Modified: ChangeLog
4 Added: libxml2-2.6.32.ebuild
5 Log:
6 dev-libs/libxml2: bump to 2.6.32, mostly bugfixes, no major new features
7 (Portage version: 2.1.5.2)
8
9 Revision Changes Path
10 1.212 dev-libs/libxml2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/ChangeLog?rev=1.212&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/ChangeLog?rev=1.212&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/ChangeLog?r1=1.211&r2=1.212
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v
19 retrieving revision 1.211
20 retrieving revision 1.212
21 diff -u -r1.211 -r1.212
22 --- ChangeLog 13 Apr 2008 16:29:55 -0000 1.211
23 +++ ChangeLog 27 May 2008 15:35:19 -0000 1.212
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-libs/libxml2
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.211 2008/04/13 16:29:55 ken69267 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.212 2008/05/27 15:35:19 remi Exp $
29 +
30 +*libxml2-2.6.32 (27 May 2008)
31 +
32 + 27 May 2008; RĂ©mi Cardona <remi@g.o> +libxml2-2.6.32.ebuild:
33 + bump to 2.6.32, mostly bugfixes, no major new features
34
35 13 Apr 2008; Kenneth Prugh <ken69267@g.o> libxml2-2.6.31.ebuild:
36 amd64 stable, bug #217398
37
38
39
40 1.1 dev-libs/libxml2/libxml2-2.6.32.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/libxml2-2.6.32.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/libxml2-2.6.32.ebuild?rev=1.1&content-type=text/plain
44
45 Index: libxml2-2.6.32.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.6.32.ebuild,v 1.1 2008/05/27 15:35:19 remi Exp $
50
51 inherit libtool flag-o-matic eutils
52
53 DESCRIPTION="Version 2 of the library to manipulate XML files"
54 HOMEPAGE="http://www.xmlsoft.org/"
55
56 LICENSE="MIT"
57 SLOT="2"
58 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
59 IUSE="bootstrap build debug doc examples ipv6 python readline test"
60
61 XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
62 XSTS_NAME_1="xmlschema2002-01-16"
63 XSTS_NAME_2="xmlschema2006-11-06"
64 XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
65 XSTS_TARBALL_2="xsts-2006-11-06.tar.gz"
66
67 SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz
68 test? (
69 ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
70 ${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} )"
71
72 RDEPEND="sys-libs/zlib
73 python? ( dev-lang/python )
74 readline? ( sys-libs/readline )"
75
76 DEPEND="${RDEPEND}
77 hppa? ( >=sys-devel/binutils-2.15.92.0.2 )"
78
79 src_unpack() {
80 unpack ${P}.tar.gz
81 cd "${S}"
82
83 if use test; then
84 cp "${DISTDIR}/${XSTS_TARBALL_1}" \
85 "${DISTDIR}/${XSTS_TARBALL_2}" \
86 "${S}"/xstc/ \
87 || die "Failed to install test tarballs"
88 fi
89
90 epunt_cxx
91 }
92
93 src_compile() {
94 # USE zlib support breaks gnome2
95 # (libgnomeprint for instance fails to compile with
96 # fresh install, and existing) - <azarah@g.o> (22 Dec 2002).
97
98 # The meaning of the 'debug' USE flag does not apply to the --with-debug
99 # switch (enabling the libxml2 debug module). See bug #100898.
100
101 # --with-mem-debug causes unusual segmentation faults (bug #105120).
102
103 local myconf="--with-zlib \
104 $(use_with debug run-debug) \
105 $(use_with python) \
106 $(use_with readline) \
107 $(use_with readline history) \
108 $(use_enable ipv6)"
109
110 # Please do not remove, as else we get references to PORTAGE_TMPDIR
111 # in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
112 elibtoolize
113
114 # filter seemingly problematic CFLAGS (#26320)
115 filter-flags -fprefetch-loop-arrays -funroll-loops
116
117 econf $myconf || die "Configuration failed"
118
119 # Patching the Makefiles to respect get_libdir
120 # Fixes BUG #86766, please keep this.
121 # Danny van Dyk <kugelfang@g.o> 2005/03/26
122 for x in $(find "${S}" -name "Makefile") ; do
123 sed \
124 -e "s|^\(PYTHON_SITE_PACKAGES\ =\ \/usr\/\).*\(\/python.*\)|\1$(get_libdir)\2|g" \
125 -i ${x} \
126 || die "sed failed"
127 done
128
129 emake || die "Compilation failed"
130 }
131
132 src_install() {
133 emake DESTDIR="${D}" install || die "Installation failed"
134
135 dodoc AUTHORS ChangeLog Copyright NEWS README* TODO*
136
137 if ! use doc; then
138 rm -rf "${D}"/usr/share/gtk-doc
139 rm -rf "${D}"/usr/share/doc/${P}/html
140 fi
141
142 if ! use examples; then
143 rm -rf "${D}/usr/share/doc/${P}/examples"
144 rm -rf "${D}/usr/share/doc/${PN}-python-${PV}/examples"
145 fi
146 }
147
148 pkg_postinst() {
149 # We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
150 # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
151 if [[ "${ROOT}" != "/" ]]
152 then
153 elog "Skipping XML catalog creation for stage building (bug #208887)."
154 else
155 # need an XML catalog, so no-one writes to a non-existent one
156 CATALOG="${ROOT}etc/xml/catalog"
157
158 # we dont want to clobber an existing catalog though,
159 # only ensure that one is there
160 # <obz@g.o>
161 if [ ! -e ${CATALOG} ]; then
162 [ -d "${ROOT}etc/xml" ] || mkdir -p "${ROOT}etc/xml"
163 /usr/bin/xmlcatalog --create > ${CATALOG}
164 einfo "Created XML catalog in ${CATALOG}"
165 fi
166 fi
167 }
168
169
170
171 --
172 gentoo-commits@l.g.o mailing list