mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
* python3.8: bulk removal of now obsolete "_python38" packages. Done via scripting. No functional change intended or expected. Some manual tweaks will follow. * python3.8: further manual tweaks after bulk-3.8-removal. Unlike the previous commit with automated changes, I've tested builds for *these* recipes in beta4 64 bits.
73 lines
1.8 KiB
Bash
73 lines
1.8 KiB
Bash
SUMMARY="Python bindings for the Enchant spellchecker"
|
|
DESCRIPTION="This package provides a set of Python language \
|
|
bindings for the Enchant spellchecking library. For more \
|
|
information, visit the project website."
|
|
HOMEPAGE="http://pyenchant.github.io/pyenchant/"
|
|
COPYRIGHT="2020 Dimitri Merejkowsky"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/pyenchant/pyenchant/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="dd107d7a51b77277d7605dd6df113e818efe9c7ac10ea03aadf65055edef1c04"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
pyenchant$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
PYTHON_PACKAGES=(python39 python310)
|
|
PYTHON_VERSIONS=(3.9 3.10)
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
eval "PROVIDES_${pythonPackage}=\"\
|
|
${portName}_$pythonPackage = $portVersion\
|
|
\"; \
|
|
REQUIRES_$pythonPackage=\"\
|
|
haiku$secondaryArchSuffix\n\
|
|
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
|
|
|
|
|
|
INSTALL()
|
|
{
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
|
|
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 \
|
|
$prefix/lib/python*
|
|
|
|
done
|
|
}
|