1 |
commit: 890d02e21239c7b6359ce60c42e5179b096b4c50 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 03:11:51 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 03:18:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=890d02e2 |
7 |
|
8 |
dev-libs/icu: add 72_rc (unkeyworded) |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/icu/Manifest | 1 + |
13 |
dev-libs/icu/icu-72_rc.ebuild | 165 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 166 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest |
17 |
index a466a7e57d4d..0ea38314d953 100644 |
18 |
--- a/dev-libs/icu/Manifest |
19 |
+++ b/dev-libs/icu/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
+DIST icu-72_rc.tar.gz 67042961 BLAKE2B 398eac0c7a8ba9bddf3b6773846e2858f8c37ee8ef93c230de9587c066aaf93fef5b2f56b1e1411b3521158a5fe404828d248ed0f37e4eacc2cccecc7a2dd64d SHA512 23e02b8be0544e6da8fe6455eb20d8bb7a1f555cac26fe4ebc3cf714ed10b86e4277e997d3407241bd0b5e847d1a0325d5980241f8be5e9d139a018ec40fc3ca |
22 |
DIST icu4c-71_1-src.tgz 25701340 BLAKE2B 182972d87fe5b69b5e08c39ab9bb0ac7ffc7b36530168b3548faa051cce2b73b9f1c1d23198a4b1c655442155e369da76929e4f54fe4e32265160363428d4916 SHA512 1fd2a20aef48369d1f06e2bb74584877b8ad0eb529320b976264ec2db87420bae242715795f372dbc513ea80047bc49077a064e78205cd5e8b33d746fd2a2912 |
23 |
DIST icu4c-71_1-src.tgz.asc 659 BLAKE2B ac281e0a9b94bf6bfddee2dd5dc7553836aa50ae84f55478a662d0cd1e116a944de92dd5fd701164d62fb5b8e8effcdb3456a151a6b198d603e2324ccd76e334 SHA512 3371e14f3959defa7fb8d3eb0308084646ed553169b7a845bff89f9a8c1054ef5bee45c26c1834a84cab38fa87710f1585e6c5787be1fe2df356eb5c2ba20aae |
24 |
|
25 |
diff --git a/dev-libs/icu/icu-72_rc.ebuild b/dev-libs/icu/icu-72_rc.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..7c2a950671eb |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/icu/icu-72_rc.ebuild |
30 |
@@ -0,0 +1,165 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+# Please bump with dev-libs/icu-layoutex |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..11} ) |
39 |
+inherit autotools flag-o-matic multilib-minimal python-any-r1 toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="International Components for Unicode" |
42 |
+HOMEPAGE="https://icu.unicode.org/" |
43 |
+if [[ ${PV} == *_rc* ]] ; then |
44 |
+ SRC_URI="https://github.com/unicode-org/icu/archive/refs/tags/release-$(ver_rs 1- '-').tar.gz -> ${P}.tar.gz" |
45 |
+ S="${WORKDIR}"/${PN}-release-$(ver_rs 1- '-')/icu4c/source |
46 |
+else |
47 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/icu.asc |
48 |
+ inherit verify-sig |
49 |
+ |
50 |
+ SRC_URI="https://github.com/unicode-org/icu/releases/download/release-${PV//./-}/icu4c-${PV//./_}-src.tgz" |
51 |
+ SRC_URI+=" verify-sig? ( https://github.com/unicode-org/icu/releases/download/release-${PV//./-}/icu4c-${PV//./_}-src.tgz.asc )" |
52 |
+ S="${WORKDIR}"/${PN}/source |
53 |
+ |
54 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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" |
55 |
+ |
56 |
+ BDEPEND="verify-sig? ( sec-keys/openpgp-keys-icu )" |
57 |
+fi |
58 |
+ |
59 |
+LICENSE="BSD" |
60 |
+SLOT="0/${PV}" |
61 |
+IUSE="debug doc examples static-libs test" |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+BDEPEND+=" |
65 |
+ ${PYTHON_DEPS} |
66 |
+ sys-devel/autoconf-archive |
67 |
+ virtual/pkgconfig |
68 |
+ doc? ( app-doc/doxygen[dot] ) |
69 |
+" |
70 |
+ |
71 |
+MULTILIB_CHOST_TOOLS=( |
72 |
+ /usr/bin/icu-config |
73 |
+) |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${PN}-65.1-remove-bashisms.patch" |
77 |
+ "${FILESDIR}/${PN}-64.2-darwin.patch" |
78 |
+ "${FILESDIR}/${PN}-68.1-nonunicode.patch" |
79 |
+) |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ # Disable renaming as it assumes stable ABI and that consumers |
85 |
+ # won't use unofficial APIs. We need this despite the configure argument. |
86 |
+ sed -i \ |
87 |
+ -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
88 |
+ common/unicode/uconfig.h || die |
89 |
+ |
90 |
+ # Fix linking of icudata |
91 |
+ sed -i \ |
92 |
+ -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
93 |
+ config/mh-linux || die |
94 |
+ |
95 |
+ # Append doxygen configuration to configure |
96 |
+ sed -i \ |
97 |
+ -e 's:icudefs.mk:icudefs.mk Doxyfile:' \ |
98 |
+ configure.ac || die |
99 |
+ |
100 |
+ eautoreconf |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ MAKEOPTS+=" VERBOSE=1" |
105 |
+ |
106 |
+ # ICU tries to append -std=c++11 without this, so as of 71.1, |
107 |
+ # despite GCC 9+ using c++14 (or gnu++14) and GCC 11+ using gnu++17, |
108 |
+ # we still need this. |
109 |
+ append-cxxflags -std=c++14 |
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 |
+ $(use_enable test tests) |
136 |
+ $(multilib_native_use_enable examples samples) |
137 |
+ ) |
138 |
+ |
139 |
+ tc-is-cross-compiler && myeconfargs+=( |
140 |
+ --with-cross-build="${WORKDIR}"/host |
141 |
+ ) |
142 |
+ |
143 |
+ # Work around cross-endian testing failures with LTO #757681 |
144 |
+ if tc-is-cross-compiler && is-flagq '-flto*' ; then |
145 |
+ myeconfargs+=( --disable-strict ) |
146 |
+ fi |
147 |
+ |
148 |
+ # ICU tries to use clang by default |
149 |
+ tc-export CC CXX |
150 |
+ |
151 |
+ # Make sure we configure with the same shell as we run icu-config |
152 |
+ # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined |
153 |
+ export CONFIG_SHELL="${EPREFIX}/bin/sh" |
154 |
+ # Probably have no /bin/sh in prefix-chain |
155 |
+ [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}" |
156 |
+ |
157 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
158 |
+} |
159 |
+ |
160 |
+multilib_src_compile() { |
161 |
+ default |
162 |
+ |
163 |
+ if multilib_is_native_abi && use doc; then |
164 |
+ doxygen -u Doxyfile || die |
165 |
+ doxygen Doxyfile || die |
166 |
+ fi |
167 |
+} |
168 |
+ |
169 |
+multilib_src_test() { |
170 |
+ # INTLTEST_OPTS: intltest options |
171 |
+ # -e: Exhaustive testing |
172 |
+ # -l: Reporting of memory leaks |
173 |
+ # -v: Increased verbosity |
174 |
+ # IOTEST_OPTS: iotest options |
175 |
+ # -e: Exhaustive testing |
176 |
+ # -v: Increased verbosity |
177 |
+ # CINTLTST_OPTS: cintltst options |
178 |
+ # -e: Exhaustive testing |
179 |
+ # -v: Increased verbosity |
180 |
+ emake -j1 check |
181 |
+} |
182 |
+ |
183 |
+multilib_src_install() { |
184 |
+ default |
185 |
+ |
186 |
+ if multilib_is_native_abi && use doc; then |
187 |
+ docinto html |
188 |
+ dodoc -r doc/html/* |
189 |
+ fi |
190 |
+} |
191 |
+ |
192 |
+multilib_src_install_all() { |
193 |
+ local HTML_DOCS=( ../readme.html ) |
194 |
+ einstalldocs |
195 |
+} |