From 8c454ad3a9fd025e9f2bdc5a9ffbb3d94db5ed85 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sat, 20 Sep 2025 00:20:15 -0300 Subject: [PATCH] ifaddr: drop Python 3.9 support. Only on-tree user (pythonzeroconf) already targets 3.10 only. --- dev-python/ifaddr/ifaddr-0.2.0.recipe | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/dev-python/ifaddr/ifaddr-0.2.0.recipe b/dev-python/ifaddr/ifaddr-0.2.0.recipe index 57106fdcb..02e7d2a33 100644 --- a/dev-python/ifaddr/ifaddr-0.2.0.recipe +++ b/dev-python/ifaddr/ifaddr-0.2.0.recipe @@ -4,7 +4,7 @@ the IP addresses of the computer." HOMEPAGE="https://github.com/pydron/ifaddr/" COPYRIGHT="2014 Stefan C. Mueller" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/pydron/ifaddr/archive/$portVersion.tar.gz" CHECKSUM_SHA256="bc70dbcad66c25c8c13e037585b43765c1ea82da629708b13de542cb9872c0c7" PATCHES="ifaddr-$portVersion.patchset" @@ -21,11 +21,10 @@ 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) + +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion @@ -44,9 +43,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/