epatch.eclass: Ban in EAPI 7 (in favor of eapply)
authorMichał Górny <mgorny@gentoo.org>
Tue, 6 Mar 2018 17:17:10 +0000 (18:17 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 23 Apr 2018 18:00:53 +0000 (20:00 +0200)
eclass/epatch.eclass

index 905f68f8ef2273b63d82ab35471e731538ad40b3..8e03478c26ce9a0a6015dbe538b8e37f1d006aa6 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: epatch.eclass
 
 if [[ -z ${_EPATCH_ECLASS} ]]; then
 
+case ${EAPI:-0} in
+       0|1|2|3|4|5|6)
+               ;;
+       *)
+               die "${ECLASS}: banned in EAPI=${EAPI}; use eapply* instead";;
+esac
+
 inherit estack
 
 # @VARIABLE: EPATCH_SOURCE