1 |
commit: b81c5bcf474592fe8ac0cae9979166ce84aa2d76 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 05:09:12 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 05:34:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b81c5bcf |
7 |
|
8 |
dev-libs/libgpg-error: [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/libgpg-error/libgpg-error-1.45.ebuild | 4 +++- |
20 |
1 file changed, 3 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/dev-libs/libgpg-error/libgpg-error-1.45.ebuild b/dev-libs/libgpg-error/libgpg-error-1.45.ebuild |
23 |
index f79b1022d939..70d0c2d8b3e4 100644 |
24 |
--- a/dev-libs/libgpg-error/libgpg-error-1.45.ebuild |
25 |
+++ b/dev-libs/libgpg-error/libgpg-error-1.45.ebuild |
26 |
@@ -12,7 +12,8 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" |
27 |
LICENSE="GPL-2 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="common-lisp nls static-libs" |
31 |
+IUSE="common-lisp nls static-libs test" |
32 |
+RESTRICT="!test? ( test )" |
33 |
|
34 |
RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )" |
35 |
DEPEND="${RDEPEND}" |
36 |
@@ -52,6 +53,7 @@ multilib_src_configure() { |
37 |
$(use_enable nls) |
38 |
# required for sys-power/suspend[crypt], bug 751568 |
39 |
$(use_enable static-libs static) |
40 |
+ $(use_enable test tests) |
41 |
--enable-threads |
42 |
CC_FOR_BUILD="$(tc-getBUILD_CC)" |
43 |
$("${S}/configure" --help | grep -o -- '--without-.*-prefix') |