projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c0a78
)
java-utils-2.eclass: Add RESTRICT="!test? ( test )"
author
Michał Górny
<mgorny@gentoo.org>
Thu, 12 Dec 2019 07:12:49 +0000
(08:12 +0100)
committer
Michał Górny
<mgorny@gentoo.org>
Thu, 12 Dec 2019 13:25:42 +0000
(14:25 +0100)
Add RESTRICT="!test? ( test )" when the ebuild specified
JAVA_PKG_IUSE="test". This fixes further 100 MissingTestRestrict cases.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/java-utils-2.eclass
patch
|
blob
|
history
diff --git
a/eclass/java-utils-2.eclass
b/eclass/java-utils-2.eclass
index e32cb572f147183a1eb07eee8980121d28332c8e..1e46e9b557808e0ac1c6fdf67f2cf83de7e7564b 100644
(file)
--- a/
eclass/java-utils-2.eclass
+++ b/
eclass/java-utils-2.eclass
@@
-28,6
+28,8
@@
export WANT_JAVA_CONFIG="2"
# Prefix variables are only available for EAPI>=3
has "${EAPI:-0}" 0 1 2 && ED="${D}" EPREFIX= EROOT="${ROOT}"
+has test ${JAVA_PKG_IUSE} && RESTRICT+=" !test? ( test )"
+
# @VARIABLE: JAVA_PKG_E_DEPEND
# @INTERNAL
# @DESCRIPTION: