Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 20 Jun 2021 21:16:19
Message-Id: 1624223707.34adb46821fb67d041d3e70fcc9e2bf241540389.soap@gentoo
1 commit: 34adb46821fb67d041d3e70fcc9e2bf241540389
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 21:15:07 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 21:15:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34adb468
7
8 prefix.eclass: [QA] add EAPI guard
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 eclass/prefix.eclass | 13 ++++++++++++-
14 1 file changed, 12 insertions(+), 1 deletion(-)
15
16 diff --git a/eclass/prefix.eclass b/eclass/prefix.eclass
17 index d00c0d79ef5..febdb7afecc 100644
18 --- a/eclass/prefix.eclass
19 +++ b/eclass/prefix.eclass
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2019 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 # @ECLASS: prefix.eclass
26 @@ -6,11 +6,20 @@
27 # Feel free to contact the Prefix team through <prefix@g.o> if
28 # you have problems, suggestions or questions.
29 # @BLURB: Eclass to provide Prefix functionality
30 +# @SUPPORTED_EAPIS: 5 6 7
31 # @DESCRIPTION:
32 # Gentoo Prefix allows users to install into a self defined offset
33 # located somewhere in the filesystem. Prefix ebuilds require
34 # additional functions and variables which are defined by this eclass.
35
36 +case ${EAPI:-0} in
37 + [567]) ;;
38 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
39 +esac
40 +
41 +if [[ -z ${_PREFIX_ECLASS} ]]; then
42 +_PREFIX_ECLASS=1
43 +
44 # @ECLASS-VARIABLE: EPREFIX
45 # @DESCRIPTION:
46 # The offset prefix of a Gentoo Prefix installation. When Gentoo Prefix
47 @@ -136,3 +145,5 @@ prefixify_ro() {
48 fi
49 }
50 # vim: tw=72:
51 +
52 +fi