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.
This commit is contained in:
Oscar Lesta
2025-09-19 18:27:11 -03:00
committed by OscarL
parent 75e614d685
commit eaefde729a

View File

@@ -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