1 |
dev-zero 07/12/19 20:31:13 |
2 |
|
3 |
Modified: xerces-c-2.7.0-r1.ebuild metadata.xml ChangeLog |
4 |
Added: xerces-c-2.8.0.ebuild |
5 |
Log: |
6 |
Version bump (bug #196800). Redigested version 2.7.0-r1 for new tarball (bug #192829). |
7 |
(Portage version: 2.1.4_rc10) |
8 |
|
9 |
Revision Changes Path |
10 |
1.12 dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild?rev=1.12&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild?rev=1.12&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild?r1=1.11&r2=1.12 |
15 |
|
16 |
Index: xerces-c-2.7.0-r1.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild,v |
19 |
retrieving revision 1.11 |
20 |
retrieving revision 1.12 |
21 |
diff -u -r1.11 -r1.12 |
22 |
--- xerces-c-2.7.0-r1.ebuild 3 Oct 2007 10:59:04 -0000 1.11 |
23 |
+++ xerces-c-2.7.0-r1.ebuild 19 Dec 2007 20:31:13 -0000 1.12 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2007 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild,v 1.11 2007/10/03 10:59:04 uberlord Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-2.7.0-r1.ebuild,v 1.12 2007/12/19 20:31:13 dev-zero Exp $ |
29 |
|
30 |
inherit eutils multilib versionator |
31 |
|
32 |
@@ -18,7 +18,7 @@ |
33 |
|
34 |
DEPEND="doc? ( app-doc/doxygen )" |
35 |
|
36 |
-S=${WORKDIR}/${MY_PN} |
37 |
+S=${WORKDIR}/${MY_P} |
38 |
|
39 |
pkg_setup() { |
40 |
eval unset ${!LC_*} LANG |
41 |
|
42 |
|
43 |
|
44 |
1.6 dev-libs/xerces-c/metadata.xml |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/metadata.xml?rev=1.6&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/metadata.xml?rev=1.6&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/metadata.xml?r1=1.5&r2=1.6 |
49 |
|
50 |
Index: metadata.xml |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/metadata.xml,v |
53 |
retrieving revision 1.5 |
54 |
retrieving revision 1.6 |
55 |
diff -u -r1.5 -r1.6 |
56 |
--- metadata.xml 15 Jul 2006 10:48:53 -0000 1.5 |
57 |
+++ metadata.xml 19 Dec 2007 20:31:13 -0000 1.6 |
58 |
@@ -4,3 +4,18 @@ |
59 |
<herd>cpp</herd> |
60 |
<longdescription>xerces-c is a C++ library specializing in XML parsing. It is released by the Apache Foundation</longdescription> |
61 |
</pkgmetadata> |
62 |
+<use> |
63 |
+ <flag name='iconv'>Use iconv as message loader and transcoder (in general it |
64 |
+ would be possible to use iconv only as message loader and something else |
65 |
+ like icu or the native method as transcoder and vice-versa, but this is a |
66 |
+ less common case and hard to handle)</flag> |
67 |
+ <flag name='icu'>Use ICU as message loader and transcoder. ICU supports over |
68 |
+ 180 different encodings and/or locale specific message support.</flag> |
69 |
+ <flag name='libwww'>Use the libwww library for fetching URLs, instead |
70 |
+ of the builtin method</flag> |
71 |
+ <flag name='native'>Use the 'native' method to fetch URLs. Please read |
72 |
+ the documentation for this. This is only available on MacOS X</flag> |
73 |
+ <flag name='threads'>Enable threading support through pthread (or other |
74 |
+ libraries on AIX, IRIX, HPUX, Solars). Highly recommended.</flag> |
75 |
+</use> |
76 |
+ |
77 |
|
78 |
|
79 |
|
80 |
1.50 dev-libs/xerces-c/ChangeLog |
81 |
|
82 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/ChangeLog?rev=1.50&view=markup |
83 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/ChangeLog?rev=1.50&content-type=text/plain |
84 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/ChangeLog?r1=1.49&r2=1.50 |
85 |
|
86 |
Index: ChangeLog |
87 |
=================================================================== |
88 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v |
89 |
retrieving revision 1.49 |
90 |
retrieving revision 1.50 |
91 |
diff -u -r1.49 -r1.50 |
92 |
--- ChangeLog 3 Oct 2007 10:59:04 -0000 1.49 |
93 |
+++ ChangeLog 19 Dec 2007 20:31:13 -0000 1.50 |
94 |
@@ -1,6 +1,15 @@ |
95 |
# ChangeLog for dev-libs/xerces-c |
96 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
97 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v 1.49 2007/10/03 10:59:04 uberlord Exp $ |
98 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v 1.50 2007/12/19 20:31:13 dev-zero Exp $ |
99 |
+ |
100 |
+*xerces-c-2.8.0 (19 Dec 2007) |
101 |
+ |
102 |
+ 19 Dec 2007; Tiziano Müller <dev-zero@g.o> |
103 |
+ +files/xerces-c-2.8.0-64bit_cast.patch, +files/50xerces-c, |
104 |
+ +files/xerces-c-2.8.0-icu_ressource_fix.patch, metadata.xml, |
105 |
+ xerces-c-2.7.0-r1.ebuild, +xerces-c-2.8.0.ebuild: |
106 |
+ Version bump (bug #196800). Redigested version 2.7.0-r1 for new tarball (bug |
107 |
+ #192829). |
108 |
|
109 |
03 Oct 2007; Roy Marples <uberlord@g.o> xerces-c-2.7.0-r1.ebuild: |
110 |
Keyworded ~x86-fbsd, #194578 thanks to Andreas Nilsson. |
111 |
|
112 |
|
113 |
|
114 |
1.1 dev-libs/xerces-c/xerces-c-2.8.0.ebuild |
115 |
|
116 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-2.8.0.ebuild?rev=1.1&view=markup |
117 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xerces-c/xerces-c-2.8.0.ebuild?rev=1.1&content-type=text/plain |
118 |
|
119 |
Index: xerces-c-2.8.0.ebuild |
120 |
=================================================================== |
121 |
# Copyright 1999-2007 Gentoo Foundation |
122 |
# Distributed under the terms of the GNU General Public License v2 |
123 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-2.8.0.ebuild,v 1.1 2007/12/19 20:31:13 dev-zero Exp $ |
124 |
|
125 |
EAPI="1" |
126 |
|
127 |
inherit eutils multilib versionator flag-o-matic toolchain-funcs |
128 |
|
129 |
MY_PN="xerces-c-src" |
130 |
MY_P=${MY_PN}_$(replace_all_version_separators _) |
131 |
|
132 |
DESCRIPTION="A validating XML parser written in a portable subset of C++." |
133 |
HOMEPAGE="http://xerces.apache.org/xerces-c/" |
134 |
SRC_URI="mirror://apache/xerces/c/sources/${MY_P}.tar.gz" |
135 |
|
136 |
LICENSE="Apache-2.0" |
137 |
SLOT="0" |
138 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
139 |
IUSE="debug doc iconv icu libwww +threads elibc_Darwin elibc_FreeBSD" |
140 |
|
141 |
RDEPEND="icu? ( dev-libs/icu ) |
142 |
libwww? ( net-libs/libwww ) |
143 |
iconv? ( virtual/libiconv )" |
144 |
DEPEND="${RDEPEND} |
145 |
doc? ( app-doc/doxygen )" |
146 |
|
147 |
S=${WORKDIR}/${MY_P} |
148 |
|
149 |
pkg_setup() { |
150 |
export ICUROOT="/usr" |
151 |
|
152 |
if use iconv && use icu ; then |
153 |
ewarn "This package can use iconv or icu for loading messages" |
154 |
ewarn "and transcoding, but not both. ICU will precede." |
155 |
fi |
156 |
} |
157 |
|
158 |
src_unpack() { |
159 |
unpack ${A} |
160 |
cd "${S}" |
161 |
|
162 |
sed -i \ |
163 |
-e 's|sh ./configure.*|/usr/bin/true|' \ |
164 |
src/xercesc/runConfigure || die "sed failed" |
165 |
|
166 |
sed -i \ |
167 |
-e 's|-L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib|-L${XERCESCROOT}/lib|g' \ |
168 |
-e 's|-L/usr/lib -L/usr/local/lib -L/usr/ccs/lib|-L${XERCESCROOT}/lib|g' \ |
169 |
{samples,src/xercesc,tests}/Makefile.incl || die "sed for fixing library include path failed" |
170 |
|
171 |
sed -i \ |
172 |
-e 's|${PREFIX}/lib|${PREFIX}/${MLIBDIR}|g' \ |
173 |
-e 's|$(PREFIX)/lib|$(PREFIX)/${MLIBDIR}|g' \ |
174 |
obj/Makefile.in src/xercesc/Makefile.incl || die "sed for fixing install lib dir failed" |
175 |
|
176 |
sed -i \ |
177 |
-e 's|$(PREFIX)/msg|$(PREFIX)/share/xerces-c/msg|g' \ |
178 |
-e 's|${PREFIX}/msg|${PREFIX}/share/xerces-c/msg|g' \ |
179 |
src/xercesc/util/Makefile.in || die "sed for changing message catalogue directory failed" |
180 |
|
181 |
epatch \ |
182 |
"${FILESDIR}/${P}-64bit_cast.patch" \ |
183 |
"${FILESDIR}/${P}-icu_ressource_fix.patch" |
184 |
} |
185 |
|
186 |
src_compile() { |
187 |
export XERCESCROOT="${S}" |
188 |
cd src/xercesc |
189 |
|
190 |
local myconf |
191 |
use debug && myconf="-d" |
192 |
|
193 |
local bitstobuild="32" |
194 |
$(has_m64) && bitstobuild="64" |
195 |
|
196 |
# We need a case-switch here for other platforms, |
197 |
# but we wait until there's a real use case |
198 |
local target="linux" |
199 |
use elibc_FreeBSD && target="freebsd" |
200 |
use elibc_Darwin && target="macosx" |
201 |
|
202 |
local mloader="inmem" |
203 |
use iconv && mloader="iconv" |
204 |
use icu && mloader="icu" |
205 |
|
206 |
local transcoder="native" |
207 |
if use iconv ; then |
208 |
transcoder="IconvGNU" |
209 |
use elibc_FreeBSD && transcoder="IconvFBSD" |
210 |
fi |
211 |
use icu && transcoder="icu" |
212 |
|
213 |
# Other options are available for AIX, HP-11, IRIX or Solaris |
214 |
local thread="none" |
215 |
use threads && thread="pthread" |
216 |
|
217 |
# 'native' is only available on OSX (see use.mask) and 'socket' |
218 |
# isn't supposed to work. But the docs aren't clear about it, so |
219 |
# we would need some testing... |
220 |
local netaccessor="socket" |
221 |
use elibc_Darwin && netaccessor="native" |
222 |
use libwww && netaccessor="libwww" |
223 |
|
224 |
./runConfigure -p ${target} -c "$(tc-getCC)" -x "$(tc-getCXX)" \ |
225 |
${myconf} -m ${mloader} -n ${netaccessor} -t ${transcoder} \ |
226 |
-r ${thread} -b ${bitstobuild} > configure.vars || die "runConfigure failed" |
227 |
|
228 |
# This should be safe since runConfigure includes our C[XX]FLAGS |
229 |
eval $(grep export configure.vars) |
230 |
econf || die "econf failed" |
231 |
# Parallel building is horribly broken when not using --as-needed |
232 |
emake -j1 || die "emake failed" |
233 |
|
234 |
if use doc ; then |
235 |
cd "${S}/doc" |
236 |
doxygen || die "making docs failed" |
237 |
fi |
238 |
} |
239 |
|
240 |
src_install () { |
241 |
export XERCESCROOT="${S}" |
242 |
cd src/xercesc |
243 |
emake DESTDIR="${D}" MLIBDIR=$(get_libdir) install || die "emake failed" |
244 |
|
245 |
cd "${S}" |
246 |
doenvd "${FILESDIR}/50xerces-c" |
247 |
|
248 |
# Upstream seems to have forgotten this |
249 |
if use icu ; then |
250 |
dolib.so lib/libXercesMessages.so.28.0 |
251 |
dosym libXercesMessages.so.28.0 /usr/$(get_libdir)/libXercesMessages.so.28 |
252 |
dosym libXercesMessages.so.28.0 /usr/$(get_libdir)/libXercesMessages.so |
253 |
fi |
254 |
|
255 |
if use doc; then |
256 |
insinto /usr/share/doc/${PF} |
257 |
rm -rf samples/config* samples/Makefile* samples/runConfigure samples/install-sh samples/*/Makefile* |
258 |
doins -r samples |
259 |
dohtml -r doc/html/* |
260 |
fi |
261 |
|
262 |
dodoc STATUS credits.txt version.incl |
263 |
dohtml Readme.html |
264 |
|
265 |
unset XERCESCROOT |
266 |
} |
267 |
|
268 |
# There are tests available, but without a script to run them |
269 |
|
270 |
|
271 |
|
272 |
-- |
273 |
gentoo-commits@g.o mailing list |