From 5cc5c7fb11496e6e03f78fd423091738c349cbb5 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 17 Feb 2025 20:03:42 +0000 Subject: dev-libs/json-c: build tests conditionally 72->16 targets. Nice! Signed-off-by: Sam James --- dev-libs/json-c/json-c-9999.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev-libs/json-c/json-c-9999.ebuild') diff --git a/dev-libs/json-c/json-c-9999.ebuild b/dev-libs/json-c/json-c-9999.ebuild index 582ba35e41c2..95c54f504c3d 100644 --- a/dev-libs/json-c/json-c-9999.ebuild +++ b/dev-libs/json-c/json-c-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,8 @@ LICENSE="MIT" # .1 is a fudge factor for 0.18 fixing compat w/ 0.16, drop on next # SONAME change. SLOT="0/5.1" -IUSE="cpu_flags_x86_rdrand doc static-libs threads" +IUSE="cpu_flags_x86_rdrand doc static-libs test threads" +RESTRICT="!test? ( test )" BDEPEND="doc? ( >=app-text/doxygen-1.8.13 )" @@ -42,6 +43,7 @@ multilib_src_configure() { -DDISABLE_WERROR=ON -DENABLE_RDRAND=$(usex cpu_flags_x86_rdrand) -DENABLE_THREADING=$(usex threads) + -DBUILD_TESTING=$(usex test) ) cmake_src_configure -- cgit v1.2.3