1 |
ssuominen 13/08/02 00:19:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: expat-2.1.0-r3.ebuild |
5 |
Log: |
6 |
Convert to the new multilib format wrt #478468 by Julian Ospald |
7 |
|
8 |
(Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.149 dev-libs/expat/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/ChangeLog?rev=1.149&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/ChangeLog?rev=1.149&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/ChangeLog?r1=1.148&r2=1.149 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/expat/ChangeLog,v |
20 |
retrieving revision 1.148 |
21 |
retrieving revision 1.149 |
22 |
diff -u -r1.148 -r1.149 |
23 |
--- ChangeLog 5 Jun 2013 00:16:25 -0000 1.148 |
24 |
+++ ChangeLog 2 Aug 2013 00:19:12 -0000 1.149 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-libs/expat |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/ChangeLog,v 1.148 2013/06/05 00:16:25 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/ChangeLog,v 1.149 2013/08/02 00:19:12 ssuominen Exp $ |
30 |
+ |
31 |
+*expat-2.1.0-r3 (02 Aug 2013) |
32 |
+ |
33 |
+ 02 Aug 2013; Samuli Suominen <ssuominen@g.o> +expat-2.1.0-r3.ebuild: |
34 |
+ Convert to the new multilib format wrt #478468 by Julian Ospald |
35 |
|
36 |
05 Jun 2013; Mike Frysinger <vapier@g.o> metadata.xml: |
37 |
Add upstream CPE tag (security info) from ChromiumOS. |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-libs/expat/expat-2.1.0-r3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/expat-2.1.0-r3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/expat/expat-2.1.0-r3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: expat-2.1.0-r3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.1.0-r3.ebuild,v 1.1 2013/08/02 00:19:12 ssuominen Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
inherit eutils libtool multilib toolchain-funcs multilib-minimal |
54 |
|
55 |
DESCRIPTION="XML parsing libraries" |
56 |
HOMEPAGE="http://expat.sourceforge.net/" |
57 |
SRC_URI="mirror://sourceforge/expat/${P}.tar.gz" |
58 |
|
59 |
LICENSE="MIT" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux" |
62 |
IUSE="elibc_FreeBSD examples static-libs unicode" |
63 |
|
64 |
src_prepare() { |
65 |
elibtoolize |
66 |
} |
67 |
|
68 |
multilib_src_configure() { |
69 |
local myconf="$(use_enable static-libs static)" |
70 |
|
71 |
mkdir -p "${BUILD_DIR}"{u,w} || die |
72 |
|
73 |
ECONF_SOURCE="${S}" econf ${myconf} |
74 |
|
75 |
if use unicode; then |
76 |
pushd "${BUILD_DIR}"u >/dev/null |
77 |
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}" econf ${myconf} |
78 |
popd >/dev/null |
79 |
|
80 |
pushd "${BUILD_DIR}"w >/dev/null |
81 |
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE_WCHAR_T" ECONF_SOURCE="${S}" econf ${myconf} |
82 |
popd >/dev/null |
83 |
fi |
84 |
} |
85 |
|
86 |
multilib_src_compile() { |
87 |
emake |
88 |
|
89 |
if use unicode; then |
90 |
pushd "${BUILD_DIR}"u >/dev/null |
91 |
emake buildlib LIBRARY=libexpatu.la |
92 |
popd >/dev/null |
93 |
|
94 |
pushd "${BUILD_DIR}"w >/dev/null |
95 |
emake buildlib LIBRARY=libexpatw.la |
96 |
popd >/dev/null |
97 |
fi |
98 |
} |
99 |
|
100 |
multilib_src_install() { |
101 |
emake install DESTDIR="${D}" |
102 |
|
103 |
if use unicode; then |
104 |
pushd "${BUILD_DIR}"u >/dev/null |
105 |
emake installlib DESTDIR="${D}" LIBRARY=libexpatu.la |
106 |
popd >/dev/null |
107 |
|
108 |
pushd "${BUILD_DIR}"w >/dev/null |
109 |
emake installlib DESTDIR="${D}" LIBRARY=libexpatw.la |
110 |
popd >/dev/null |
111 |
|
112 |
pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null |
113 |
cp expat.pc expatu.pc |
114 |
sed -i -e '/^Libs/s:-lexpat:&u:' expatu.pc || die |
115 |
cp expat.pc expatw.pc |
116 |
sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die |
117 |
popd >/dev/null |
118 |
fi |
119 |
|
120 |
if [[ ${ABI} == ${DEFAULT_ABI} ]] ; then |
121 |
# libgeom in /lib and ifconfig in /sbin require libexpat on FreeBSD since |
122 |
# we stripped the libbsdxml copy starting from freebsd-lib-8.2-r1 |
123 |
use elibc_FreeBSD && gen_usr_ldscript -a expat |
124 |
fi |
125 |
} |
126 |
|
127 |
multilib_src_install_all() { |
128 |
dodoc Changes README |
129 |
dohtml doc/* |
130 |
|
131 |
if use examples; then |
132 |
insinto /usr/share/doc/${PF}/examples |
133 |
doins examples/*.c |
134 |
fi |
135 |
|
136 |
prune_libtool_files |
137 |
} |