commit:     c7a86346e477c6c205fd840eee87a514a9d7212e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May  1 14:57:43 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  1 14:57:43 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a86346

dev-libs/libconfig: conditionally build tests

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

 dev-libs/libconfig/libconfig-1.7.3.ebuild | 15 ++++++++++-----
 1 file 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() {

Reply via email to