kernel-2.eclass: add global EAPI check
authorMike Gilbert <floppym@gentoo.org>
Sun, 18 Sep 2016 19:25:37 +0000 (15:25 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 18 Sep 2016 20:04:55 +0000 (16:04 -0400)
This eclass has not been ported for EAPI 6 yet.

eclass/kernel-2.eclass

index 6b4e8441ef631e615aaf53dfd404f1e91b1ec8f3..1398c0cad3fd5af1cef050b9d1cf32a18f7b19ae 100644 (file)
@@ -90,6 +90,8 @@
 # If you do change them, there is a chance that we will not fix resulting bugs;
 # that of course does not mean we're not willing to help.
 
+has "${EAPI:-0}" 0 1 2 3 4 5 || die "kernel-2.eclass is unsupported for EAPI ${EAPI}"
+
 PYTHON_COMPAT=( python{2_6,2_7} )
 
 inherit eutils toolchain-funcs versionator multilib python-any-r1