From 8bb76275c813bfeff07d46cd14faae560ea517e5 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Jun 2021 23:15:04 +0200 Subject: portability.eclass: [QA] add EAPI guard Signed-off-by: Sam James Signed-off-by: David Seifert --- eclass/portability.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/portability.eclass b/eclass/portability.eclass index 3b085d6c4e70..1b3c3952f831 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 -- cgit v1.2.3-65-gdbad