Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 18 Jul 2021 05:59:38
Message-Id: 1626586866.591579a593c20dee68fe2285a6ac55cdccbd9c66.graaff@gentoo
1 commit: 591579a593c20dee68fe2285a6ac55cdccbd9c66
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 15 06:02:42 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 05:41:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=591579a5
7
8 eclass/ruby-ng.eclass: add EAPI 8 support
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 eclass/ruby-ng.eclass | 15 ++++++---------
13 1 file changed, 6 insertions(+), 9 deletions(-)
14
15 diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
16 index 0c569bfcdcc..d8afa207661 100644
17 --- a/eclass/ruby-ng.eclass
18 +++ b/eclass/ruby-ng.eclass
19 @@ -8,7 +8,7 @@
20 # Author: Diego E. Pettenò <flameeyes@g.o>
21 # Author: Alex Legler <a3li@g.o>
22 # Author: Hans de Graaff <graaff@g.o>
23 -# @SUPPORTED_EAPIS: 4 5 6 7
24 +# @SUPPORTED_EAPIS: 4 5 6 7 8
25 # @BLURB: An eclass for installing Ruby packages with proper support for multiple Ruby slots.
26 # @DESCRIPTION:
27 # The Ruby eclass is designed to allow an easier installation of Ruby packages
28 @@ -83,15 +83,12 @@ inherit ${inherits} multilib ruby-utils
29
30 EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup
31
32 +# S is no longer automatically assigned when it doesn't exist.
33 +S="${WORKDIR}"
34 +
35 case ${EAPI} in
36 - 0|1|2|3)
37 - die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;;
38 - 4|5|6|7)
39 - # S is no longer automatically assigned when it doesn't exist.
40 - S="${WORKDIR}"
41 - ;;
42 - *)
43 - die "Unknown EAPI=${EAPI} for ruby-ng.eclass"
44 + 4|5|6|7|8) ;;
45 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
46 esac
47
48 # @FUNCTION: ruby_implementation_depend