1 |
From: Hans de Graaff <graaff@g.o> |
2 |
|
3 |
Drop support for EAPI 0, 1, 2, 3. |
4 |
|
5 |
Signed-off-by: Hans de Graaff <graaff@g.o> |
6 |
--- |
7 |
eclass/ruby-fakegem.eclass | 16 ++++++++-------- |
8 |
1 file changed, 8 insertions(+), 8 deletions(-) |
9 |
|
10 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
11 |
index 915c10b986c3..1e8620c166d4 100644 |
12 |
--- a/eclass/ruby-fakegem.eclass |
13 |
+++ b/eclass/ruby-fakegem.eclass |
14 |
@@ -8,7 +8,7 @@ |
15 |
# Author: Diego E. Pettenò <flameeyes@g.o> |
16 |
# Author: Alex Legler <a3li@g.o> |
17 |
# Author: Hans de Graaff <graaff@g.o> |
18 |
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 |
19 |
+# @SUPPORTED_EAPIS: 4 5 6 |
20 |
# @BLURB: An eclass for installing Ruby packages to behave like RubyGems. |
21 |
# @DESCRIPTION: |
22 |
# This eclass allows to install arbitrary Ruby libraries (including Gems), |
23 |
@@ -107,11 +107,13 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}" |
24 |
# Rails generators, or data that needs to be installed as well. |
25 |
|
26 |
case "${EAPI:-0}" in |
27 |
- 0|1|2|3|4|5|6) |
28 |
- ;; |
29 |
- *) |
30 |
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
31 |
- ;; |
32 |
+ 0|1|2|3) |
33 |
+ die "Unsupported EAPI=${EAPI} (too old) for ruby-fakegem.eclass" ;; |
34 |
+ 4|5|6) |
35 |
+ ;; |
36 |
+ *) |
37 |
+ die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
38 |
+ ;; |
39 |
esac |
40 |
|
41 |
|
42 |
@@ -178,8 +180,6 @@ ruby_add_rdepend virtual/rubygems |
43 |
# This function returns the gems data directory for the ruby |
44 |
# implementation in question. |
45 |
ruby_fakegem_gemsdir() { |
46 |
- has "${EAPI}" 2 && ! use prefix && EPREFIX= |
47 |
- |
48 |
local _gemsitedir=$(ruby_rbconfig_value 'sitelibdir') |
49 |
_gemsitedir=${_gemsitedir//site_ruby/gems} |
50 |
_gemsitedir=${_gemsitedir#${EPREFIX}} |
51 |
-- |
52 |
2.21.0 |