From ba2522d9c4e391e78fe193b6504b20000fd32f3a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 12 Dec 2019 08:12:49 +0100 Subject: java-utils-2.eclass: Add RESTRICT="!test? ( test )" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add RESTRICT="!test? ( test )" when the ebuild specified JAVA_PKG_IUSE="test". This fixes further 100 MissingTestRestrict cases. Signed-off-by: Michał Górny --- eclass/java-utils-2.eclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eclass/java-utils-2.eclass') 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: -- cgit v1.2.3-65-gdbad