summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-12-27 17:30:07 +0100
committerDavid Seifert <soap@gentoo.org>2022-12-27 17:30:07 +0100
commit3d67b1ccfacc37308a7236625035dff1156b025c (patch)
treeb9aa6b7f4962580359eee5e1814c78849f304632 /eclass/python-single-r1.eclass
parentpython-r1.eclass: drop EAPI 6 support (diff)
downloadgentoo-3d67b1ccfacc37308a7236625035dff1156b025c.tar.gz
gentoo-3d67b1ccfacc37308a7236625035dff1156b025c.tar.bz2
gentoo-3d67b1ccfacc37308a7236625035dff1156b025c.zip
python-single-r1.eclass: drop EAPI 6 support
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/python-single-r1.eclass')
-rw-r--r--eclass/python-single-r1.eclass26
1 files changed, 8 insertions, 18 deletions
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
index 790477c1472a..4d61f08c06f0 100644
--- a/eclass/python-single-r1.eclass
+++ b/eclass/python-single-r1.eclass
@@ -7,7 +7,7 @@
# @AUTHOR:
# Author: Michał Górny <mgorny@gentoo.org>
# Based on work of: Krzysztof Pawlik <nelchael@gentoo.org>
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
# @PROVIDES: python-utils-r1
# @BLURB: An eclass for Python packages not installed for multiple implementations.
# @DESCRIPTION:
@@ -37,18 +37,13 @@
# For more information, please see the Python Guide:
# https://projects.gentoo.org/python/guide/
-case "${EAPI:-0}" in
- [0-5])
- die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
- ;;
- [6-8])
- ;;
- *)
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
- ;;
+case ${EAPI} in
+ 7|8) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-if [[ ! ${_PYTHON_SINGLE_R1} ]]; then
+if [[ ! ${_PYTHON_SINGLE_R1_ECLASS} ]]; then
+_PYTHON_SINGLE_R1_ECLASS=1
if [[ ${_PYTHON_R1_ECLASS} ]]; then
die 'python-single-r1.eclass can not be used with python-r1.eclass.'
@@ -58,10 +53,6 @@ fi
inherit python-utils-r1
-fi
-
-EXPORT_FUNCTIONS pkg_setup
-
# @ECLASS_VARIABLE: PYTHON_COMPAT
# @REQUIRED
# @DESCRIPTION:
@@ -257,8 +248,6 @@ _python_single_set_globals() {
_python_single_set_globals
unset -f _python_single_set_globals
-if [[ ! ${_PYTHON_SINGLE_R1} ]]; then
-
# @FUNCTION: python_gen_useflags
# @USAGE: [<pattern>...]
# @DESCRIPTION:
@@ -463,5 +452,6 @@ python-single-r1_pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && python_setup
}
-_PYTHON_SINGLE_R1=1
fi
+
+EXPORT_FUNCTIONS pkg_setup