commit:     2c35bf71ae85fb0486322d1bfb05c66b40f94559
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 17 05:13:07 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 17 05:34:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c35bf71

dev-libs/npth: [QA] conditionally build tests

It's particularly important for @system and deps-of-@system to
not build things unnecessarily given you can't avoid them and
it makes builds on slower machines rather painful.

But also, it's a waste of resources/time anyway. Do the same
dance here as with the other gpg packages.

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

 dev-libs/npth/npth-1.6-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-libs/npth/npth-1.6-r1.ebuild b/dev-libs/npth/npth-1.6-r1.ebuild
index 81b168a55477..bb3c8b84c723 100644
--- a/dev-libs/npth/npth-1.6-r1.ebuild
+++ b/dev-libs/npth/npth-1.6-r1.ebuild
@@ -12,6 +12,8 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
 LICENSE="LGPL-2.1+"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 src_prepare() {
        default
@@ -19,7 +21,9 @@ src_prepare() {
 }
 
 src_configure() {
-       econf --disable-static
+       econf \
+               --disable-static \
+               $(use_enable test tests)
 }
 
 src_install() {

Reply via email to