From eaefde729a22a351c3d3dc3bdd4b8f5877b87803 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 18:27:11 -0300 Subject: [PATCH] pygments: drop Python 3.9 support. All on-tree users (calibre, gtk_doc, icecream, prompt_toolkit, retext, sphinx, and xonsh) of this package are 3.10 only already. --- dev-python/pygments/pygments-2.14.0.recipe | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dev-python/pygments/pygments-2.14.0.recipe b/dev-python/pygments/pygments-2.14.0.recipe index 938d23f63..977eb1a9a 100644 --- a/dev-python/pygments/pygments-2.14.0.recipe +++ b/dev-python/pygments/pygments-2.14.0.recipe @@ -14,7 +14,7 @@ ANSI sequences HOMEPAGE="https://pygments.org/" COPYRIGHT="2006-2023 by the Pygments team" LICENSE="BSD (2-clause)" -REVISION="4" +REVISION="5" SOURCE_URI="https://pypi.org/packages/source/P/Pygments/Pygments-$portVersion.tar.gz" CHECKSUM_SHA256="b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297" SOURCE_DIR="Pygments-$portVersion" @@ -33,15 +33,14 @@ BUILD_REQUIRES=" " # Add more versions here as necessary: -PYTHON_VERSIONS=(3.9 3.10) +PYTHON_VERSIONS=(3.10) # And don't forget to change this if the default Python version on Haiku changes: defaultVersion=3.10 -for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} +for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} - eval "PROVIDES_${pythonPackage}=\" + eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion cmd:pygmentize_$pythonVersion = $portVersion \"" @@ -67,8 +66,7 @@ done INSTALL() { - for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} + for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} python=python$pythonVersion