commit: 34adb46821fb67d041d3e70fcc9e2bf241540389 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jun 20 21:15:07 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sun Jun 20 21:15:07 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34adb468
prefix.eclass: [QA] add EAPI guard Signed-off-by: Sam James <sam <AT> gentoo.org> Signed-off-by: David Seifert <soap <AT> gentoo.org> eclass/prefix.eclass | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/eclass/prefix.eclass b/eclass/prefix.eclass index d00c0d79ef5..febdb7afecc 100644 --- a/eclass/prefix.eclass +++ b/eclass/prefix.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: prefix.eclass @@ -6,11 +6,20 @@ # Feel free to contact the Prefix team through <pre...@gentoo.org> if # you have problems, suggestions or questions. # @BLURB: Eclass to provide Prefix functionality +# @SUPPORTED_EAPIS: 5 6 7 # @DESCRIPTION: # Gentoo Prefix allows users to install into a self defined offset # located somewhere in the filesystem. Prefix ebuilds require # additional functions and variables which are defined by this eclass. +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_PREFIX_ECLASS} ]]; then +_PREFIX_ECLASS=1 + # @ECLASS-VARIABLE: EPREFIX # @DESCRIPTION: # The offset prefix of a Gentoo Prefix installation. When Gentoo Prefix @@ -136,3 +145,5 @@ prefixify_ro() { fi } # vim: tw=72: + +fi