commit:     0406bfcc8f5cbffdda09d3156455db44ce31e610
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 20 10:18:12 2019 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Jul 22 06:43:44 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0406bfcc

ruby-fakegem.eclass: drop support for old EAPIs

Drop support for EAPI 0, 1, 2, 3.

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 eclass/ruby-fakegem.eclass | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index 915c10b986c..1e8620c166d 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -8,7 +8,7 @@
 # Author: Diego E. Pettenò <flamee...@gentoo.org>
 # Author: Alex Legler <a...@gentoo.org>
 # Author: Hans de Graaff <gra...@gentoo.org>
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
+# @SUPPORTED_EAPIS: 4 5 6
 # @BLURB: An eclass for installing Ruby packages to behave like RubyGems.
 # @DESCRIPTION:
 # This eclass allows to install arbitrary Ruby libraries (including Gems),
@@ -107,11 +107,13 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}"
 # Rails generators, or data that needs to be installed as well.
 
 case "${EAPI:-0}" in
-               0|1|2|3|4|5|6)
-                               ;;
-               *)
-                               die "Unsupported EAPI=${EAPI} (unknown) for 
${ECLASS}"
-                               ;;
+       0|1|2|3)
+               die "Unsupported EAPI=${EAPI} (too old) for 
ruby-fakegem.eclass" ;;
+       4|5|6)
+               ;;
+       *)
+               die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
+               ;;
 esac
 
 
@@ -178,8 +180,6 @@ ruby_add_rdepend virtual/rubygems
 # This function returns the gems data directory for the ruby
 # implementation in question.
 ruby_fakegem_gemsdir() {
-       has "${EAPI}" 2 && ! use prefix && EPREFIX=
-
        local _gemsitedir=$(ruby_rbconfig_value 'sitelibdir')
        _gemsitedir=${_gemsitedir//site_ruby/gems}
        _gemsitedir=${_gemsitedir#${EPREFIX}}

Reply via email to