From: Michał Górny Date: Mon, 4 Nov 2019 09:04:35 +0000 (+0100) Subject: ruby-ng.eclass: Add RESTRICT="!test? ( test )" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c88ede9340bfa2adb02261135379b5531c9e3603;p=gentoo.git ruby-ng.eclass: Add RESTRICT="!test? ( test )" Signed-off-by: Michał Górny --- diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index dd9d3f2418ca..db701d81f4fc 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -234,7 +234,10 @@ ruby_add_rdepend() { 4|5|6) DEPEND="${DEPEND} test? ( ${dependency} )" ;; *) BDEPEND="${BDEPEND} test? ( ${dependency} )" ;; esac - has test "$IUSE" || IUSE="${IUSE} test" + if ! has test "$IUSE"; then + IUSE+=" test" + RESTRICT+=" !test? ( test )" + fi } # @FUNCTION: ruby_add_bdepend