1 |
commit: 61e590adbee50a9c9b4b96b32b61e24d7140d412 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 29 22:30:31 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 30 09:58:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61e590ad |
7 |
|
8 |
dev-libs/icu: 64.1 version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/682032 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
dev-libs/icu/Manifest | 1 + |
16 |
.../icu/files/icu-64.1-guard-memory-include.patch | 52 ++++++++ |
17 |
dev-libs/icu/icu-64.1.ebuild | 143 +++++++++++++++++++++ |
18 |
3 files changed, 196 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest |
21 |
index 96711e6dbbe..f77c1e6b6c9 100644 |
22 |
--- a/dev-libs/icu/Manifest |
23 |
+++ b/dev-libs/icu/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST icu4c-58_2-src.tgz 23369902 BLAKE2B cdd2e02c3aba050f5b7f8b38c5a3731e3e5f1cc1403ef86a50908b95560ea3cf8a2d47119fa60cf34f22a8b65eaa2392fd5bcbd3bc48b3da541fe3d9bd7392c0 SHA512 5c21af748f48b392e6c0412bd0aee92162ea931820dcbfab4ec6e0299868504b303d88f7586cc95de55c777ac0dca3a29d6c8ca0892c646ebc864c8a5b5a162a |
26 |
DIST icu4c-63_1-src.tgz 23746939 BLAKE2B 5a665554506ff705c83c7a03a1b5598b1a48afbe1c6caaccd5a2d7d5aae16b3e18d7bc65ed552fc4df86248a2f13962438f19bca6c2a579843204c7dc52e6278 SHA512 9ab407ed840a00cdda7470dcc4c40299a125ad246ae4d019c4b1ede54781157fd63af015a8228cd95dbc47e4d15a0932b2c657489046a19788e5e8266eac079c |
27 |
+DIST icu4c-64_1-src.tgz 24013136 BLAKE2B e577bd4c9b822e5ef3a101b3ef46b7b42ca18077d6e05fca543ff1eb702261f017981fb22dd3970662397530b390f648d4417c84dcf3d6ed0d298dd7a8c38897 SHA512 5eca8342d8bdf902689243506643e04512744b33962687e118f6810af6f7fd073678f67b991d2ae9139d257713b63abb4222b96687234df01ad5ff62df16ede0 |
28 |
|
29 |
diff --git a/dev-libs/icu/files/icu-64.1-guard-memory-include.patch b/dev-libs/icu/files/icu-64.1-guard-memory-include.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..618a4254127 |
32 |
--- /dev/null |
33 |
+++ b/dev-libs/icu/files/icu-64.1-guard-memory-include.patch |
34 |
@@ -0,0 +1,52 @@ |
35 |
+From 5ecd46bab07561758e0c37a9178e74175e989bdf Mon Sep 17 00:00:00 2001 |
36 |
+From: Alon Bar-Lev <alon.barlev@×××××.com> |
37 |
+Date: Sat, 30 Mar 2019 09:59:46 +0300 |
38 |
+Subject: [PATCH] ICU-20530 Guard memory include for C++ |
39 |
+MIME-Version: 1.0 |
40 |
+Content-Type: text/plain; charset=UTF-8 |
41 |
+Content-Transfer-Encoding: 8bit |
42 |
+ |
43 |
+Introduce by ICU-20357, commit b7a3571b adding <memory> include without guard. |
44 |
+ |
45 |
+Fails when compiling within extern "C". |
46 |
+ |
47 |
+a.cxx |
48 |
+--- |
49 |
+extern "C" { |
50 |
+ #include <unicode/localpointer.h> |
51 |
+} |
52 |
+--- |
53 |
+In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/memory:84, |
54 |
+ from /tmp/icu/icu4c/source/common/unicode/localpointer.h:45, |
55 |
+ from a.cxx:4: |
56 |
+/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/backward/auto_ptr.h:325:3: error: template with C linkage |
57 |
+ template<typename _Tp, typename _Dp> |
58 |
+ ^~~~~~~~ |
59 |
+a.cxx:3:1: note: ‘extern "C"’ linkage started here |
60 |
+ extern "C" { |
61 |
+ ^~~~~~~~~~ |
62 |
+--- |
63 |
+ |
64 |
+Found by usage of xmlsec. |
65 |
+ |
66 |
+Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com> |
67 |
+--- |
68 |
+ icu4c/source/common/unicode/localpointer.h | 4 ++++ |
69 |
+ 1 file changed, 4 insertions(+) |
70 |
+ |
71 |
+diff --git a/icu4c/source/common/unicode/localpointer.h b/icu4c/source/common/unicode/localpointer.h |
72 |
+index e011688b1a5..8e35ded0b10 100644 |
73 |
+--- a/common/unicode/localpointer.h |
74 |
++++ b/common/unicode/localpointer.h |
75 |
+@@ -42,7 +42,11 @@ |
76 |
+ |
77 |
+ #if U_SHOW_CPLUSPLUS_API |
78 |
+ |
79 |
++#ifdef __cplusplus |
80 |
++extern "C++" { |
81 |
+ #include <memory> |
82 |
++} |
83 |
++#endif |
84 |
+ |
85 |
+ U_NAMESPACE_BEGIN |
86 |
+ |
87 |
|
88 |
diff --git a/dev-libs/icu/icu-64.1.ebuild b/dev-libs/icu/icu-64.1.ebuild |
89 |
new file mode 100644 |
90 |
index 00000000000..fbe419ce973 |
91 |
--- /dev/null |
92 |
+++ b/dev-libs/icu/icu-64.1.ebuild |
93 |
@@ -0,0 +1,143 @@ |
94 |
+# Copyright 1999-2019 Gentoo Authors |
95 |
+# Distributed under the terms of the GNU General Public License v2 |
96 |
+ |
97 |
+EAPI=7 |
98 |
+ |
99 |
+inherit flag-o-matic toolchain-funcs autotools multilib-minimal |
100 |
+ |
101 |
+DESCRIPTION="International Components for Unicode" |
102 |
+HOMEPAGE="http://www.icu-project.org/" |
103 |
+SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz" |
104 |
+ |
105 |
+LICENSE="BSD" |
106 |
+ |
107 |
+SLOT="0/${PV}" |
108 |
+ |
109 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
110 |
+IUSE="debug doc examples static-libs" |
111 |
+ |
112 |
+DEPEND=" |
113 |
+ doc? ( app-doc/doxygen[dot] ) |
114 |
+" |
115 |
+BDEPEND=" |
116 |
+ virtual/pkgconfig |
117 |
+" |
118 |
+ |
119 |
+S="${WORKDIR}/${PN}/source" |
120 |
+ |
121 |
+MULTILIB_CHOST_TOOLS=( |
122 |
+ /usr/bin/icu-config |
123 |
+) |
124 |
+ |
125 |
+PATCHES=( |
126 |
+ "${FILESDIR}/${PN}-58.1-remove-bashisms.patch" |
127 |
+ "${FILESDIR}/${PN}-58.2-darwin.patch" |
128 |
+ "${FILESDIR}/${P}-guard-memory-include.patch" |
129 |
+) |
130 |
+ |
131 |
+src_prepare() { |
132 |
+ default |
133 |
+ |
134 |
+ local variable |
135 |
+ |
136 |
+ # Disable renaming as it is stupid thing to do |
137 |
+ sed -i \ |
138 |
+ -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
139 |
+ common/unicode/uconfig.h || die |
140 |
+ |
141 |
+ # Fix linking of icudata |
142 |
+ sed -i \ |
143 |
+ -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
144 |
+ config/mh-linux || die |
145 |
+ |
146 |
+ # Append doxygen configuration to configure |
147 |
+ sed -i \ |
148 |
+ -e 's:icudefs.mk:icudefs.mk Doxyfile:' \ |
149 |
+ configure.ac || die |
150 |
+ |
151 |
+ eautoreconf |
152 |
+} |
153 |
+ |
154 |
+src_configure() { |
155 |
+ append-cxxflags -std=c++14 |
156 |
+ |
157 |
+ if tc-is-cross-compiler; then |
158 |
+ mkdir "${WORKDIR}"/host || die |
159 |
+ pushd "${WORKDIR}"/host >/dev/null || die |
160 |
+ |
161 |
+ CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \ |
162 |
+ CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \ |
163 |
+ RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \ |
164 |
+ "${S}"/configure --disable-renaming --disable-debug \ |
165 |
+ --disable-samples --enable-static || die |
166 |
+ emake |
167 |
+ |
168 |
+ popd >/dev/null || die |
169 |
+ fi |
170 |
+ |
171 |
+ multilib-minimal_src_configure |
172 |
+} |
173 |
+ |
174 |
+multilib_src_configure() { |
175 |
+ local myeconfargs=( |
176 |
+ --disable-renaming |
177 |
+ --disable-samples |
178 |
+ --disable-layoutex |
179 |
+ $(use_enable debug) |
180 |
+ $(use_enable static-libs static) |
181 |
+ $(multilib_native_use_enable examples samples) |
182 |
+ ) |
183 |
+ |
184 |
+ tc-is-cross-compiler && myeconfargs+=( |
185 |
+ --with-cross-build="${WORKDIR}"/host |
186 |
+ ) |
187 |
+ |
188 |
+ # icu tries to use clang by default |
189 |
+ tc-export CC CXX |
190 |
+ |
191 |
+ # make sure we configure with the same shell as we run icu-config |
192 |
+ # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined |
193 |
+ export CONFIG_SHELL="${EPREFIX}/bin/sh" |
194 |
+ # probably have no /bin/sh in prefix-chain |
195 |
+ [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}" |
196 |
+ |
197 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
198 |
+} |
199 |
+ |
200 |
+multilib_src_compile() { |
201 |
+ default |
202 |
+ |
203 |
+ if multilib_is_native_abi && use doc; then |
204 |
+ doxygen -u Doxyfile || die |
205 |
+ doxygen Doxyfile || die |
206 |
+ fi |
207 |
+} |
208 |
+ |
209 |
+multilib_src_test() { |
210 |
+ # INTLTEST_OPTS: intltest options |
211 |
+ # -e: Exhaustive testing |
212 |
+ # -l: Reporting of memory leaks |
213 |
+ # -v: Increased verbosity |
214 |
+ # IOTEST_OPTS: iotest options |
215 |
+ # -e: Exhaustive testing |
216 |
+ # -v: Increased verbosity |
217 |
+ # CINTLTST_OPTS: cintltst options |
218 |
+ # -e: Exhaustive testing |
219 |
+ # -v: Increased verbosity |
220 |
+ emake -j1 VERBOSE="1" check |
221 |
+} |
222 |
+ |
223 |
+multilib_src_install() { |
224 |
+ default |
225 |
+ |
226 |
+ if multilib_is_native_abi && use doc; then |
227 |
+ docinto html |
228 |
+ dodoc -r doc/html/* |
229 |
+ fi |
230 |
+} |
231 |
+ |
232 |
+multilib_src_install_all() { |
233 |
+ einstalldocs |
234 |
+ docinto html |
235 |
+ dodoc ../readme.html |
236 |
+} |