Drop python 3.7 (and 2.7) for recipes under dev-python/

Recipes with only 3.7 are left alone. Help with #8025.
This commit is contained in:
Jérôme Duval
2023-03-23 21:18:44 +01:00
parent e5cad96650
commit df145a169a
138 changed files with 435 additions and 553 deletions

View File

@@ -14,7 +14,7 @@ ANSI sequences
HOMEPAGE="https://pygments.org/"
COPYRIGHT="2006-2022 by the Pygments team"
LICENSE="BSD (2-clause)"
REVISION="2"
REVISION="3"
SOURCE_URI="https://pypi.org/packages/source/P/Pygments/Pygments-$portVersion.tar.gz"
CHECKSUM_SHA256="4e426f72023d88d03b2fa258de560726ce890ff3b630f88c21cbb8b2503b8c6a"
SOURCE_DIR="Pygments-$portVersion"
@@ -32,8 +32,8 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3 python38 python39 python310)
PYTHON_VERSIONS=(2.7 3.7 3.8 3.9 3.10)
PYTHON_PACKAGES=(python38 python39 python310)
PYTHON_VERSIONS=(3.8 3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
@@ -50,17 +50,11 @@ BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:pygmentize = $portVersion
"
PROVIDES_python3="$PROVIDES_python3
cmd:pygmentize3 = $portVersion
"
PROVIDES_python38="$PROVIDES_python38
cmd:pygmentize3.8 = $portVersion
"
PROVIDES_python39="$PROVIDES_python39
cmd:pygmentize3.9 = $portVersion
cmd:pygmentize = $portVersion
"
INSTALL()
@@ -77,15 +71,9 @@ INSTALL()
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage = python3 ]; then
mv $binDir/pygmentize $binDir/pygmentize3
fi
if [ $pythonPackage = python38 ]; then
mv $binDir/pygmentize $binDir/pygmentize3.8
fi
if [ $pythonPackage = python39 ]; then
mv $binDir/pygmentize $binDir/pygmentize3.9
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir