font.eclass: Add EAPI guardian block, bug 666635
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 20 Sep 2018 16:37:33 +0000 (18:37 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 20 Sep 2018 16:43:22 +0000 (18:43 +0200)
Bug: https://bugs.gentoo.org/666635

eclass/font.eclass

index 7214c99854a78a1eb003fceb3a0f36067044c91e..513be3981c3c415e055c40848a09b3ae0f83222a 100644 (file)
@@ -6,6 +6,11 @@
 # fonts@gentoo.org
 # @BLURB: Eclass to make font installation uniform
 
+case ${EAPI:-0} in
+       0|1|2|3|4|5|6) ;;
+       *)             die "EAPI ${EAPI} is not supported by font.eclass." ;;
+esac
+
 inherit eutils
 
 EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_postrm