From 976e0c48bc687c5acdf40a6c6a87ef8b97ab59b6 Mon Sep 17 00:00:00 2001 From: OscarL Date: Tue, 28 Mar 2023 06:14:21 -0300 Subject: [PATCH] pyenchant: recipe cleanup, update to 3.2.2, support Python 3.10. (#8142) Move PROVIDES_* inside the loop. --- ...nt-3.2.0.recipe => pyenchant-3.2.2.recipe} | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) rename dev-python/pyenchant/{pyenchant-3.2.0.recipe => pyenchant-3.2.2.recipe} (85%) diff --git a/dev-python/pyenchant/pyenchant-3.2.0.recipe b/dev-python/pyenchant/pyenchant-3.2.2.recipe similarity index 85% rename from dev-python/pyenchant/pyenchant-3.2.0.recipe rename to dev-python/pyenchant/pyenchant-3.2.2.recipe index 28736e294..ba70146de 100644 --- a/dev-python/pyenchant/pyenchant-3.2.0.recipe +++ b/dev-python/pyenchant/pyenchant-3.2.2.recipe @@ -5,9 +5,9 @@ information, visit the project website." HOMEPAGE="http://pyenchant.github.io/pyenchant/" COPYRIGHT="2020 Dimitri Merejkowsky" LICENSE="GNU LGPL v2.1" -REVISION="5" +REVISION="1" SOURCE_URI="https://github.com/pyenchant/pyenchant/archive/v$portVersion.tar.gz" -CHECKSUM_SHA256="3195bfc5cfbdeb8a60f9484390c2c982e59dd220d6f9a5f8418ba67551ead01a" +CHECKSUM_SHA256="dd107d7a51b77277d7605dd6df113e818efe9c7ac10ea03aadf65055edef1c04" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" @@ -23,8 +23,8 @@ BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " -PYTHON_PACKAGES=(python38 python39) -PYTHON_VERSIONS=(3.8 3.9) +PYTHON_PACKAGES=(python38 python39 python310) +PYTHON_VERSIONS=(3.8 3.9 3.10) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} @@ -36,20 +36,17 @@ REQUIRES_$pythonPackage=\"\ cmd:python$pythonVersion\n\ lib:libenchant_2$secondaryArchSuffix\ \"" +if [ "$targetArchitecture" = "x86_gcc2" ]; then + eval "PROVIDES_${pythonPackage}+=\"\n\ + pyenchant_$pythonPackage = $portVersion\ + \"" +fi BUILD_REQUIRES="$BUILD_REQUIRES setuptools_$pythonPackage devel:libenchant_2$secondaryArchSuffix" BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:python$pythonVersion" done -if [ "$targetArchitecture" = "x86_gcc2" ]; then - PROVIDES_python38+=" - pyenchant_python38 = $portVersion - " - PROVIDES_python39+=" - pyenchant_python39 = $portVersion - " -fi INSTALL() @@ -61,8 +58,10 @@ INSTALL() 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