Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 07 May 2018 19:20:51
Message-Id: 1525720766.2c6299c6df54f540741de02928b14ba3e6029d6a.graaff@gentoo
1 commit: 2c6299c6df54f540741de02928b14ba3e6029d6a
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 7 19:19:26 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon May 7 19:19:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c6299c6
7
8 ruby-fakegem.eclass: Add EAPI guard up to EAPI=6
9
10 This will allow us to introduce new defaults for some of the
11 ruby-fakegem settings when switching to EAPI=7.
12
13 eclass/ruby-fakegem.eclass | 10 +++++++++-
14 1 file changed, 9 insertions(+), 1 deletion(-)
15
16 diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
17 index c606ccfdb7b..b66d57d2d57 100644
18 --- a/eclass/ruby-fakegem.eclass
19 +++ b/eclass/ruby-fakegem.eclass
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 +# Copyright 1999-2018 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 # @ECLASS: ruby-fakegem.eclass
26 @@ -104,6 +104,14 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}"
27 # get installed. Some gems provide extra files such as version information,
28 # Rails generators, or data that needs to be installed as well.
29
30 +case "${EAPI:-0}" in
31 + 0|1|2|3|4|5|6)
32 + ;;
33 + *)
34 + die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
35 + ;;
36 +esac
37 +
38
39 RUBY_FAKEGEM_SUFFIX="${RUBY_FAKEGEM_SUFFIX:-}"