css_parser: drop Python 3.9 support.

Only user on-tree (calibre) is already 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 16:40:27 -03:00
committed by OscarL
parent 7695e7953f
commit f9f8ffd768

View File

@@ -5,7 +5,7 @@ working with ebooks."
HOMEPAGE="https://github.com/ebook-utils/css-parser"
COPYRIGHT="2004-2013 Christof Hoeke"
LICENSE="GNU LGPL v3"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/ebook-utils/css-parser/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="45230ee0e71088816bba910d888b6cf0808f359549237e5e0851306c2feb0cc3"
SOURCE_DIR="css-parser-$portVersion"
@@ -23,13 +23,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=\"
@@ -46,9 +45,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/