depend.apache.eclass: output a fat warning if used with EAPI=6
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 30 Sep 2016 22:21:46 +0000 (00:21 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 30 Sep 2016 22:22:47 +0000 (00:22 +0200)
We would really need a PMS-supplied eqawarn here...

eclass/depend.apache.eclass

index 22a8216a02d95f197dd9af5b59441795f427828a..5fd9071f504e12d78aa15a078c8258d61aea45a8 100644 (file)
 
 inherit multilib
 
+case ${EAPI:-0} in
+       0|1|2|3|4|5)
+               ;;
+       6)
+               ewarn
+               ewarn "EAPI=${EAPI} is not supported by depend.apache.eclass."
+               ewarn "This means that ${CATEGORY}/${PVR} is most likely buggy."
+               ewarn "Please file a report on https://bugs.gentoo.org/"
+               ewarn
+               ;;
+       *)
+               die "EAPI=${EAPI} is not supported by depend.apache.eclass"
+               ;;
+esac
+
 # ==============================================================================
 # INTERNAL VARIABLES
 # ==============================================================================