summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-04 09:13:21 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-04 09:35:29 +0100
commit15dbbdbb3dd7312a90c1f2d09c727453d20ca702 (patch)
tree0205d4390e87ac99bc9d627bb8cdb20b0a0ef722 /eclass
parentdev-python/html2text: Add RESTRICT="!test? ( test )" (diff)
downloadgentoo-15dbbdbb3dd7312a90c1f2d09c727453d20ca702.tar.gz
gentoo-15dbbdbb3dd7312a90c1f2d09c727453d20ca702.tar.bz2
gentoo-15dbbdbb3dd7312a90c1f2d09c727453d20ca702.zip
ruby-fakegem.eclass: Add RESTRICT="!test? ( test )"
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-fakegem.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index e600b02b9649..d0956082f816 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 )"
;;
*)