summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-25 08:36:28 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-27 09:13:16 +0200
commit8ee49f9a9daecba9257697b1181ac6159c60d9f1 (patch)
tree73264df92f9d860a421c7dad85a838a60a21f9d0 /eclass
parentruby-fakegem.eclass: enable EAPI 7 (diff)
downloadgentoo-8ee49f9a9daecba9257697b1181ac6159c60d9f1.tar.gz
gentoo-8ee49f9a9daecba9257697b1181ac6159c60d9f1.tar.bz2
gentoo-8ee49f9a9daecba9257697b1181ac6159c60d9f1.zip
ruby-fakegem.eclass: change default DOC recipe to use rdoc
The previous default was "rake" but this turned out to be a poor choice because many packages do not implement "rake doc" and even if they do there are usually many local development environment assumption attached to that task. Using a consistent "rdoc" call that is handled by the eclass gets more consistent results at the code of missing out on specific rdoc options set by packages. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-fakegem.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index ab7b36eb7ae7..33a9e453f564 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -57,7 +57,14 @@ RUBY_FAKEGEM_TASK_TEST="${RUBY_FAKEGEM_TASK_TEST-test}"
# - rdoc (calls `rdoc-2`, adds dev-ruby/rdoc to the dependencies);
# - yard (calls `yard`, adds dev-ruby/yard to the dependencies);
# - none
-RUBY_FAKEGEM_RECIPE_DOC="${RUBY_FAKEGEM_RECIPE_DOC-rake}"
+case ${EAPI} in
+ 4|5|6)
+ RUBY_FAKEGEM_RECIPE_DOC="${RUBY_FAKEGEM_RECIPE_DOC-rake}"
+ ;;
+ *)
+ RUBY_FAKEGEM_RECIPE_DOC="${RUBY_FAKEGEM_RECIPE_DOC-rdoc}"
+ ;;
+esac
# @ECLASS-VARIABLE: RUBY_FAKEGEM_DOCDIR
# @DEFAULT_UNSET