unrardll: drop Python 3.9 support.

Only on-tree user (calibre) already targets 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 19:30:43 -03:00
committed by OscarL
parent f413c38a6e
commit 03e0c51605

View File

@@ -4,7 +4,7 @@ HOMEPAGE="https://github.com/kovidgoyal/unrardll
https://pypi.org/project/unrardll/"
COPYRIGHT="2017 Kovid Goyal"
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/kovidgoyal/unrardll/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ac89d56d1690862b66ee684564c1357e105f9bd8d88d52f9d112c2718bd6f116"
@@ -23,13 +23,12 @@ BUILD_REQUIRES="
devel:libunrar$secondaryArchSuffix
"
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
\""
@@ -58,8 +57,8 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
@@ -68,7 +67,7 @@ INSTALL()
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer --p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
packageEntries $pythonPackage \
"$prefix"/lib/python*
done
}