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