ruby-ng-gnome2.eclass: add proper EAPI guard
authorHans de Graaff <graaff@gentoo.org>
Sun, 15 Jul 2018 05:57:54 +0000 (07:57 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 15 Jul 2018 05:57:54 +0000 (07:57 +0200)
eclass/ruby-ng-gnome2.eclass

index 2166cbfacce7e45f35bd54c5cca4f23d19af5e7c..8a3ce33c0dc81b080b0cc1d4e0a52b198bce353f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: ruby-ng-gnome2.eclass
 # This eclass simplifies installation of the various pieces of
 # ruby-gnome2 since they share a very common installation procedure.
 
+case "${EAPI:-0}" in
+       0|1|2|3|4|5|6)
+               ;;
+       *)
+               die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
+               ;;
+esac
+
 RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
 RUBY_FAKEGEM_TASK_TEST=""
 RUBY_FAKEGEM_TASK_DOC=""