summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:15:07 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:15:07 +0200
commit34adb46821fb67d041d3e70fcc9e2bf241540389 (patch)
tree7eecf9796e2634e6722fd02cfde28661401c6f8e /eclass/prefix.eclass
parentportability.eclass: [QA] add EAPI guard (diff)
downloadgentoo-34adb46821fb67d041d3e70fcc9e2bf241540389.tar.gz
gentoo-34adb46821fb67d041d3e70fcc9e2bf241540389.tar.bz2
gentoo-34adb46821fb67d041d3e70fcc9e2bf241540389.zip
prefix.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/prefix.eclass')
-rw-r--r--eclass/prefix.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/prefix.eclass b/eclass/prefix.eclass
index d00c0d79ef53..febdb7afeccb 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 <prefix@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