mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
60 lines
1.5 KiB
Bash
60 lines
1.5 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://github.com/hukkin/tomli"
|
|
COPYRIGHT="2021 Taneli Hukkinen"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="5"
|
|
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_VERSIONS=(3.9 3.10)
|
|
|
|
for i in "${!PYTHON_VERSIONS[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_${pythonPackage}=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
BUILD_PREREQUIRES+="
|
|
installer_$pythonPackage
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for i in "${!PYTHON_VERSIONS[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
python=python$pythonVersion
|
|
|
|
$python -m installer -p $prefix tomli-2.0.1-py3-none-any.whl
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|