diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-04 10:04:35 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-04 10:05:02 +0100 |
commit | c88ede9340bfa2adb02261135379b5531c9e3603 (patch) | |
tree | 72d3576b726d53a4542f95e3a048865df1ebd86f /eclass | |
parent | app-text/dos2unix: Silence stupid QA warning (diff) | |
download | gentoo-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')
-rw-r--r-- | eclass/ruby-ng.eclass | 5 |
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 |