1 |
commit: baae6c26ccb4f2684da70cae239a0c26af40fbba |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 16 17:58:56 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 16 18:21:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baae6c26 |
7 |
|
8 |
dev-libs/icu: Bump to version 62.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
dev-libs/icu/Manifest | 1 + |
13 |
dev-libs/icu/icu-62.1.ebuild | 160 +++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 161 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest |
17 |
index 56b67c375a7..6a3d7eb8d01 100644 |
18 |
--- a/dev-libs/icu/Manifest |
19 |
+++ b/dev-libs/icu/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST icu4c-58_2-src.tgz 23369902 BLAKE2B cdd2e02c3aba050f5b7f8b38c5a3731e3e5f1cc1403ef86a50908b95560ea3cf8a2d47119fa60cf34f22a8b65eaa2392fd5bcbd3bc48b3da541fe3d9bd7392c0 SHA512 5c21af748f48b392e6c0412bd0aee92162ea931820dcbfab4ec6e0299868504b303d88f7586cc95de55c777ac0dca3a29d6c8ca0892c646ebc864c8a5b5a162a |
22 |
DIST icu4c-60_2-src.tgz 23317835 BLAKE2B dabd24a9317b44f6852c61c83e808c920d7d29f57d53a7450c68cdad5f84941f771db07fab1f5a16451d59c7aa2750e5a4d5b5fa9a904c43d131529b648263ea SHA512 8e718e66c13e7f25714404c46b91ed6305efff1df70c328be2ec743023a7719016dae72a5fa0a05d6f5599983590a2044ff72d3453a048d987ab546d0416d694 |
23 |
DIST icu4c-61_1-src.tgz 23400587 BLAKE2B 6c6c78b4169ad3e900ff8a8a8fc7286f3dfb692dc04cc88103804799d1ce1fc7d1a3a7b1fc1b379e92196dd5976cfea3fe014a09dc65d387f34f141eae5b9465 SHA512 4c37691246db802e4bae0c8c5f6ac1dac64c5753b607e539c5c1c36e361fcd9dd81bd1d3b5416c2960153b83700ccdb356412847d0506ab7782ae626ac0ffb94 |
24 |
+DIST icu4c-62_1-src.tgz 23468750 BLAKE2B c0b665af53a494fc064425e6b3e66ae11d31509f4edc42268b12b85ece5ea635ebc76a8f3ab65a49b74a849a67ffd526e15e6d1b5b07e13c7f94cc94bef1d31c SHA512 8295f2754fb6907e2cc8f515dccca05530963b544e89a2b8e323cd0ddfdbbe0c9eba8b367c1dbc04d7bb906b66b1003fd545ca05298939747c832c9d4431cf2a |
25 |
|
26 |
diff --git a/dev-libs/icu/icu-62.1.ebuild b/dev-libs/icu/icu-62.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6d1550b32d6 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/icu/icu-62.1.ebuild |
31 |
@@ -0,0 +1,160 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit 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 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
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 |
+ "${FILESDIR}/${PN}-58.2-darwin.patch" |
66 |
+) |
67 |
+ |
68 |
+pkg_pretend() { |
69 |
+ if tc-is-gcc ; then |
70 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
71 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
72 |
+ die "You need at least sys-devel/gcc-4.9" |
73 |
+ fi |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ # apply patches |
79 |
+ default |
80 |
+ |
81 |
+ local variable |
82 |
+ |
83 |
+ # Disable renaming as it is stupid thing to do |
84 |
+ sed -i \ |
85 |
+ -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
86 |
+ common/unicode/uconfig.h || die |
87 |
+ |
88 |
+ # Fix linking of icudata |
89 |
+ sed -i \ |
90 |
+ -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
91 |
+ config/mh-linux || die |
92 |
+ |
93 |
+ # Append doxygen configuration to configure |
94 |
+ sed -i \ |
95 |
+ -e 's:icudefs.mk:icudefs.mk Doxyfile:' \ |
96 |
+ configure.ac || die |
97 |
+ |
98 |
+ eautoreconf |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ # Use C++14 |
103 |
+ append-cxxflags -std=c++14 |
104 |
+ |
105 |
+ if tc-is-gcc ; then |
106 |
+ if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ |
107 |
+ || $(gcc-major-version) -lt 4 ]] ; then |
108 |
+ die "You need at least sys-devel/gcc-4.9" |
109 |
+ fi |
110 |
+ fi |
111 |
+ |
112 |
+ if tc-is-cross-compiler; then |
113 |
+ mkdir "${WORKDIR}"/host || die |
114 |
+ pushd "${WORKDIR}"/host >/dev/null || die |
115 |
+ |
116 |
+ CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \ |
117 |
+ CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \ |
118 |
+ RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \ |
119 |
+ "${S}"/configure --disable-renaming --disable-debug \ |
120 |
+ --disable-samples --enable-static || die |
121 |
+ emake |
122 |
+ |
123 |
+ popd >/dev/null || die |
124 |
+ fi |
125 |
+ |
126 |
+ multilib-minimal_src_configure |
127 |
+} |
128 |
+ |
129 |
+multilib_src_configure() { |
130 |
+ local myeconfargs=( |
131 |
+ --disable-renaming |
132 |
+ --disable-samples |
133 |
+ --disable-layoutex |
134 |
+ $(use_enable debug) |
135 |
+ $(use_enable static-libs static) |
136 |
+ $(multilib_native_use_enable examples samples) |
137 |
+ ) |
138 |
+ |
139 |
+ tc-is-cross-compiler && myeconfargs+=( |
140 |
+ --with-cross-build="${WORKDIR}"/host |
141 |
+ ) |
142 |
+ |
143 |
+ # icu tries to use clang by default |
144 |
+ tc-export CC CXX |
145 |
+ |
146 |
+ # make sure we configure with the same shell as we run icu-config |
147 |
+ # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined |
148 |
+ export CONFIG_SHELL="${EPREFIX}/bin/sh" |
149 |
+ # probably have no /bin/sh in prefix-chain |
150 |
+ [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}" |
151 |
+ |
152 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
153 |
+} |
154 |
+ |
155 |
+multilib_src_compile() { |
156 |
+ default |
157 |
+ |
158 |
+ if multilib_is_native_abi && 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_is_native_abi && use doc; then |
182 |
+ docinto html |
183 |
+ dodoc -r doc/html/* |
184 |
+ fi |
185 |
+} |
186 |
+ |
187 |
+multilib_src_install_all() { |
188 |
+ einstalldocs |
189 |
+ docinto html |
190 |
+ dodoc ../readme.html |
191 |
+} |