From 71a1db040f697a1154c5418ce985dfdd45bdad28 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 16:46:56 -0300 Subject: [PATCH] discid: drop Python 3.9 support. Only user on-tree (picard) is Python 3.10 only already. --- dev-python/discid/discid-1.2.0.recipe | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/dev-python/discid/discid-1.2.0.recipe b/dev-python/discid/discid-1.2.0.recipe index d884d4670..b2ceb454c 100644 --- a/dev-python/discid/discid-1.2.0.recipe +++ b/dev-python/discid/discid-1.2.0.recipe @@ -3,7 +3,7 @@ DESCRIPTION="Python-discid implements Python bindings for MusicBrainz Libdiscid. HOMEPAGE="https://python-discid.readthedocs.io/" COPYRIGHT="Johannes Dewender" LICENSE="GNU LGPL v2.1" -REVISION="6" +REVISION="7" SOURCE_URI="https://files.pythonhosted.org/packages/source/d/$portName/$portName-$portVersion.tar.gz" CHECKSUM_SHA256="cd9630bc53f5566df92819641040226e290b2047573f2c74a6e92b8eed9e86b9" SOURCE_DIR="discid-$portVersion" @@ -22,13 +22,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=\"$REQUIRES @@ -45,9 +44,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/