ruby-fakegem.eclass: Add RESTRICT="!test? ( test )"
authorMichał Górny <mgorny@gentoo.org>
Mon, 4 Nov 2019 08:13:21 +0000 (09:13 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 4 Nov 2019 08:35:29 +0000 (09:35 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/ruby-fakegem.eclass

index e600b02b9649dfce962a05a11197d8157926c9c4..d0956082f8164f78185462878aa76a1ff9217905 100644 (file)
@@ -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 )"
                ;;
        *)