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