diff options
author | David Seifert <soap@gentoo.org> | 2024-10-08 17:31:28 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2024-10-08 17:31:28 +0200 |
commit | c274ff15c3daa526f567c4cb6e500b9a50214db6 (patch) | |
tree | 0220880e5a35edae43850903fba3173761094094 /eclass | |
parent | preserve-libs.eclass: drop support for EAPI 5 and 6 (diff) | |
download | gentoo-c274ff15c3daa526f567c4cb6e500b9a50214db6.tar.gz gentoo-c274ff15c3daa526f567c4cb6e500b9a50214db6.tar.bz2 gentoo-c274ff15c3daa526f567c4cb6e500b9a50214db6.zip |
python-r1.eclass: drop support for EAPI 6
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-r1.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index adf87c2c52f7..28daaed1b463 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -30,14 +30,14 @@ # For more information, please see the Python Guide: # https://projects.gentoo.org/python/guide/ +if [[ -z ${_PYTHON_R1_ECLASS} ]]; then +_PYTHON_R1_ECLASS=1 + case ${EAPI} in 7|8) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -if [[ -z ${_PYTHON_R1_ECLASS} ]]; then -_PYTHON_R1_ECLASS=1 - if [[ ${_PYTHON_SINGLE_R1_ECLASS} ]]; then die 'python-r1.eclass can not be used with python-single-r1.eclass.' elif [[ ${_PYTHON_ANY_R1_ECLASS} ]]; then @@ -789,7 +789,7 @@ python_replicate_script() { ) python_fix_shebang -q \ - "${files[@]/*\//${D%/}/${PYTHON_SCRIPTDIR}/}" + "${files[@]/*\//${D}${PYTHON_SCRIPTDIR}/}" } local files=( "${@}" ) |