From 3e88ff900ecdbeb137d086b936dec5d7156c5e9a Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 19:11:31 -0300 Subject: [PATCH] reportlab: drop Python 3.9 support. Only user on-tree (rst2pdf) already targets 3.10 only. --- dev-python/reportlab/reportlab-3.6.9.recipe | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/dev-python/reportlab/reportlab-3.6.9.recipe b/dev-python/reportlab/reportlab-3.6.9.recipe index 1908e4e80..859d90667 100644 --- a/dev-python/reportlab/reportlab-3.6.9.recipe +++ b/dev-python/reportlab/reportlab-3.6.9.recipe @@ -9,7 +9,7 @@ HOMEPAGE="https://pypi.org/project/reportlab/ https://www.reportlab.com/" COPYRIGHT="2000-2021 ReportLab Europe Ltd." LICENSE="BSD (3-clause)" -REVISION="4" +REVISION="5" pypi="81ff7e3f9fd345cd4685f964fbc3d89a06f39a4f552ab1c2a5769a0f9013" SOURCE_URI="https://files.pythonhosted.org/packages/16/31/$pypi/reportlab-$portVersion.tar.gz" CHECKSUM_SHA256="5d0cc3682456ad213150f6dbffe7d47eab737d809e517c316103376be548fb84" @@ -35,13 +35,12 @@ BUILD_PREREQUIRES=" cmd:git " -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 @@ -64,19 +63,20 @@ 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/ export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation rm -rf build + $python setup.py build install \ --root=/ --prefix=$prefix - packageEntries $pythonPackage \ + packageEntries $pythonPackage \ $prefix/lib/python* done }