From c22b399298f0940e0268c53bfa4946ea64104c5f Mon Sep 17 00:00:00 2001 From: OscarL Date: Thu, 14 Nov 2024 03:59:28 -0300 Subject: [PATCH] gitpython: minor cleanups, drop 3.9 package. (#11335) Only on-tree user of this package (gertty) is 3.10 only already. --- dev-python/gitpython/gitpython-3.1.40.recipe | 23 +++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/dev-python/gitpython/gitpython-3.1.40.recipe b/dev-python/gitpython/gitpython-3.1.40.recipe index cfeef0d30..d938c3870 100644 --- a/dev-python/gitpython/gitpython-3.1.40.recipe +++ b/dev-python/gitpython/gitpython-3.1.40.recipe @@ -3,7 +3,7 @@ DESCRIPTION="Python library used to interact with Git repositories." HOMEPAGE="https://pypi.org/project/GitPython/" COPYRIGHT="2010-2018 Sebastian Thiel, Michael Trier" LICENSE="BSD (3-clause)" -REVISION="2" +REVISION="3" SOURCE_URI="https://pypi.org/packages/source/G/GitPython/GitPython-$portVersion.tar.gz" SOURCE_DIR="GitPython-$portVersion" CHECKSUM_SHA256="22b126e9ffb671fdd0c129796343a02bf67bf2994b35449ffc9321aa755e18a4" @@ -25,11 +25,12 @@ TEST_REQUIRES=" cmd:pytest " -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} +PYTHON_VERSIONS=(3.10) + +for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} + pythonPackage=python${pythonVersion//.} + eval "PROVIDES_${pythonPackage}=\" ${portName}_$pythonPackage = $portVersion \"" @@ -38,29 +39,31 @@ for i in "${!PYTHON_PACKAGES[@]}"; do gitdb_$pythonPackage cmd:python$pythonVersion \"" - BUILD_REQUIRES="$BUILD_REQUIRES + BUILD_REQUIRES+=" setuptools_$pythonPackage " - BUILD_PREREQUIRES="$BUILD_PREREQUIRES + BUILD_PREREQUIRES+=" cmd:python$pythonVersion " done INSTALL() { - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} + for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} + 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 }