From 75e614d685dd183646207651e44bd3af0a8ed67f Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 18:23:03 -0300 Subject: [PATCH] pycryptodome(x): drop Python 3.9 support. Nothing uses them on-tree at the moment. Leaving them in because we might need them for yt-dlp at some point. --- .../pycryptodome/pycryptodome-3.17.recipe | 19 +++++++++---------- .../pycryptodome/pycryptodomex-3.17.recipe | 19 +++++++++---------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/dev-python/pycryptodome/pycryptodome-3.17.recipe b/dev-python/pycryptodome/pycryptodome-3.17.recipe index 7d4e3775e..c15ce46b9 100644 --- a/dev-python/pycryptodome/pycryptodome-3.17.recipe +++ b/dev-python/pycryptodome/pycryptodome-3.17.recipe @@ -14,7 +14,7 @@ LICENSE="BSD (2-clause) Public Domain Unlicense " -REVISION="2" +REVISION="3" SOURCE_URI="https://pypi.python.org/packages/source/p/pycryptodome/pycryptodome-$portVersion.tar.gz" CHECKSUM_SHA256="bce2e2d8e82fcf972005652371a3e8731956a0c1fbb719cc897943b3695ad91b" SOURCE_FILENAME="pycryptodome-$portVersion.tar.gz" @@ -35,13 +35,12 @@ BUILD_REQUIRES=" devel:libgmp$secondaryArchSuffix " -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 \"" if [ "$targetArchitecture" = x86_gcc2 ]; then @@ -72,13 +71,13 @@ TEST_REQUIRES=" 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/ export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation rm -rf build diff --git a/dev-python/pycryptodome/pycryptodomex-3.17.recipe b/dev-python/pycryptodome/pycryptodomex-3.17.recipe index 4f57a9b19..e3d9ec303 100644 --- a/dev-python/pycryptodome/pycryptodomex-3.17.recipe +++ b/dev-python/pycryptodome/pycryptodomex-3.17.recipe @@ -13,7 +13,7 @@ LICENSE="BSD (2-clause) Public Domain Unlicense " -REVISION="2" +REVISION="3" SOURCE_URI="https://pypi.python.org/packages/source/p/pycryptodome/pycryptodome-$portVersion.tar.gz" CHECKSUM_SHA256="bce2e2d8e82fcf972005652371a3e8731956a0c1fbb719cc897943b3695ad91b" SOURCE_FILENAME="pycryptodome-$portVersion.tar.gz" @@ -34,13 +34,12 @@ BUILD_REQUIRES=" devel:libgmp$secondaryArchSuffix " -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 \"" if [ "$targetArchitecture" = x86_gcc2 ]; then @@ -66,13 +65,13 @@ TEST_REQUIRES=" 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/ export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation rm -rf build