diff options
| author | Sam James <sam@gentoo.org> | 2025-02-17 20:03:42 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-02-17 20:18:23 +0000 |
| commit | 5cc5c7fb11496e6e03f78fd423091738c349cbb5 (patch) | |
| tree | acb9e10b1e4e1599e150ebe63b2e54186d0c281a /dev-libs/json-c | |
| parent | 855c4de155cdbceeb0275c061970ec8475aed5b4 (diff) | |
| download | gentoo-5cc5c7fb11496e6e03f78fd423091738c349cbb5.tar.gz gentoo-5cc5c7fb11496e6e03f78fd423091738c349cbb5.tar.bz2 gentoo-5cc5c7fb11496e6e03f78fd423091738c349cbb5.zip | |
dev-libs/json-c: build tests conditionally
72->16 targets. Nice!
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/json-c')
| -rw-r--r-- | dev-libs/json-c/json-c-0.18.ebuild | 6 | ||||
| -rw-r--r-- | dev-libs/json-c/json-c-9999.ebuild | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/dev-libs/json-c/json-c-0.18.ebuild b/dev-libs/json-c/json-c-0.18.ebuild index 5f6b3ef8717f..997463b97256 100644 --- a/dev-libs/json-c/json-c-0.18.ebuild +++ b/dev-libs/json-c/json-c-0.18.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 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 |
