1 |
mgorny 13/12/26 11:12:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: icu-51.2-r2.ebuild |
5 |
Log: |
6 |
Introduce multilib support wrt bug #480422. Acked by scarabeus. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.260 dev-libs/icu/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/ChangeLog?rev=1.260&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/ChangeLog?rev=1.260&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/ChangeLog?r1=1.259&r2=1.260 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v |
20 |
retrieving revision 1.259 |
21 |
retrieving revision 1.260 |
22 |
diff -u -r1.259 -r1.260 |
23 |
--- ChangeLog 12 Nov 2013 20:12:53 -0000 1.259 |
24 |
+++ ChangeLog 26 Dec 2013 11:12:24 -0000 1.260 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-libs/icu |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v 1.259 2013/11/12 20:12:53 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v 1.260 2013/12/26 11:12:24 mgorny Exp $ |
30 |
+ |
31 |
+*icu-51.2-r2 (26 Dec 2013) |
32 |
+ |
33 |
+ 26 Dec 2013; Michał Górny <mgorny@g.o> +icu-51.2-r2.ebuild: |
34 |
+ Introduce multilib support wrt bug #480422. Acked by scarabeus. |
35 |
|
36 |
12 Nov 2013; Agostino Sarubbo <ago@g.o> icu-51.2-r1.ebuild: |
37 |
Stable for ia64, wrt bug #486948 |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-libs/icu/icu-51.2-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/icu-51.2-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/icu-51.2-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: icu-51.2-r2.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/icu/icu-51.2-r2.ebuild,v 1.1 2013/12/26 11:12:24 mgorny Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
inherit eutils toolchain-funcs autotools multilib-minimal |
55 |
|
56 |
DESCRIPTION="International Components for Unicode" |
57 |
HOMEPAGE="http://www.icu-project.org/" |
58 |
SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz" |
59 |
|
60 |
LICENSE="BSD" |
61 |
|
62 |
SLOT="0/51.2" |
63 |
# As far as I can remember, icu consumers reacted rather sensitive to icu upgrades in the past. |
64 |
# Even if revdep-rebuild did not rebuild (i.e. soname did not change), random crashes and |
65 |
# other irregularities occured until the consumers were rebuilt. So let's rather err on the side |
66 |
# of caution and more rebuilds here. See also bug 464876. dilfridge |
67 |
|
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
69 |
IUSE="debug doc examples static-libs" |
70 |
|
71 |
DEPEND=" |
72 |
doc? ( |
73 |
app-doc/doxygen[dot] |
74 |
) |
75 |
" |
76 |
|
77 |
S="${WORKDIR}/${PN}/source" |
78 |
|
79 |
PATCHES=( |
80 |
"${FILESDIR}/${PN}-51.1-CVE-2013-2924.patch" |
81 |
) |
82 |
|
83 |
src_prepare() { |
84 |
local variable |
85 |
|
86 |
epatch_user |
87 |
|
88 |
# Do not hardcode flags in icu-config and icu-*.pc files. |
89 |
# https://ssl.icu-project.org/trac/ticket/6102 |
90 |
for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do |
91 |
sed \ |
92 |
-e "/^${variable} =.*/s: *@${variable}@\( *$\)\?::" \ |
93 |
-i config/icu.pc.in \ |
94 |
-i config/Makefile.inc.in \ |
95 |
|| die |
96 |
done |
97 |
|
98 |
# Disable renaming as it is stupind thing to do |
99 |
sed -i \ |
100 |
-e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
101 |
common/unicode/uconfig.h || die |
102 |
|
103 |
# Fix linking of icudata |
104 |
sed -i \ |
105 |
-e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
106 |
config/mh-linux || die |
107 |
|
108 |
# Append doxygen configuration to configure |
109 |
sed -i \ |
110 |
-e 's:icudefs.mk:icudefs.mk Doxyfile:' \ |
111 |
configure.in || die |
112 |
eautoreconf |
113 |
} |
114 |
|
115 |
src_configure() { |
116 |
if tc-is-cross-compiler; then |
117 |
mkdir "${WORKDIR}"/host || die |
118 |
pushd "${WORKDIR}"/host >/dev/null || die |
119 |
|
120 |
CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \ |
121 |
CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \ |
122 |
RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \ |
123 |
"${S}"/configure --disable-renaming --disable-debug \ |
124 |
--disable-samples --enable-static || die |
125 |
emake |
126 |
|
127 |
popd >/dev/null || die |
128 |
fi |
129 |
|
130 |
multilib-minimal_src_configure |
131 |
} |
132 |
|
133 |
multilib_src_configure() { |
134 |
local myeconfargs=( |
135 |
--disable-renaming |
136 |
--disable-samples |
137 |
$(use_enable debug) |
138 |
$(use_enable static-libs static) |
139 |
) |
140 |
|
141 |
multilib_build_binaries && myeconfargs+=( |
142 |
$(use_enable examples samples) |
143 |
) |
144 |
tc-is-cross-compiler && myeconfargs+=( |
145 |
--with-cross-build="${WORKDIR}"/host |
146 |
) |
147 |
|
148 |
# icu tries to use clang by default |
149 |
tc-export CC CXX |
150 |
|
151 |
ECONF_SOURCE=${S} \ |
152 |
econf "${myeconfargs[@]}" |
153 |
} |
154 |
|
155 |
multilib_src_compile() { |
156 |
default |
157 |
|
158 |
if multilib_build_binaries && use doc; then |
159 |
doxygen -u Doxyfile || die |
160 |
doxygen Doxyfile || die |
161 |
fi |
162 |
} |
163 |
|
164 |
multilib_src_test() { |
165 |
# INTLTEST_OPTS: intltest options |
166 |
# -e: Exhaustive testing |
167 |
# -l: Reporting of memory leaks |
168 |
# -v: Increased verbosity |
169 |
# IOTEST_OPTS: iotest options |
170 |
# -e: Exhaustive testing |
171 |
# -v: Increased verbosity |
172 |
# CINTLTST_OPTS: cintltst options |
173 |
# -e: Exhaustive testing |
174 |
# -v: Increased verbosity |
175 |
emake -j1 VERBOSE="1" check |
176 |
} |
177 |
|
178 |
multilib_src_install() { |
179 |
default |
180 |
|
181 |
if multilib_build_binaries && use doc; then |
182 |
dohtml -p api -r doc/html/ |
183 |
fi |
184 |
} |
185 |
|
186 |
multilib_src_install_all() { |
187 |
einstalldocs |
188 |
dohtml ../readme.html |
189 |
} |