1 |
commit: 15dbbdbb3dd7312a90c1f2d09c727453d20ca702 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 4 08:13:21 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 4 08:35:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15dbbdbb |
7 |
|
8 |
ruby-fakegem.eclass: Add RESTRICT="!test? ( test )" |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/ruby-fakegem.eclass | 4 ++++ |
13 |
1 file changed, 4 insertions(+) |
14 |
|
15 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
16 |
index e600b02b964..d0956082f81 100644 |
17 |
--- a/eclass/ruby-fakegem.eclass |
18 |
+++ b/eclass/ruby-fakegem.eclass |
19 |
@@ -155,20 +155,24 @@ esac |
20 |
case ${RUBY_FAKEGEM_RECIPE_TEST} in |
21 |
rake) |
22 |
IUSE+=" test" |
23 |
+ RESTRICT+=" !test? ( test )" |
24 |
ruby_add_bdepend "test? ( dev-ruby/rake )" |
25 |
;; |
26 |
rspec) |
27 |
IUSE+=" test" |
28 |
+ RESTRICT+=" !test? ( test )" |
29 |
# Also require a new enough rspec-core version that installs the |
30 |
# rspec-2 wrapper. |
31 |
ruby_add_bdepend "test? ( dev-ruby/rspec:2 >=dev-ruby/rspec-core-2.14.8-r2 )" |
32 |
;; |
33 |
rspec3) |
34 |
IUSE+=" test" |
35 |
+ RESTRICT+=" !test? ( test )" |
36 |
ruby_add_bdepend "test? ( dev-ruby/rspec:3 )" |
37 |
;; |
38 |
cucumber) |
39 |
IUSE+=" test" |
40 |
+ RESTRICT+=" !test? ( test )" |
41 |
ruby_add_bdepend "test? ( dev-util/cucumber )" |
42 |
;; |
43 |
*) |