Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/
Date: Fri, 08 Apr 2022 00:58:32
Message-Id: 1649379494.7002cc3cf9d666d25c7d78d8592930780e1649a2.sam@gentoo
1 commit: 7002cc3cf9d666d25c7d78d8592930780e1649a2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 00:57:42 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 00:58:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7002cc3c
7
8 dev-libs/icu: conditionally build tests
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-libs/icu/icu-71.1.ebuild | 17 +++++++++++------
13 1 file changed, 11 insertions(+), 6 deletions(-)
14
15 diff --git a/dev-libs/icu/icu-71.1.ebuild b/dev-libs/icu/icu-71.1.ebuild
16 index f1c7658ec041..04644ace5a64 100644
17 --- a/dev-libs/icu/icu-71.1.ebuild
18 +++ b/dev-libs/icu/icu-71.1.ebuild
19 @@ -3,6 +3,8 @@
20
21 EAPI=8
22
23 +# Please bump with dev-libs/icu-layoutex
24 +
25 PYTHON_COMPAT=( python3_{8..10} )
26 VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/icu.asc
27 inherit autotools flag-o-matic multilib-minimal python-any-r1 toolchain-funcs verify-sig
28 @@ -16,7 +18,8 @@ S="${WORKDIR}/${PN}/source"
29 LICENSE="BSD"
30 SLOT="0/${PV}"
31 #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"
32 -IUSE="debug doc examples static-libs"
33 +IUSE="debug doc examples static-libs test"
34 +RESTRICT="!test? ( test )"
35
36 BDEPEND="${PYTHON_DEPS}
37 sys-devel/autoconf-archive
38 @@ -38,7 +41,8 @@ PATCHES=(
39 src_prepare() {
40 default
41
42 - # Disable renaming as it is stupid thing to do
43 + # Disable renaming as it assumes stable ABI and that consumers
44 + # won't use unofficial APIs. We need this despite the configure argument.
45 sed -i \
46 -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
47 common/unicode/uconfig.h || die
48 @@ -83,6 +87,7 @@ multilib_src_configure() {
49 --disable-layoutex
50 $(use_enable debug)
51 $(use_enable static-libs static)
52 + $(use_enable test tests)
53 $(multilib_native_use_enable examples samples)
54 )
55
56 @@ -90,18 +95,18 @@ multilib_src_configure() {
57 --with-cross-build="${WORKDIR}"/host
58 )
59
60 - # work around cross-endian testing failures with LTO #757681
61 + # Work around cross-endian testing failures with LTO #757681
62 if tc-is-cross-compiler && is-flagq '-flto*' ; then
63 myeconfargs+=( --disable-strict )
64 fi
65
66 - # icu tries to use clang by default
67 + # ICU tries to use clang by default
68 tc-export CC CXX
69
70 - # make sure we configure with the same shell as we run icu-config
71 + # Make sure we configure with the same shell as we run icu-config
72 # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined
73 export CONFIG_SHELL="${EPREFIX}/bin/sh"
74 - # probably have no /bin/sh in prefix-chain
75 + # Probably have no /bin/sh in prefix-chain
76 [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}"
77
78 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"