Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/npth/
Date: Tue, 17 May 2022 05:34:56
Message-Id: 1652765641.2c35bf71ae85fb0486322d1bfb05c66b40f94559.sam@gentoo
1 commit: 2c35bf71ae85fb0486322d1bfb05c66b40f94559
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 05:13:07 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 05:34:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c35bf71
7
8 dev-libs/npth: [QA] conditionally build tests
9
10 It's particularly important for @system and deps-of-@system to
11 not build things unnecessarily given you can't avoid them and
12 it makes builds on slower machines rather painful.
13
14 But also, it's a waste of resources/time anyway. Do the same
15 dance here as with the other gpg packages.
16
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 dev-libs/npth/npth-1.6-r1.ebuild | 6 +++++-
20 1 file changed, 5 insertions(+), 1 deletion(-)
21
22 diff --git a/dev-libs/npth/npth-1.6-r1.ebuild b/dev-libs/npth/npth-1.6-r1.ebuild
23 index 81b168a55477..bb3c8b84c723 100644
24 --- a/dev-libs/npth/npth-1.6-r1.ebuild
25 +++ b/dev-libs/npth/npth-1.6-r1.ebuild
26 @@ -12,6 +12,8 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
27 LICENSE="LGPL-2.1+"
28 SLOT="0"
29 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"
30 +IUSE="test"
31 +RESTRICT="!test? ( test )"
32
33 src_prepare() {
34 default
35 @@ -19,7 +21,9 @@ src_prepare() {
36 }
37
38 src_configure() {
39 - econf --disable-static
40 + econf \
41 + --disable-static \
42 + $(use_enable test tests)
43 }
44
45 src_install() {