From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1383397-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 37C5115808B
	for <garchives@archives.gentoo.org>; Fri,  8 Apr 2022 00:58:32 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4EC8CE0958;
	Fri,  8 Apr 2022 00:58:24 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 26721E0958
	for <gentoo-commits@lists.gentoo.org>; Fri,  8 Apr 2022 00:58:24 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id AE2DE341603
	for <gentoo-commits@lists.gentoo.org>; Fri,  8 Apr 2022 00:58:22 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1BE4E388
	for <gentoo-commits@lists.gentoo.org>; Fri,  8 Apr 2022 00:58:21 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1649379494.7002cc3cf9d666d25c7d78d8592930780e1649a2.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/icu/icu-71.1.ebuild
X-VCS-Directories: dev-libs/icu/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 7002cc3cf9d666d25c7d78d8592930780e1649a2
X-VCS-Branch: master
Date: Fri,  8 Apr 2022 00:58:21 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 1a5697a4-e072-4be8-8a5c-57d7bbed9827
X-Archives-Hash: cd651a4f28f99bbea96fa047cd227b49

commit:     7002cc3cf9d666d25c7d78d8592930780e1649a2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  8 00:57:42 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr  8 00:58:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7002cc3c

dev-libs/icu: conditionally build tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/icu/icu-71.1.ebuild | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/dev-libs/icu/icu-71.1.ebuild b/dev-libs/icu/icu-71.1.ebuild
index f1c7658ec041..04644ace5a64 100644
--- a/dev-libs/icu/icu-71.1.ebuild
+++ b/dev-libs/icu/icu-71.1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+# Please bump with dev-libs/icu-layoutex
+
 PYTHON_COMPAT=( python3_{8..10} )
 VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/icu.asc
 inherit autotools flag-o-matic multilib-minimal python-any-r1 toolchain-funcs verify-sig
@@ -16,7 +18,8 @@ S="${WORKDIR}/${PN}/source"
 LICENSE="BSD"
 SLOT="0/${PV}"
 #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"
-IUSE="debug doc examples static-libs"
+IUSE="debug doc examples static-libs test"
+RESTRICT="!test? ( test )"
 
 BDEPEND="${PYTHON_DEPS}
 	sys-devel/autoconf-archive
@@ -38,7 +41,8 @@ PATCHES=(
 src_prepare() {
 	default
 
-	# Disable renaming as it is stupid thing to do
+	# Disable renaming as it assumes stable ABI and that consumers
+	# won't use unofficial APIs. We need this despite the configure argument.
 	sed -i \
 		-e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
 		common/unicode/uconfig.h || die
@@ -83,6 +87,7 @@ multilib_src_configure() {
 		--disable-layoutex
 		$(use_enable debug)
 		$(use_enable static-libs static)
+		$(use_enable test tests)
 		$(multilib_native_use_enable examples samples)
 	)
 
@@ -90,18 +95,18 @@ multilib_src_configure() {
 		--with-cross-build="${WORKDIR}"/host
 	)
 
-	# work around cross-endian testing failures with LTO #757681
+	# Work around cross-endian testing failures with LTO #757681
 	if tc-is-cross-compiler && is-flagq '-flto*' ; then
 		myeconfargs+=( --disable-strict )
 	fi
 
-	# icu tries to use clang by default
+	# ICU tries to use clang by default
 	tc-export CC CXX
 
-	# make sure we configure with the same shell as we run icu-config
+	# Make sure we configure with the same shell as we run icu-config
 	# with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined
 	export CONFIG_SHELL="${EPREFIX}/bin/sh"
-	# probably have no /bin/sh in prefix-chain
+	# Probably have no /bin/sh in prefix-chain
 	[[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}"
 
 	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"