Gentoo Archives: gentoo-dev

From: graaff@g.o
To: gentoo-dev@l.g.o
Cc: Hans de Graaff <graaff@g.o>
Subject: [gentoo-dev] [PATCH 1/6] ruby-ng.eclass: add EAPI 7 support
Date: Sun, 21 Jul 2019 07:55:46
Message-Id: 20190721075510.31524-1-graaff@gentoo.org
1 From: Hans de Graaff <graaff@g.o>
2
3 Signed-off-by: Hans de Graaff <graaff@g.o>
4 ---
5 eclass/ruby-ng.eclass | 6 +++---
6 1 file changed, 3 insertions(+), 3 deletions(-)
7
8 diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
9 index 8dc3e1661252..c2a09585d8ef 100644
10 --- a/eclass/ruby-ng.eclass
11 +++ b/eclass/ruby-ng.eclass
12 @@ -8,7 +8,7 @@
13 # Author: Diego E. Pettenò <flameeyes@g.o>
14 # Author: Alex Legler <a3li@g.o>
15 # Author: Hans de Graaff <graaff@g.o>
16 -# @SUPPORTED_EAPIS: 4 5 6
17 +# @SUPPORTED_EAPIS: 4 5 6 7
18 # @BLURB: An eclass for installing Ruby packages with proper support for multiple Ruby slots.
19 # @DESCRIPTION:
20 # The Ruby eclass is designed to allow an easier installation of Ruby packages
21 @@ -83,7 +83,7 @@ EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_i
22 case ${EAPI} in
23 0|1|2|3)
24 die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;;
25 - 4|5|6)
26 + 4|5|6|7)
27 # S is no longer automatically assigned when it doesn't exist.
28 S="${WORKDIR}"
29 ;;
30 @@ -283,7 +283,7 @@ ruby_get_use_targets() {
31 # confuse this function with ruby_implementation_depend().
32 #
33 # @EXAMPLE:
34 -# EAPI=6
35 +# EAPI=7
36 # RUBY_OPTIONAL=yes
37 #
38 # inherit ruby-ng
39 --
40 2.21.0

Replies