From 2605704317636a575842f95fa1cdd90d8cd1adb6 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 17:36:12 -0300 Subject: [PATCH] imagesize: drop Python 3.9 support. Only user on-tree (sphinx) is already 3.10 only. --- dev-python/imagesize/imagesize-1.4.1.recipe | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/dev-python/imagesize/imagesize-1.4.1.recipe b/dev-python/imagesize/imagesize-1.4.1.recipe index 0d687150b..325435a77 100644 --- a/dev-python/imagesize/imagesize-1.4.1.recipe +++ b/dev-python/imagesize/imagesize-1.4.1.recipe @@ -4,7 +4,7 @@ image headers and returns image size." HOMEPAGE="https://github.com/shibukawa/imagesize_py" COPYRIGHT="2016 Yoshiki Shibukawa" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/shibukawa/imagesize_py/archive/$portVersion.tar.gz" CHECKSUM_SHA256="c353adbba9d9e92fc880ff85279c362a9d4fc580c4783d1949e905200cb8b15b" SOURCE_DIR="imagesize_py-$portVersion" @@ -22,11 +22,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 @@ -48,9 +47,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/