summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-25 08:23:55 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-27 09:11:50 +0200
commitbb9baa5145a89fbdf86ead00d3b82d1ae4d08f34 (patch)
treeb72dff30e8f254f9d5d00cb8a5b736c2d029db12 /eclass
parentdev-ruby/neovim-ruby-client: add 0.8.1 (diff)
downloadgentoo-bb9baa5145a89fbdf86ead00d3b82d1ae4d08f34.tar.gz
gentoo-bb9baa5145a89fbdf86ead00d3b82d1ae4d08f34.tar.bz2
gentoo-bb9baa5145a89fbdf86ead00d3b82d1ae4d08f34.zip
ruby-fakegem.eclass: enable EAPI 7
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-fakegem.eclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index 1e8620c166d4..ab7b36eb7ae7 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -8,7 +8,7 @@
# Author: Diego E. Pettenò <flameeyes@gentoo.org>
# Author: Alex Legler <a3li@gentoo.org>
# Author: Hans de Graaff <graaff@gentoo.org>
-# @SUPPORTED_EAPIS: 4 5 6
+# @SUPPORTED_EAPIS: 4 5 6 7
# @BLURB: An eclass for installing Ruby packages to behave like RubyGems.
# @DESCRIPTION:
# This eclass allows to install arbitrary Ruby libraries (including Gems),
@@ -109,7 +109,7 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}"
case "${EAPI:-0}" in
0|1|2|3)
die "Unsupported EAPI=${EAPI} (too old) for ruby-fakegem.eclass" ;;
- 4|5|6)
+ 4|5|6|7)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -173,6 +173,13 @@ SRC_URI="mirror://rubygems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}${RUBY_FA
ruby_add_bdepend virtual/rubygems
ruby_add_rdepend virtual/rubygems
+case ${EAPI} in
+ 4|5|6)
+ ;;
+ *)
+ ruby_add_depend virtual/rubygems
+ ;;
+esac
# @FUNCTION: ruby_fakegem_gemsdir
# @RETURN: Returns the gem data directory