diff options
author | Sam James <sam@gentoo.org> | 2023-05-01 15:57:43 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-01 15:57:43 +0100 |
commit | c7a86346e477c6c205fd840eee87a514a9d7212e (patch) | |
tree | 0c36654887491041f47424f57b42843af7098bdb /dev-libs/libconfig | |
parent | dev-python/pyGPG: add 0.2_p20220808 (diff) | |
download | gentoo-c7a86346e477c6c205fd840eee87a514a9d7212e.tar.gz gentoo-c7a86346e477c6c205fd840eee87a514a9d7212e.tar.bz2 gentoo-c7a86346e477c6c205fd840eee87a514a9d7212e.zip |
dev-libs/libconfig: conditionally build tests
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libconfig')
-rw-r--r-- | dev-libs/libconfig/libconfig-1.7.3.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-libs/libconfig/libconfig-1.7.3.ebuild b/dev-libs/libconfig/libconfig-1.7.3.ebuild index 8efd8925734c..12eef715344b 100644 --- a/dev-libs/libconfig/libconfig-1.7.3.ebuild +++ b/dev-libs/libconfig/libconfig-1.7.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,8 @@ SRC_URI="https://github.com/hyperrealm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.g LICENSE="LGPL-2.1" SLOT="0/11" KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc x86 ~x86-linux" -IUSE="+cxx static-libs" +IUSE="+cxx static-libs test" +RESTRICT="!test? ( test )" DEPEND=" sys-apps/texinfo @@ -33,10 +34,14 @@ src_prepare() { } multilib_src_configure() { - econf \ - $(use_enable cxx) \ - $(use_enable static-libs static) \ + local myeconfargs=( + $(use_enable cxx) + $(use_enable static-libs static) + $(use_enable test tests) --disable-examples + ) + + econf "${myeconfargs[@]}" } multilib_src_test() { |