1 |
ssuominen 11/08/01 10:14:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: expat-2.0.1-r5.ebuild |
5 |
Log: |
6 |
Build libexpatu (unicode) and libexpatw (unicode wchar_t) libraries wrt #306655 by Gilles Dartiguelongue and Tiziano Müller |
7 |
|
8 |
(Portage version: 2.2.0_alpha47/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.100 dev-libs/expat/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/ChangeLog?rev=1.100&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/ChangeLog?rev=1.100&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/ChangeLog?r1=1.99&r2=1.100 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/expat/ChangeLog,v |
20 |
retrieving revision 1.99 |
21 |
retrieving revision 1.100 |
22 |
diff -u -r1.99 -r1.100 |
23 |
--- ChangeLog 29 Jul 2011 16:33:13 -0000 1.99 |
24 |
+++ ChangeLog 1 Aug 2011 10:14:26 -0000 1.100 |
25 |
@@ -1,6 +1,10 @@ |
26 |
# ChangeLog for dev-libs/expat |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/ChangeLog,v 1.99 2011/07/29 16:33:13 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/ChangeLog,v 1.100 2011/08/01 10:14:26 ssuominen Exp $ |
30 |
+ |
31 |
+ 01 Aug 2011; Samuli Suominen <ssuominen@g.o> +expat-2.0.1-r5.ebuild: |
32 |
+ Build libexpatu (unicode) and libexpatw (unicode wchar_t) libraries wrt |
33 |
+ #306655 by Gilles Dartiguelongue and Tiziano Müller |
34 |
|
35 |
*expat-2.0.1-r4 (29 Jul 2011) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-libs/expat/expat-2.0.1-r5.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/expat-2.0.1-r5.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/expat-2.0.1-r5.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: expat-2.0.1-r5.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2011 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.0.1-r5.ebuild,v 1.1 2011/08/01 10:14:26 ssuominen Exp $ |
50 |
|
51 |
EAPI=4 |
52 |
inherit eutils libtool toolchain-funcs |
53 |
|
54 |
DESCRIPTION="XML parsing libraries" |
55 |
HOMEPAGE="http://expat.sourceforge.net/" |
56 |
SRC_URI="mirror://sourceforge/expat/${P}.tar.gz" |
57 |
|
58 |
LICENSE="MIT" |
59 |
SLOT="0" |
60 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
61 |
IUSE="elibc_FreeBSD examples static-libs" |
62 |
|
63 |
src_prepare() { |
64 |
epatch \ |
65 |
"${FILESDIR}"/${P}-check_stopped_parser.patch \ |
66 |
"${FILESDIR}"/${P}-fix_bug_1990430.patch \ |
67 |
"${FILESDIR}"/${P}-CVE-2009-3560-revised.patch |
68 |
|
69 |
elibtoolize |
70 |
epunt_cxx |
71 |
|
72 |
mkdir "${S}"-build{,u,w} || die |
73 |
} |
74 |
|
75 |
src_configure() { |
76 |
local myconf="$(use_enable static-libs static)" |
77 |
|
78 |
local d |
79 |
for d in build buildu buildw; do |
80 |
pushd "${S}"-${d} |
81 |
[[ ${d} == buildu ]] && export GENTOO_CPPFLAGS="-UXML_UNICODE" |
82 |
[[ ${d} == buildw ]] && export GENTOO_CPPFLAGS="-UXML_UNICODE -DXML_UNICODE_WCHAR_T" |
83 |
CPPFLAGS="${CPPFLAGS} ${GENTOO_CPPFLAGS}" ECONF_SOURCE="${S}" econf ${myconf} |
84 |
popd |
85 |
done |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
cd "${S}-build" |
90 |
emake |
91 |
cd "${S}-buildu" |
92 |
emake buildlib LIBRARY=libexpatu.la |
93 |
cd "${S}-buildw" |
94 |
emake buildlib LIBRARY=libexpatw.la |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
dodoc Changes README |
99 |
dohtml doc/* |
100 |
|
101 |
if use examples; then |
102 |
insinto /usr/share/doc/${PF}/examples |
103 |
doins examples/*.c |
104 |
fi |
105 |
|
106 |
cd "${S}-build" |
107 |
emake DESTDIR="${D}" install |
108 |
cd "${S}-buildu" |
109 |
emake installlib DESTDIR="${D}" LIBRARY=libexpatu.la |
110 |
cd "${S}-buildw" |
111 |
emake installlib DESTDIR="${D}" LIBRARY=libexpatw.la |
112 |
|
113 |
use static-libs || rm -f "${D}"usr/lib*/libexpat{,u,w}.la |
114 |
|
115 |
# libgeom in /lib and ifconfig in /sbin require it on FreeBSD since we |
116 |
# stripped the libbsdxml copy starting from freebsd-lib-8.2-r1 |
117 |
use elibc_FreeBSD && gen_usr_ldscript -a expat{,u,w} |
118 |
} |