Gentoo Archives: gentoo-commits

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