Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/xerces-c: ChangeLog xerces-c-3.0.1-r1.ebuild xerces-c-3.1.0.ebuild
Date: Sun, 07 Feb 2010 11:21:12
Message-Id: E1Ne5CP-0003YP-Fk@stork.gentoo.org
1 dev-zero 10/02/07 11:21:09
2
3 Modified: ChangeLog xerces-c-3.0.1-r1.ebuild
4 Added: xerces-c-3.1.0.ebuild
5 Log:
6 Added thread-test-disabling patch (thanks to Andreas Schürch, bug #280613). Version bump (which solves bug #277703 as well).
7 (Portage version: 2.2_rc61/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.83 dev-libs/xerces-c/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/ChangeLog?rev=1.83&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/ChangeLog?rev=1.83&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/ChangeLog?r1=1.82&r2=1.83
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v
19 retrieving revision 1.82
20 retrieving revision 1.83
21 diff -u -r1.82 -r1.83
22 --- ChangeLog 27 Sep 2009 14:45:43 -0000 1.82
23 +++ ChangeLog 7 Feb 2010 11:21:08 -0000 1.83
24 @@ -1,6 +1,14 @@
25 # ChangeLog for dev-libs/xerces-c
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v 1.82 2009/09/27 14:45:43 nixnut Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v 1.83 2010/02/07 11:21:08 dev-zero Exp $
30 +
31 +*xerces-c-3.1.0 (07 Feb 2010)
32 +
33 + 07 Feb 2010; Tiziano Müller <dev-zero@g.o>
34 + +files/3.0.1-disable-thread-tests.patch, xerces-c-3.0.1-r1.ebuild,
35 + +xerces-c-3.1.0.ebuild:
36 + Added thread-test-disabling patch (thanks to Andreas Schürch, bug
37 + #280613). Version bump (which solves bug #277703 as well).
38
39 27 Sep 2009; nixnut <nixnut@g.o> xerces-c-3.0.1-r1.ebuild:
40 ppc stable #280613
41
42
43
44 1.5 dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild?rev=1.5&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild?rev=1.5&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild?r1=1.4&r2=1.5
49
50 Index: xerces-c-3.0.1-r1.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild,v
53 retrieving revision 1.4
54 retrieving revision 1.5
55 diff -u -r1.4 -r1.5
56 --- xerces-c-3.0.1-r1.ebuild 7 Dec 2009 18:20:31 -0000 1.4
57 +++ xerces-c-3.0.1-r1.ebuild 7 Feb 2010 11:21:08 -0000 1.5
58 @@ -1,6 +1,6 @@
59 -# Copyright 1999-2009 Gentoo Foundation
60 +# Copyright 1999-2010 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild,v 1.4 2009/12/07 18:20:31 jer Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1-r1.ebuild,v 1.5 2010/02/07 11:21:08 dev-zero Exp $
64
65 EAPI="2"
66
67 @@ -12,9 +12,9 @@
68 LICENSE="Apache-2.0"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 hppa ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
71 -IUSE="curl debug doc iconv icu libwww threads elibc_Darwin elibc_FreeBSD"
72 +IUSE="curl debug doc iconv icu libwww test threads elibc_Darwin elibc_FreeBSD"
73
74 -RDEPEND="icu? ( dev-libs/icu )
75 +RDEPEND="icu? ( >=dev-libs/icu-4.2 )
76 curl? ( net-misc/curl )
77 libwww? ( net-libs/libwww )
78 virtual/libiconv"
79 @@ -35,8 +35,16 @@
80 -e 's|$(prefix)/msg|$(DESTDIR)/$(prefix)/share/xerces-c/msg|' \
81 src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in || die "sed failed"
82
83 - epatch "${FILESDIR}/${P}-CVE-2009-2625.patch"
84 - epatch "${FILESDIR}/${P}-libicu.patch"
85 + epatch \
86 + "${FILESDIR}/${P}-CVE-2009-2625.patch" \
87 + "${FILESDIR}/${P}-libicu.patch"
88 +
89 + if use test && ! use threads ; then
90 + epatch "${FILESDIR}/${PV}-disable-thread-tests.patch"
91 + sed -i \
92 + -e 's|ThreadTest$(EXEEXT) XSerializerTest$(EXEEXT)|XSerializerTest$(EXEEXT)|g' \
93 + tests/Makefile.in || die "sed failed"
94 + fi
95 }
96
97 src_configure() {
98
99
100
101 1.1 dev-libs/xerces-c/xerces-c-3.1.0.ebuild
102
103 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-3.1.0.ebuild?rev=1.1&view=markup
104 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-3.1.0.ebuild?rev=1.1&content-type=text/plain
105
106 Index: xerces-c-3.1.0.ebuild
107 ===================================================================
108 # Copyright 1999-2010 Gentoo Foundation
109 # Distributed under the terms of the GNU General Public License v2
110 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-3.1.0.ebuild,v 1.1 2010/02/07 11:21:08 dev-zero Exp $
111
112 EAPI="2"
113
114 inherit eutils
115
116 DESCRIPTION="A validating XML parser written in a portable subset of C++."
117 HOMEPAGE="http://xerces.apache.org/xerces-c/"
118 SRC_URI="mirror://apache/xerces/c/3/sources/${P}.tar.gz"
119 LICENSE="Apache-2.0"
120 SLOT="0"
121 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
122 IUSE="curl doc iconv icu libwww sse2 static-libs threads elibc_Darwin elibc_FreeBSD"
123
124 RDEPEND="icu? ( >=dev-libs/icu-4.2 )
125 curl? ( net-misc/curl )
126 libwww? ( net-libs/libwww )
127 virtual/libiconv"
128 DEPEND="${RDEPEND}
129 doc? ( app-doc/doxygen )"
130
131 pkg_setup() {
132 export ICUROOT="/usr"
133
134 if use iconv && use icu ; then
135 ewarn "This package can use iconv or icu for loading messages"
136 ewarn "and transcoding, but not both. ICU will precede."
137 fi
138 }
139
140 src_prepare() {
141 sed -i \
142 -e 's|$(prefix)/msg|$(DESTDIR)/$(prefix)/share/xerces-c/msg|' \
143 src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in || die "sed failed"
144 }
145
146 src_configure() {
147 local mloader="inmemory"
148 use iconv && mloader="iconv"
149 use icu && mloader="icu"
150
151 local transcoder="gnuiconv"
152 use elibc_FreeBSD && transcoder="iconv"
153 use elibc_Darwin && transcoder="macosunicodeconverter"
154 use icu && transcoder="icu"
155 # for interix maybe: transcoder="windows"
156
157 # 'cfurl' is only available on OSX and 'socket' isn't supposed to work.
158 # But the docs aren't clear about it, so we would need some testing...
159 local netaccessor="socket"
160 use elibc_Darwin && netaccessor="cfurl"
161 use libwww && netaccessor="libwww"
162 use curl && netaccessor="curl"
163
164 econf \
165 --disable-pretty-make \
166 $(use_enable static-libs static) \
167 $(use_enable threads) \
168 --enable-msgloader-${mloader} \
169 --enable-netaccessor-${netaccessor} \
170 --enable-transcoder-${transcoder} \
171 $(use_enable sse2)
172 }
173
174 src_compile() {
175 default
176
177 if use doc ; then
178 cd "${S}/doc"
179 doxygen || die "making docs failed"
180 fi
181 }
182
183 src_install () {
184 emake DESTDIR="${D}" install || die "emake failed"
185
186 use static-libs || rm "${D}"/lib*/*.la
187
188 # To make sure an appropriate NLS msg file is around when using the iconv msgloader
189 # ICU has the messages compiled in.
190 if use iconv && ! use icu ; then
191 doenvd "${FILESDIR}/50xerces-c"
192 fi
193
194 if use doc; then
195 insinto /usr/share/doc/${PF}
196 rm -rf samples/Makefile* samples/runConfigure samples/src/*/Makefile* samples/.libs
197 doins -r samples
198 dohtml -r doc/html/*
199 fi
200
201 dodoc CREDITS KEYS NOTICE README version.incl
202 }