diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:15:04 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:15:04 +0200 |
commit | 8bb76275c813bfeff07d46cd14faae560ea517e5 (patch) | |
tree | 3b8eaff52d051f7a22cfb1c51e5d0f372924b0fc | |
parent | php-ext-pecl-r3.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-8bb76275.tar.gz gentoo-8bb76275.tar.bz2 gentoo-8bb76275.zip |
portability.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r-- | eclass/portability.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
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ò <flameeyes@gentoo.org> # @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 |