1 |
commit: 8f7f209db003e7a987e503e7fe28a438401b78c9 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 28 14:08:53 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 28 14:46:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f7f209d |
7 |
|
8 |
dev-libs/icu: Bump to version 60.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
dev-libs/icu/Manifest | 1 + |
13 |
dev-libs/icu/icu-60.1.ebuild | 156 +++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 157 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest |
17 |
index f91afe2ae94..25e55a75ffb 100644 |
18 |
--- a/dev-libs/icu/Manifest |
19 |
+++ b/dev-libs/icu/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST icu4c-58_1-src.tgz 23366443 SHA256 0eb46ba3746a9c2092c8ad347a29b1a1b4941144772d13a88667a7b11ea30309 SHA512 59b2a76834192a35125fda326587e613ef4486152cf0278c6f22568d4ae02c4b2d897efcea2654ef2b11bd1c3154aecd38cb68a70f69430736f343689f94c155 WHIRLPOOL faf2624a83f0d6f874166b328522dc9c89088db2690433ab05e96371722b635b81fd5210c7e87fe8e5df6681e881cf10204832925b448552affe8c2f6c851e37 |
22 |
DIST icu4c-58_2-src.tgz 23369902 SHA256 2b0a4410153a9b20de0e20c7d8b66049a72aef244b53683d0d7521371683da0c SHA512 5c21af748f48b392e6c0412bd0aee92162ea931820dcbfab4ec6e0299868504b303d88f7586cc95de55c777ac0dca3a29d6c8ca0892c646ebc864c8a5b5a162a WHIRLPOOL 25829f8ee870b703fd604ae5b9b584390a142f5011e2a5db18332453e2f1640d81270086f243318eeb93f187b04ea23dab14901ab81c8d924c8d47b1f77aee5a |
23 |
DIST icu4c-59_1-src.tgz 22706578 SHA256 7132fdaf9379429d004005217f10e00b7d2319d0fea22bdfddef8991c45b75fe SHA512 9348aa68d72a74cd1f26588c30c80eee1b48800a26930d7eb0749390fd65f7930ee8843058b6a6dd5f265e79054fef661e807ded16a1ad691cbc5ebc5ab944c4 WHIRLPOOL f213951e98b7e1b59a3caf193f671fd9dff9a77c49aa3c4c118d6e3414688830ffb029d5c01495b369d4e666ab38669340a4c24a26f93742a99145972e20ede0 |
24 |
+DIST icu4c-60_1-src.tgz 23296064 BLAKE2B 4f90c1f4f00b686d2632429fbaa6a6ec3d977e414f8d00cf82a525a1504c9d8c9b1a19458b495e5847abbcfff933038752f96d6bd165d206582f8ec1b77fff40 SHA512 a6798f70add1b3bac2197a49e09a0bb636279af7019ce572f63a30ab713e09657ee9d9b20aac7ea806fbb84667ca2eca981411e5053b47c3c705aa496a669233 |
25 |
|
26 |
diff --git a/dev-libs/icu/icu-60.1.ebuild b/dev-libs/icu/icu-60.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c8f9ddca172 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/icu/icu-60.1.ebuild |
31 |
@@ -0,0 +1,156 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit eutils flag-o-matic toolchain-funcs autotools multilib-minimal |
38 |
+ |
39 |
+DESCRIPTION="International Components for Unicode" |
40 |
+HOMEPAGE="http://www.icu-project.org/" |
41 |
+SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz" |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+ |
45 |
+SLOT="0/${PV}" |
46 |
+ |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
48 |
+IUSE="debug doc examples static-libs" |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ virtual/pkgconfig |
52 |
+ doc? ( |
53 |
+ app-doc/doxygen[dot] |
54 |
+ ) |
55 |
+" |
56 |
+ |
57 |
+S="${WORKDIR}/${PN}/source" |
58 |
+ |
59 |
+MULTILIB_CHOST_TOOLS=( |
60 |
+ /usr/bin/icu-config |
61 |
+) |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/${PN}-58.1-remove-bashisms.patch" |
65 |
+) |
66 |
+ |
67 |
+pkg_pretend() { |
68 |
+ if tc-is-gcc ; then |
69 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
70 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
71 |
+ die "You need at least sys-devel/gcc-4.9" |
72 |
+ fi |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ # apply patches |
78 |
+ default |
79 |
+ |
80 |
+ local variable |
81 |
+ |
82 |
+ # Disable renaming as it is stupid thing to do |
83 |
+ sed -i \ |
84 |
+ -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
85 |
+ common/unicode/uconfig.h || die |
86 |
+ |
87 |
+ # Fix linking of icudata |
88 |
+ sed -i \ |
89 |
+ -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
90 |
+ config/mh-linux || die |
91 |
+ |
92 |
+ # Append doxygen configuration to configure |
93 |
+ sed -i \ |
94 |
+ -e 's:icudefs.mk:icudefs.mk Doxyfile:' \ |
95 |
+ configure.ac || die |
96 |
+ |
97 |
+ eautoreconf |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ # Use C++14 |
102 |
+ append-cxxflags -std=c++14 |
103 |
+ |
104 |
+ if tc-is-gcc ; then |
105 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
106 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
107 |
+ die "You need at least sys-devel/gcc-4.9" |
108 |
+ fi |
109 |
+ fi |
110 |
+ |
111 |
+ if tc-is-cross-compiler; then |
112 |
+ mkdir "${WORKDIR}"/host || die |
113 |
+ pushd "${WORKDIR}"/host >/dev/null || die |
114 |
+ |
115 |
+ CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \ |
116 |
+ CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \ |
117 |
+ RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \ |
118 |
+ "${S}"/configure --disable-renaming --disable-debug \ |
119 |
+ --disable-samples --enable-static || die |
120 |
+ emake |
121 |
+ |
122 |
+ popd >/dev/null || die |
123 |
+ fi |
124 |
+ |
125 |
+ multilib-minimal_src_configure |
126 |
+} |
127 |
+ |
128 |
+multilib_src_configure() { |
129 |
+ local myeconfargs=( |
130 |
+ --disable-renaming |
131 |
+ --disable-samples |
132 |
+ --disable-layoutex |
133 |
+ $(use_enable debug) |
134 |
+ $(use_enable static-libs static) |
135 |
+ ) |
136 |
+ |
137 |
+ multilib_is_native_abi && myeconfargs+=( |
138 |
+ $(use_enable examples samples) |
139 |
+ ) |
140 |
+ tc-is-cross-compiler && myeconfargs+=( |
141 |
+ --with-cross-build="${WORKDIR}"/host |
142 |
+ ) |
143 |
+ |
144 |
+ # icu tries to use clang by default |
145 |
+ tc-export CC CXX |
146 |
+ |
147 |
+ ECONF_SOURCE=${S} \ |
148 |
+ econf "${myeconfargs[@]}" |
149 |
+} |
150 |
+ |
151 |
+multilib_src_compile() { |
152 |
+ default |
153 |
+ |
154 |
+ if multilib_is_native_abi && use doc; then |
155 |
+ doxygen -u Doxyfile || die |
156 |
+ doxygen Doxyfile || die |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+multilib_src_test() { |
161 |
+ # INTLTEST_OPTS: intltest options |
162 |
+ # -e: Exhaustive testing |
163 |
+ # -l: Reporting of memory leaks |
164 |
+ # -v: Increased verbosity |
165 |
+ # IOTEST_OPTS: iotest options |
166 |
+ # -e: Exhaustive testing |
167 |
+ # -v: Increased verbosity |
168 |
+ # CINTLTST_OPTS: cintltst options |
169 |
+ # -e: Exhaustive testing |
170 |
+ # -v: Increased verbosity |
171 |
+ emake -j1 VERBOSE="1" check |
172 |
+} |
173 |
+ |
174 |
+multilib_src_install() { |
175 |
+ default |
176 |
+ |
177 |
+ if multilib_is_native_abi && use doc; then |
178 |
+ docinto html |
179 |
+ dodoc -r doc/html/* |
180 |
+ fi |
181 |
+} |
182 |
+ |
183 |
+multilib_src_install_all() { |
184 |
+ einstalldocs |
185 |
+ docinto html |
186 |
+ dodoc ../readme.html |
187 |
+} |