commit:     2c45c37a5ef7c12922c07eec698abf850ec2ffbb
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 16:30:11 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 16:30:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c45c37a

ruby-single.eclass: drop EAPI 4-6 support

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 eclass/ruby-single.eclass | 19 ++++++-------------
 1 file 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 <[email protected]>
 # Based on python-single-r1 by: Michał Górny <[email protected]>
-# @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

Reply via email to