1 |
commit: 32f3b334146d849acd231c85cf2f7eefebe3b3c9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 8 00:52:10 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 8 00:58:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f3b334 |
7 |
|
8 |
dev-libs/icu-layoutex: add 71.1 (unkeyworded) |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/icu-layoutex/Manifest | 2 + |
13 |
dev-libs/icu-layoutex/icu-layoutex-71.1.ebuild | 127 +++++++++++++++++++++++++ |
14 |
2 files changed, 129 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/icu-layoutex/Manifest b/dev-libs/icu-layoutex/Manifest |
17 |
index 28544b0b2812..de0c50c6ffa5 100644 |
18 |
--- a/dev-libs/icu-layoutex/Manifest |
19 |
+++ b/dev-libs/icu-layoutex/Manifest |
20 |
@@ -1 +1,3 @@ |
21 |
DIST icu4c-70_1-src.tgz 25449582 BLAKE2B e229376ee45322db99aa963465048ab5e694ce9f0ba335f071817198238de21fcd77dfe3e86ea1394790e2a3b6d96772d1b98cb7dccd6462a9dd05c0ab7bdef0 SHA512 0b26ae7207155cb65a8fdb25f7b2fa4431e74b12bccbed0884a17feaae3c96833d12451064dd152197fd6ea5fd3adfd95594284a463e66c82e0d860f645880c9 |
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-layoutex/icu-layoutex-71.1.ebuild b/dev-libs/icu-layoutex/icu-layoutex-71.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..15364d2face5 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/icu-layoutex/icu-layoutex-71.1.ebuild |
30 |
@@ -0,0 +1,127 @@ |
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 |
37 |
+ |
38 |
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/icu.asc |
39 |
+inherit autotools flag-o-matic multilib-minimal toolchain-funcs verify-sig |
40 |
+ |
41 |
+DESCRIPTION="External layout part of International Components for Unicode" |
42 |
+HOMEPAGE="https://icu-project.org/" |
43 |
+SRC_URI="https://github.com/unicode-org/icu/releases/download/release-${PV//./-}/icu4c-${PV//./_}-src.tgz" |
44 |
+SRC_URI+=" verify-sig? ( https://github.com/unicode-org/icu/releases/download/release-${PV//./-}/icu4c-${PV//./_}-src.tgz.asc )" |
45 |
+S="${WORKDIR}/${PN/-layoutex}/source" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0/${PV}" |
49 |
+#KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
50 |
+IUSE="debug static-libs test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ ~dev-libs/icu-${PV}[${MULTILIB_USEDEP}] |
55 |
+ dev-libs/icu-le-hb[${MULTILIB_USEDEP}] |
56 |
+" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+BDEPEND=" |
59 |
+ virtual/pkgconfig |
60 |
+ verify-sig? ( sec-keys/openpgp-keys-icu ) |
61 |
+" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}/${PN}-65.1-remove-bashisms.patch" ) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ # Disable renaming as it assumes stable ABI and that consumers |
69 |
+ # won't use unofficial APIs. We need this despite the configure argument. |
70 |
+ sed -i \ |
71 |
+ -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \ |
72 |
+ common/unicode/uconfig.h || die |
73 |
+ |
74 |
+ # Fix linking of icudata |
75 |
+ sed -i \ |
76 |
+ -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \ |
77 |
+ config/mh-linux || die |
78 |
+ |
79 |
+ eautoreconf |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ # Use C++14 |
84 |
+ append-cxxflags -std=c++14 |
85 |
+ |
86 |
+ if tc-is-cross-compiler; then |
87 |
+ mkdir "${WORKDIR}"/host || die |
88 |
+ pushd "${WORKDIR}"/host >/dev/null || die |
89 |
+ |
90 |
+ CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \ |
91 |
+ CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \ |
92 |
+ RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \ |
93 |
+ "${S}"/configure --disable-renaming --disable-debug \ |
94 |
+ --disable-samples --enable-static || die |
95 |
+ emake |
96 |
+ |
97 |
+ popd >/dev/null || die |
98 |
+ fi |
99 |
+ |
100 |
+ multilib-minimal_src_configure |
101 |
+} |
102 |
+ |
103 |
+multilib_src_configure() { |
104 |
+ local myeconfargs=( |
105 |
+ --disable-renaming |
106 |
+ # We want a minimal build as this is just for layoutex |
107 |
+ # so we disable as much as possible |
108 |
+ --disable-samples |
109 |
+ --disable-extras |
110 |
+ --disable-icuio |
111 |
+ |
112 |
+ # This is icu-layoutex, so.. |
113 |
+ --enable-layoutex |
114 |
+ |
115 |
+ $(use_enable debug) |
116 |
+ $(use_enable static-libs static) |
117 |
+ |
118 |
+ # Need tools for tests, otherwise get this in configure: |
119 |
+ # "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests. |
120 |
+ # ## Expect build failures in the 'data', 'test', and other directories." |
121 |
+ # ... although layoutex has no tests right now anyway, but let's keep this |
122 |
+ # for the future. |
123 |
+ $(use_enable test tools) |
124 |
+ $(use_enable test tests) |
125 |
+ ) |
126 |
+ |
127 |
+ tc-is-cross-compiler && myeconfargs+=( |
128 |
+ --with-cross-build="${WORKDIR}"/host |
129 |
+ ) |
130 |
+ |
131 |
+ # icu tries to use clang by default |
132 |
+ tc-export CC CXX |
133 |
+ |
134 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
135 |
+} |
136 |
+ |
137 |
+multilib_src_test() { |
138 |
+ # INTLTEST_OPTS: intltest options |
139 |
+ # -e: Exhaustive testing |
140 |
+ # -l: Reporting of memory leaks |
141 |
+ # -v: Increased verbosity |
142 |
+ # IOTEST_OPTS: iotest options |
143 |
+ # -e: Exhaustive testing |
144 |
+ # -v: Increased verbosity |
145 |
+ # CINTLTST_OPTS: cintltst options |
146 |
+ # -e: Exhaustive testing |
147 |
+ # -v: Increased verbosity |
148 |
+ pushd layoutex &>/dev/null || die |
149 |
+ emake -j1 VERBOSE="1" check |
150 |
+ popd &>/dev/null || die |
151 |
+} |
152 |
+ |
153 |
+multilib_src_install() { |
154 |
+ pushd layoutex &>/dev/null || die |
155 |
+ default |
156 |
+ popd &>/dev/null || die |
157 |
+} |