diff options
Diffstat (limited to 'eclass/ruby-ng.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 |