diff --git a/eclass/portability.eclass b/eclass/portability.eclass index 3b085d6c4e70c..1b3c3952f8318 100644 --- a/eclass/portability.eclass +++ b/eclass/portability.eclass @@ -7,6 +7,12 @@ # @AUTHOR: # Diego Pettenò # @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds +# @SUPPORTED_EAPIS: 5 6 7 + +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac if [[ -z ${_PORTABILITY_ECLASS} ]]; then _PORTABILITY_ECLASS=1