ruby-fakegem.eclass: enable EAPI 7
authorHans de Graaff <graaff@gentoo.org>
Thu, 25 Jul 2019 06:23:55 +0000 (08:23 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sat, 27 Jul 2019 07:11:50 +0000 (09:11 +0200)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
eclass/ruby-fakegem.eclass

index 1e8620c166d4ed59bd870963c93c6d5dc08c20da..ab7b36eb7ae716dee62576effdab1a23c90d3b3c 100644 (file)
@@ -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