1 |
The previous default was "rake" but this turned out to be a poor |
2 |
choice because many packages do not implement "rake doc" and even if |
3 |
they do there are usually many local development environment |
4 |
assumption attached to that task. Using a consistent "rdoc" call that |
5 |
is handled by the eclass gets more consistent results at the code of |
6 |
missing out on specific rdoc options set by packages. |
7 |
--- |
8 |
eclass/ruby-fakegem.eclass | 9 ++++++++- |
9 |
1 file changed, 8 insertions(+), 1 deletion(-) |
10 |
|
11 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
12 |
index ab7b36eb7ae7..33a9e453f564 100644 |
13 |
--- a/eclass/ruby-fakegem.eclass |
14 |
+++ b/eclass/ruby-fakegem.eclass |
15 |
@@ -57,7 +57,14 @@ RUBY_FAKEGEM_TASK_TEST="${RUBY_FAKEGEM_TASK_TEST-test}" |
16 |
# - rdoc (calls `rdoc-2`, adds dev-ruby/rdoc to the dependencies); |
17 |
# - yard (calls `yard`, adds dev-ruby/yard to the dependencies); |
18 |
# - none |
19 |
-RUBY_FAKEGEM_RECIPE_DOC="${RUBY_FAKEGEM_RECIPE_DOC-rake}" |
20 |
+case ${EAPI} in |
21 |
+ 4|5|6) |
22 |
+ RUBY_FAKEGEM_RECIPE_DOC="${RUBY_FAKEGEM_RECIPE_DOC-rake}" |
23 |
+ ;; |
24 |
+ *) |
25 |
+ RUBY_FAKEGEM_RECIPE_DOC="${RUBY_FAKEGEM_RECIPE_DOC-rdoc}" |
26 |
+ ;; |
27 |
+esac |
28 |
|
29 |
# @ECLASS-VARIABLE: RUBY_FAKEGEM_DOCDIR |
30 |
# @DEFAULT_UNSET |
31 |
-- |
32 |
2.21.0 |