wxwidgets.eclass: Add EAPI support
authorJustin Lecher <jlec@gentoo.org>
Mon, 1 Feb 2016 10:53:14 +0000 (11:53 +0100)
committerJustin Lecher <jlec@gentoo.org>
Wed, 3 Feb 2016 09:53:01 +0000 (10:53 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/wxwidgets.eclass

index aaac074ac51c6826a313b2e48d2e7a5e11c7b596..dc6db5a8d0bdc4761737ddbd112ca912a700aa5c 100644 (file)
 
 if [[ -z ${_WXWIDGETS_ECLASS} ]]; then
 
-inherit eutils flag-o-matic multilib
+case ${EAPI} in
+       0|1|2|3|4|5)
+               inherit eutils flag-o-matic multilib
+               ;;
+       *)
+               die "EAPI=${EAPI:-0} is not supported"
+               ;;
+esac
 
 # We do this in global scope so ebuilds can get sane defaults just by
 # inheriting.