webencodings: drop Python 3.9 support.

On-tree users (html5lib, tinycss2) already target 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 19:34:13 -03:00
committed by OscarL
parent 03e0c51605
commit a6ada8ac69

View File

@@ -9,7 +9,7 @@ so that implementations do not have to reverse-engineer each other."
HOMEPAGE="https://github.com/gsnedders/python-webencodings"
COPYRIGHT="2012 Simon Sapin"
LICENSE="BSD (3-clause)"
REVISION="6"
REVISION="7"
SOURCE_URI="https://github.com/gsnedders/python-webencodings/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="082367f568a7812aa5f6922ffe3d9d027cd83829dc32bcaac4c874eeed618000"
SOURCE_DIR="python-webencodings-$portVersion"
@@ -27,13 +27,12 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
eval "PROVIDES_${pythonPackage}=\"
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
@@ -50,9 +49,8 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/