commit:     15dbbdbb3dd7312a90c1f2d09c727453d20ca702
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  4 08:13:21 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov  4 08:35:29 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15dbbdbb

ruby-fakegem.eclass: Add RESTRICT="!test? ( test )"

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/ruby-fakegem.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index e600b02b964..d0956082f81 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -155,20 +155,24 @@ esac
 case ${RUBY_FAKEGEM_RECIPE_TEST} in
        rake)
                IUSE+=" test"
+               RESTRICT+=" !test? ( test )"
                ruby_add_bdepend "test? ( dev-ruby/rake )"
                ;;
        rspec)
                IUSE+=" test"
+               RESTRICT+=" !test? ( test )"
                # Also require a new enough rspec-core version that installs the
                # rspec-2 wrapper.
                ruby_add_bdepend "test? ( dev-ruby/rspec:2 
>=dev-ruby/rspec-core-2.14.8-r2 )"
                ;;
        rspec3)
                IUSE+=" test"
+               RESTRICT+=" !test? ( test )"
                ruby_add_bdepend "test? ( dev-ruby/rspec:3 )"
                ;;
        cucumber)
                IUSE+=" test"
+               RESTRICT+=" !test? ( test )"
                ruby_add_bdepend "test? ( dev-util/cucumber )"
                ;;
        *)

Reply via email to