feedparser: drop Python 3.9 support.

Only users on-tree (calibre, feedgator) are already 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 17:20:51 -03:00
committed by OscarL
parent 8381c11b11
commit 87cfc18e8d

View File

@@ -6,7 +6,7 @@ HOMEPAGE="https://github.com/kurtmckee/feedparser
COPYRIGHT="2010-2022 Kurt McKee
2002-2008 Mark Pilgrim"
LICENSE="BSD (2-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/kurtmckee/feedparser/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="c89b23fbbfafb786a0984eed6b009e6e7aa65b9713ccd069aef474c253453685"
@@ -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=\"
@@ -47,9 +46,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/
@@ -61,7 +59,7 @@ INSTALL()
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
packageEntries $pythonPackage \
$prefix/lib/python*
done
}