Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH 30/41] ruby-single.eclass: drop EAPI 4-6 support
Date: Sun, 25 Dec 2022 22:23:45
Message-Id: 20221225221552.8023-30-soap@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/41] ada.eclass: drop EAPI 6 support by David Seifert
1 Signed-off-by: David Seifert <soap@g.o>
2 ---
3 eclass/ruby-single.eclass | 19 ++++++-------------
4 1 file changed, 6 insertions(+), 13 deletions(-)
5
6 diff --git a/eclass/ruby-single.eclass b/eclass/ruby-single.eclass
7 index 476d16b5cae..035675c4810 100644
8 --- a/eclass/ruby-single.eclass
9 +++ b/eclass/ruby-single.eclass
10 @@ -7,7 +7,7 @@
11 # @AUTHOR:
12 # Author: Hans de Graaff <graaff@g.o>
13 # Based on python-single-r1 by: Michał Górny <mgorny@g.o>
14 -# @SUPPORTED_EAPIS: 4 5 6 7 8
15 +# @SUPPORTED_EAPIS: 7 8
16 # @PROVIDES: ruby-utils
17 # @BLURB: An eclass for Ruby packages not installed for multiple implementations.
18 # @DESCRIPTION:
19 @@ -23,18 +23,13 @@
20 # RDEPEND="${RUBY_DEPS}"
21 # @CODE
22
23 -case "${EAPI:-0}" in
24 - 0|1|2|3)
25 - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
26 - ;;
27 - 4|5|6|7|8)
28 - ;;
29 - *)
30 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
31 - ;;
32 +case ${EAPI} in
33 + 7|8) ;;
34 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
35 esac
36
37 -if [[ ! ${_RUBY_SINGLE} ]]; then
38 +if [[ ! ${_RUBY_SINGLE_ECLASS} ]]; then
39 +_RUBY_SINGLE_ECLASS=1
40
41 inherit ruby-utils
42
43 @@ -88,6 +83,4 @@ _ruby_single_set_globals() {
44 }
45 _ruby_single_set_globals
46
47 -
48 -_RUBY_SINGLE=1
49 fi
50 --
51 2.39.0