mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
SUMMARY="Style-preserving TOML library for Python"
|
|
DESCRIPTION="TOML Kit is a 1.0.0-compliant TOML library.
|
|
|
|
It includes a parser that preserves all comments, indentations, whitespace and internal element \
|
|
ordering, and makes them accessible and editable via an intuitive API.
|
|
|
|
You can also create new TOML documents from scratch using the provided helpers.
|
|
|
|
Part of the implementation has been adapted, improved and fixed from Molten."
|
|
HOMEPAGE="https://github.com/python-poetry/tomlkit"
|
|
COPYRIGHT="2018 Sébastien Eustace"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/python-poetry/tomlkit/releases/download/$portVersion/tomlkit-$portVersion-py3-none-any.whl#noarchive"
|
|
CHECKSUM_SHA256="5cd82d48a3dd89dee1f9d64420aa20ae65cfbd00668d6f094d7578a78efbb77b"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_PACKAGES=(python310)
|
|
PYTHON_VERSIONS=(3.10)
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
|
|
eval "PROVIDES_${pythonPackage}=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
|
installer_$pythonPackage
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
|
|
python=python$pythonVersion
|
|
$python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl
|
|
|
|
packageEntries ${PYTHON_PACKAGES[i]} \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|