1 |
commit: e44cc44677eaa50b08eaba179640face791e5d4e |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 8 00:19:41 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 8 00:20:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e44cc446 |
7 |
|
8 |
dev-libs/icu: add 71.1 (unkeyworded) |
9 |
|
10 |
Unkeyworded for testing. |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-libs/icu/Manifest | 2 + |
15 |
dev-libs/icu/icu-71.1.ebuild | 145 +++++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 147 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest |
19 |
index 28544b0b2812..de0c50c6ffa5 100644 |
20 |
--- a/dev-libs/icu/Manifest |
21 |
+++ b/dev-libs/icu/Manifest |
22 |
@@ -1 +1,3 @@ |
23 |
DIST icu4c-70_1-src.tgz 25449582 BLAKE2B e229376ee45322db99aa963465048ab5e694ce9f0ba335f071817198238de21fcd77dfe3e86ea1394790e2a3b6d96772d1b98cb7dccd6462a9dd05c0ab7bdef0 SHA512 0b26ae7207155cb65a8fdb25f7b2fa4431e74b12bccbed0884a17feaae3c96833d12451064dd152197fd6ea5fd3adfd95594284a463e66c82e0d860f645880c9 |
24 |
+DIST icu4c-71_1-src.tgz 25701340 BLAKE2B 182972d87fe5b69b5e08c39ab9bb0ac7ffc7b36530168b3548faa051cce2b73b9f1c1d23198a4b1c655442155e369da76929e4f54fe4e32265160363428d4916 SHA512 1fd2a20aef48369d1f06e2bb74584877b8ad0eb529320b976264ec2db87420bae242715795f372dbc513ea80047bc49077a064e78205cd5e8b33d746fd2a2912 |
25 |
+DIST icu4c-71_1-src.tgz.asc 659 BLAKE2B ac281e0a9b94bf6bfddee2dd5dc7553836aa50ae84f55478a662d0cd1e116a944de92dd5fd701164d62fb5b8e8effcdb3456a151a6b198d603e2324ccd76e334 SHA512 3371e14f3959defa7fb8d3eb0308084646ed553169b7a845bff89f9a8c1054ef5bee45c26c1834a84cab38fa87710f1585e6c5787be1fe2df356eb5c2ba20aae |
26 |
|
27 |
diff --git a/dev-libs/icu/icu-71.1.ebuild b/dev-libs/icu/icu-71.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..f1c7658ec041 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/icu/icu-71.1.ebuild |
32 |
@@ -0,0 +1,145 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/icu.asc |
40 |
+inherit autotools flag-o-matic multilib-minimal python-any-r1 toolchain-funcs verify-sig |
41 |
+ |
42 |
+DESCRIPTION="International Components for Unicode" |
43 |
+HOMEPAGE="https://icu.unicode.org/" |
44 |
+SRC_URI="https://github.com/unicode-org/icu/releases/download/release-${PV//./-}/icu4c-${PV//./_}-src.tgz" |
45 |
+SRC_URI+=" verify-sig? ( https://github.com/unicode-org/icu/releases/download/release-${PV//./-}/icu4c-${PV//./_}-src.tgz.asc )" |
46 |
+S="${WORKDIR}/${PN}/source" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0/${PV}" |
50 |
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
51 |
+IUSE="debug doc examples static-libs" |
52 |
+ |
53 |
+BDEPEND="${PYTHON_DEPS} |
54 |
+ sys-devel/autoconf-archive |
55 |
+ virtual/pkgconfig |
56 |
+ doc? ( app-doc/doxygen[dot] ) |
57 |
+ verify-sig? ( sec-keys/openpgp-keys-icu ) |
58 |
+" |
59 |
+ |
60 |
+MULTILIB_CHOST_TOOLS=( |
61 |
+ /usr/bin/icu-config |
62 |
+) |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${PN}-65.1-remove-bashisms.patch" |
66 |
+ "${FILESDIR}/${PN}-64.2-darwin.patch" |
67 |
+ "${FILESDIR}/${PN}-68.1-nonunicode.patch" |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ |
73 |
+ # Disable renaming as it is stupid thing to do |
74 |
+ sed -i \ |
75 |
+ -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
76 |
+ common/unicode/uconfig.h || die |
77 |
+ |
78 |
+ # Fix linking of icudata |
79 |
+ sed -i \ |
80 |
+ -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
81 |
+ config/mh-linux || die |
82 |
+ |
83 |
+ # Append doxygen configuration to configure |
84 |
+ sed -i \ |
85 |
+ -e 's:icudefs.mk:icudefs.mk Doxyfile:' \ |
86 |
+ configure.ac || die |
87 |
+ |
88 |
+ eautoreconf |
89 |
+} |
90 |
+ |
91 |
+src_configure() { |
92 |
+ append-cxxflags -std=c++14 |
93 |
+ |
94 |
+ if tc-is-cross-compiler; then |
95 |
+ mkdir "${WORKDIR}"/host || die |
96 |
+ pushd "${WORKDIR}"/host >/dev/null || die |
97 |
+ |
98 |
+ CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \ |
99 |
+ CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \ |
100 |
+ RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \ |
101 |
+ "${S}"/configure --disable-renaming --disable-debug \ |
102 |
+ --disable-samples --enable-static || die |
103 |
+ emake |
104 |
+ |
105 |
+ popd >/dev/null || die |
106 |
+ fi |
107 |
+ |
108 |
+ multilib-minimal_src_configure |
109 |
+} |
110 |
+ |
111 |
+multilib_src_configure() { |
112 |
+ local myeconfargs=( |
113 |
+ --disable-renaming |
114 |
+ --disable-samples |
115 |
+ --disable-layoutex |
116 |
+ $(use_enable debug) |
117 |
+ $(use_enable static-libs static) |
118 |
+ $(multilib_native_use_enable examples samples) |
119 |
+ ) |
120 |
+ |
121 |
+ tc-is-cross-compiler && myeconfargs+=( |
122 |
+ --with-cross-build="${WORKDIR}"/host |
123 |
+ ) |
124 |
+ |
125 |
+ # work around cross-endian testing failures with LTO #757681 |
126 |
+ if tc-is-cross-compiler && is-flagq '-flto*' ; then |
127 |
+ myeconfargs+=( --disable-strict ) |
128 |
+ fi |
129 |
+ |
130 |
+ # icu tries to use clang by default |
131 |
+ tc-export CC CXX |
132 |
+ |
133 |
+ # make sure we configure with the same shell as we run icu-config |
134 |
+ # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined |
135 |
+ export CONFIG_SHELL="${EPREFIX}/bin/sh" |
136 |
+ # probably have no /bin/sh in prefix-chain |
137 |
+ [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}" |
138 |
+ |
139 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
140 |
+} |
141 |
+ |
142 |
+multilib_src_compile() { |
143 |
+ default |
144 |
+ |
145 |
+ if multilib_is_native_abi && use doc; then |
146 |
+ doxygen -u Doxyfile || die |
147 |
+ doxygen Doxyfile || die |
148 |
+ fi |
149 |
+} |
150 |
+ |
151 |
+multilib_src_test() { |
152 |
+ # INTLTEST_OPTS: intltest options |
153 |
+ # -e: Exhaustive testing |
154 |
+ # -l: Reporting of memory leaks |
155 |
+ # -v: Increased verbosity |
156 |
+ # IOTEST_OPTS: iotest options |
157 |
+ # -e: Exhaustive testing |
158 |
+ # -v: Increased verbosity |
159 |
+ # CINTLTST_OPTS: cintltst options |
160 |
+ # -e: Exhaustive testing |
161 |
+ # -v: Increased verbosity |
162 |
+ emake -j1 VERBOSE="1" check |
163 |
+} |
164 |
+ |
165 |
+multilib_src_install() { |
166 |
+ default |
167 |
+ |
168 |
+ if multilib_is_native_abi && use doc; then |
169 |
+ docinto html |
170 |
+ dodoc -r doc/html/* |
171 |
+ fi |
172 |
+} |
173 |
+ |
174 |
+multilib_src_install_all() { |
175 |
+ local HTML_DOCS=( ../readme.html ) |
176 |
+ einstalldocs |
177 |
+} |