mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
64 lines
1.8 KiB
Bash
64 lines
1.8 KiB
Bash
SUMMARY="A lil' TOML parser"
|
|
DESCRIPTION="A version of Tomli, the new tomllib module, will be added to the standard library in \
|
|
Python 3.11 via PEP 680.
|
|
Tomli continues to provide a backport on PyPI for Python versions where the standard library \
|
|
module is not available and that have not yet reached their end-of-life."
|
|
HOMEPAGE="https://pypi.org/project/gitdb/"
|
|
COPYRIGHT="2021 Taneli Hukkinen"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
pypiVersion="97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/tomli-2.0.1-py3-none-any.whl#noarchive"
|
|
CHECKSUM_SHA256='939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc'
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_PACKAGES=(python3 python38 python39 python310)
|
|
PYTHON_VERSIONS=(3.7 3.8 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\n\
|
|
cmd:python$pythonVersion\
|
|
\""
|
|
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
|
installer_$pythonPackage
|
|
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 -m installer -p $prefix tomli-2.0.1-py3-none-any.whl
|
|
|
|
mv $installLocation/../site-packages/* $installLocation
|
|
rm -rf $installLocation/../site-packages
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|