pyenchant: recipe cleanup, update to 3.2.2, support Python 3.10. (#8142)

Move PROVIDES_* inside the loop.
This commit is contained in:
OscarL
2023-03-28 06:14:21 -03:00
committed by GitHub
parent 5d21e504b0
commit 976e0c48bc

View File

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