From c88ede9340bfa2adb02261135379b5531c9e3603 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 4 Nov 2019 10:04:35 +0100 Subject: [PATCH] ruby-ng.eclass: Add RESTRICT="!test? ( test )" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- eclass/ruby-ng.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.26.2