From 87cfc18e8d6ecd5a57259017222ae81a709666ce Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 17:20:51 -0300 Subject: [PATCH] feedparser: drop Python 3.9 support. Only users on-tree (calibre, feedgator) are already 3.10 only. --- .../feedparser/feedparser-6.0.10.recipe | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/dev-python/feedparser/feedparser-6.0.10.recipe b/dev-python/feedparser/feedparser-6.0.10.recipe index 5dd1905b1..2101e507c 100644 --- a/dev-python/feedparser/feedparser-6.0.10.recipe +++ b/dev-python/feedparser/feedparser-6.0.10.recipe @@ -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 }