diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-05-07 21:19:26 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-05-07 21:19:26 +0200 |
commit | 2c6299c6df54f540741de02928b14ba3e6029d6a (patch) | |
tree | d78fe402858ae51cce75bac4b10f5546c77772d3 /eclass | |
parent | profiles/package.mask: mask old ruby23 slots of packages (diff) | |
download | gentoo-2c6299c6df54f540741de02928b14ba3e6029d6a.tar.gz gentoo-2c6299c6df54f540741de02928b14ba3e6029d6a.tar.bz2 gentoo-2c6299c6df54f540741de02928b14ba3e6029d6a.zip |
ruby-fakegem.eclass: Add EAPI guard up to EAPI=6
This will allow us to introduce new defaults for some of the
ruby-fakegem settings when switching to EAPI=7.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index c606ccfdb7b3..b66d57d2d573 100644 --- a/eclass/ruby-fakegem.eclass +++ b/eclass/ruby-fakegem.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ruby-fakegem.eclass @@ -104,6 +104,14 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}" # get installed. Some gems provide extra files such as version information, # Rails generators, or data that needs to be installed as well. +case "${EAPI:-0}" in + 0|1|2|3|4|5|6) + ;; + *) + die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" + ;; +esac + RUBY_FAKEGEM_SUFFIX="${RUBY_FAKEGEM_SUFFIX:-}" |