1 |
Signed-off-by: Hans de Graaff <graaff@g.o> |
2 |
--- |
3 |
eclass/ruby-ng.eclass | 15 ++++++--------- |
4 |
1 file changed, 6 insertions(+), 9 deletions(-) |
5 |
|
6 |
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass |
7 |
index 0c569bfcdcc6..d8afa207661f 100644 |
8 |
--- a/eclass/ruby-ng.eclass |
9 |
+++ b/eclass/ruby-ng.eclass |
10 |
@@ -8,7 +8,7 @@ |
11 |
# Author: Diego E. Pettenò <flameeyes@g.o> |
12 |
# Author: Alex Legler <a3li@g.o> |
13 |
# Author: Hans de Graaff <graaff@g.o> |
14 |
-# @SUPPORTED_EAPIS: 4 5 6 7 |
15 |
+# @SUPPORTED_EAPIS: 4 5 6 7 8 |
16 |
# @BLURB: An eclass for installing Ruby packages with proper support for multiple Ruby slots. |
17 |
# @DESCRIPTION: |
18 |
# The Ruby eclass is designed to allow an easier installation of Ruby packages |
19 |
@@ -83,15 +83,12 @@ inherit ${inherits} multilib ruby-utils |
20 |
|
21 |
EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup |
22 |
|
23 |
+# S is no longer automatically assigned when it doesn't exist. |
24 |
+S="${WORKDIR}" |
25 |
+ |
26 |
case ${EAPI} in |
27 |
- 0|1|2|3) |
28 |
- die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;; |
29 |
- 4|5|6|7) |
30 |
- # S is no longer automatically assigned when it doesn't exist. |
31 |
- S="${WORKDIR}" |
32 |
- ;; |
33 |
- *) |
34 |
- die "Unknown EAPI=${EAPI} for ruby-ng.eclass" |
35 |
+ 4|5|6|7|8) ;; |
36 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
37 |
esac |
38 |
|
39 |
# @FUNCTION: ruby_implementation_depend |
40 |
-- |
41 |
2.31.1 |