public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] java-utils-2.eclass: Add RESTRICT="!test? ( test )"
@ 2019-12-12  7:14 Michał Górny
  2019-12-12 12:25 ` David Seifert
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Górny @ 2019-12-12  7:14 UTC (permalink / raw
  To: gentoo-dev; +Cc: java, Michał Górny

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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index e32cb572f147..1e46e9b55780 100644
--- 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:
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-12 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12  7:14 [gentoo-dev] [PATCH] java-utils-2.eclass: Add RESTRICT="!test? ( test )" Michał Górny
2019-12-12 12:25 ` David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox