diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-07-20 12:18:12 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-07-22 08:43:44 +0200 |
commit | 0406bfcc8f5cbffdda09d3156455db44ce31e610 (patch) | |
tree | 74848e7b71b091d44387dfae08b8fcacc6dc19a0 /eclass | |
parent | ruby-fakegem.eclass: List myself as author (diff) | |
download | gentoo-0406bfcc8f5cbffdda09d3156455db44ce31e610.tar.gz gentoo-0406bfcc8f5cbffdda09d3156455db44ce31e610.tar.bz2 gentoo-0406bfcc8f5cbffdda09d3156455db44ce31e610.zip |
ruby-fakegem.eclass: drop support for old EAPIs
Drop support for EAPI 0, 1, 2, 3.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index 915c10b986c3..1e8620c166d4 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: 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}} |