From 61f10f985e19dfe20a4d9552902625edd5b6eabb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 21 Jun 2021 17:32:00 +0100 Subject: gentoo resync : 21.06.2021 --- eclass/portability.eclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'eclass/portability.eclass') diff --git a/eclass/portability.eclass b/eclass/portability.eclass index 3b085d6c4e70..1cc36757b625 100644 --- a/eclass/portability.eclass +++ b/eclass/portability.eclass @@ -6,8 +6,14 @@ # base-system@gentoo.org # @AUTHOR: # Diego Pettenò +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_PORTABILITY_ECLASS} ]]; then _PORTABILITY_ECLASS=1 -- cgit v1.2.3