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

@@ -3,7 +3,7 @@ DESCRIPTION="Python module for character encoding auto-detection."
HOMEPAGE="https://github.com/chardet/chardet"
COPYRIGHT="2011-2022 Mark Pilgrim, Dan Blanchard"
LICENSE="GNU LGPL v2.1"
REVISION="2"
REVISION="3"
SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/${portName}-$portVersion.tar.gz"
CHECKSUM_SHA256="0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"
@@ -20,8 +20,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]}
@@ -38,17 +38,14 @@ BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:chardetect
"
PROVIDES_python3="$PROVIDES_python3
cmd:chardetect3
"
PROVIDES_python38="$PROVIDES_python38
cmd:chardetect3.8
"
PROVIDES_python39="$PROVIDES_python39
cmd:chardetect3.9
cmd:chardetect
"
PROVIDES_python310="$PROVIDES_python310
cmd:chardetect3.10
"
INSTALL()
@@ -65,21 +62,15 @@ INSTALL()
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage = python3 ]; then
for f in $binDir/*; do
mv $f ${f}3
done
fi
if [ $pythonPackage = python38 ]; then
for f in $binDir/*; do
mv $f ${f}3.8
done
fi
if [ $pythonPackage = python39 ]; then
if [ $pythonPackage = python310 ]; then
for f in $binDir/*; do
mv $f ${f}3.9
mv $f ${f}3.10
done
fi