summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-04 10:04:35 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-04 10:05:02 +0100
commitc88ede9340bfa2adb02261135379b5531c9e3603 (patch)
tree72d3576b726d53a4542f95e3a048865df1ebd86f /eclass/ruby-ng.eclass
parentapp-text/dos2unix: Silence stupid QA warning (diff)
downloadgentoo-c88ede9340bfa2adb02261135379b5531c9e3603.tar.gz
gentoo-c88ede9340bfa2adb02261135379b5531c9e3603.tar.bz2
gentoo-c88ede9340bfa2adb02261135379b5531c9e3603.zip
ruby-ng.eclass: Add RESTRICT="!test? ( test )"
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass5
1 files changed, 4 insertions, 1 deletions
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