diff options
author | David Seifert <soap@gentoo.org> | 2022-12-27 17:30:11 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-12-27 17:30:11 +0100 |
commit | 2c45c37a5ef7c12922c07eec698abf850ec2ffbb (patch) | |
tree | 896a368dceea5148b0764efc320241cb346edbde /eclass/ruby-single.eclass | |
parent | ruby-ng-gnome2.eclass: drop EAPI 6 support (diff) | |
download | gentoo-2c45c37a5ef7c12922c07eec698abf850ec2ffbb.tar.gz gentoo-2c45c37a5ef7c12922c07eec698abf850ec2ffbb.tar.bz2 gentoo-2c45c37a5ef7c12922c07eec698abf850ec2ffbb.zip |
ruby-single.eclass: drop EAPI 4-6 support
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/ruby-single.eclass')
-rw-r--r-- | eclass/ruby-single.eclass | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/eclass/ruby-single.eclass b/eclass/ruby-single.eclass index 476d16b5cae1..035675c4810a 100644 --- a/eclass/ruby-single.eclass +++ b/eclass/ruby-single.eclass @@ -7,7 +7,7 @@ # @AUTHOR: # Author: Hans de Graaff <graaff@gentoo.org> # Based on python-single-r1 by: Michał Górny <mgorny@gentoo.org> -# @SUPPORTED_EAPIS: 4 5 6 7 8 +# @SUPPORTED_EAPIS: 7 8 # @PROVIDES: ruby-utils # @BLURB: An eclass for Ruby packages not installed for multiple implementations. # @DESCRIPTION: @@ -23,18 +23,13 @@ # RDEPEND="${RUBY_DEPS}" # @CODE -case "${EAPI:-0}" in - 0|1|2|3) - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" - ;; - 4|5|6|7|8) - ;; - *) - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" - ;; +case ${EAPI} in + 7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -if [[ ! ${_RUBY_SINGLE} ]]; then +if [[ ! ${_RUBY_SINGLE_ECLASS} ]]; then +_RUBY_SINGLE_ECLASS=1 inherit ruby-utils @@ -88,6 +83,4 @@ _ruby_single_set_globals() { } _ruby_single_set_globals - -_RUBY_SINGLE=1 fi |