Gentoo Archives: gentoo-dev

From: Hans de Graaff <graaff@g.o>
To: gentoo-dev@l.g.o
Cc: Hans de Graaff <graaff@g.o>
Subject: [gentoo-dev] [PATCH 1/3] ruby-fakegem.eclass: enable EAPI 7
Date: Thu, 25 Jul 2019 07:10:06
Message-Id: 20190725070916.8364-1-graaff@gentoo.org
1 Signed-off-by: Hans de Graaff <graaff@g.o>
2 ---
3 eclass/ruby-fakegem.eclass | 11 +++++++++--
4 1 file changed, 9 insertions(+), 2 deletions(-)
5
6 diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
7 index 1e8620c166d4..ab7b36eb7ae7 100644
8 --- a/eclass/ruby-fakegem.eclass
9 +++ b/eclass/ruby-fakegem.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
15 +# @SUPPORTED_EAPIS: 4 5 6 7
16 # @BLURB: An eclass for installing Ruby packages to behave like RubyGems.
17 # @DESCRIPTION:
18 # This eclass allows to install arbitrary Ruby libraries (including Gems),
19 @@ -109,7 +109,7 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}"
20 case "${EAPI:-0}" in
21 0|1|2|3)
22 die "Unsupported EAPI=${EAPI} (too old) for ruby-fakegem.eclass" ;;
23 - 4|5|6)
24 + 4|5|6|7)
25 ;;
26 *)
27 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
28 @@ -173,6 +173,13 @@ SRC_URI="mirror://rubygems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}${RUBY_FA
29
30 ruby_add_bdepend virtual/rubygems
31 ruby_add_rdepend virtual/rubygems
32 +case ${EAPI} in
33 + 4|5|6)
34 + ;;
35 + *)
36 + ruby_add_depend virtual/rubygems
37 + ;;
38 +esac
39
40 # @FUNCTION: ruby_fakegem_gemsdir
41 # @RETURN: Returns the gem data directory
42 --
43 2.21.0

Replies