From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84FC8138334 for ; Thu, 12 Dec 2019 12:25:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86DAFE08E0; Thu, 12 Dec 2019 12:25:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C580E08D1 for ; Thu, 12 Dec 2019 12:25:29 +0000 (UTC) Received: from thinkpad.fritz.box (unknown [IPv6:2001:4060:c005:3f00:9491:b020:96bd:fae]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: soap) by smtp.gentoo.org (Postfix) with ESMTPSA id E90D834D7C3; Thu, 12 Dec 2019 12:25:26 +0000 (UTC) Message-ID: <6f65d6cee163c2fda19c0f04be7f928dc9c4a49e.camel@gentoo.org> Subject: Re: [gentoo-dev] [PATCH] java-utils-2.eclass: Add RESTRICT="!test? ( test )" From: David Seifert To: gentoo-dev@lists.gentoo.org Cc: java@gentoo.org, =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= Date: Thu, 12 Dec 2019 13:25:23 +0100 In-Reply-To: <20191212071442.7342-1-mgorny@gentoo.org> References: <20191212071442.7342-1-mgorny@gentoo.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 08ae98aa-bb40-4f87-9c22-14df2ec3f683 X-Archives-Hash: 56f6a070af03eee8a24696a74518ae2e On Thu, 2019-12-12 at 08:14 +0100, Michał Górny wrote: > 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(+) > > 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: ACK