html5lib, drop python3.9 (#12657)

This commit is contained in:
Schrijvers Luc
2025-08-04 09:10:56 +02:00
committed by GitHub
parent 8d759e11d8
commit db1c35ee2b

View File

@@ -5,7 +5,7 @@ all major web browsers."
HOMEPAGE="https://github.com/html5lib"
COPYRIGHT="2006-2020 James Graham and other contributors"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/html5lib/html5lib-python/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="66e9e24a53c10c27abb6be8a3cf2cf55824c6ea1cef8570a633cb223ec46e894"
SOURCE_DIR="html5lib-python-$portVersion"
@@ -23,11 +23,10 @@ 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)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
@@ -38,6 +37,7 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
webencodings_$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
@@ -46,12 +46,10 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
"
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/