soupsieve: drop Python 3.9 support.

Only on-tree user (beautifulsoup4) already targets 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 19:25:05 -03:00
committed by OscarL
parent 219ac9bc27
commit 38c7081a15

View File

@@ -7,7 +7,7 @@ and beyond (though some are not yet implemented)."
HOMEPAGE="https://github.com/facelessuser/soupsieve"
COPYRIGHT="2018 Isaac Muse"
LICENSE="MIT"
REVISION="6"
REVISION="7"
SOURCE_URI="https://github.com/facelessuser/soupsieve/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="ba6a129e3e0e8ea5928684fd720f548eec65bc53947d9ac2b264dd2412d5cf55"
SOURCE_FILENAME="$portName-v$portVersion.tar.gz"
@@ -25,13 +25,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=\"
@@ -48,19 +47,20 @@ 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/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
packageEntries $pythonPackage \
$prefix/lib/python*
done
}