ruby-fakegem.eclass: Add EAPI guard up to EAPI=6
authorHans de Graaff <graaff@gentoo.org>
Mon, 7 May 2018 19:19:26 +0000 (21:19 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 7 May 2018 19:19:26 +0000 (21:19 +0200)
This will allow us to introduce new defaults for some of the
ruby-fakegem settings when switching to EAPI=7.

eclass/ruby-fakegem.eclass

index c606ccfdb7b374a618f73f047bf162ad15b42a26..b66d57d2d573cf46347ae3d57d64db1d5ba8c119 100644 (file)
@@ -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:-}"