1 |
commit: d41f1906f9a23ad65d9387ba80243fa4e237b295 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 15 06:06:20 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=d41f1906 |
7 |
|
8 |
eclass/ruby-fakegem.eclass: add EAPI 8 support |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
eclass/ruby-fakegem.eclass | 14 ++++---------- |
13 |
1 file changed, 4 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
16 |
index 9b2fd39ccf1..34eeff2fad9 100644 |
17 |
--- a/eclass/ruby-fakegem.eclass |
18 |
+++ b/eclass/ruby-fakegem.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 to behave like RubyGems. |
26 |
# @DESCRIPTION: |
27 |
# This eclass allows to install arbitrary Ruby libraries (including Gems), |
28 |
@@ -129,17 +129,11 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}" |
29 |
# legacy way to install extensions for a long time. |
30 |
RUBY_FAKEGEM_EXTENSION_LIBDIR="${RUBY_FAKEGEM_EXTENSION_LIBDIR-lib}" |
31 |
|
32 |
-case "${EAPI:-0}" in |
33 |
- 0|1|2|3) |
34 |
- die "Unsupported EAPI=${EAPI} (too old) for ruby-fakegem.eclass" ;; |
35 |
- 4|5|6|7) |
36 |
- ;; |
37 |
- *) |
38 |
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
39 |
- ;; |
40 |
+case ${EAPI} in |
41 |
+ 4|5|6|7|8) ;; |
42 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
43 |
esac |
44 |
|
45 |
- |
46 |
RUBY_FAKEGEM_SUFFIX="${RUBY_FAKEGEM_SUFFIX:-}" |