public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] [PATCH] java-utils-2.eclass: Add RESTRICT="!test? ( test )"
@ 2019-12-12  7:14 99% Michał Górny
  0 siblings, 0 replies; 1+ results
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	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-12-12  7:14 99% [gentoo-dev] [PATCH] java-utils-2.eclass: Add RESTRICT="!test? ( test )" Michał Górny

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