mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
SUMMARY="Low-level CSS parser and generator"
|
||
DESCRIPTION="tinycss2 is a low-level CSS parser and generator written in Python: \
|
||
it can parse strings, return objects representing tokens and blocks, and \
|
||
generate CSS strings corresponding to these objects.
|
||
Based on the CSS Syntax Level 3 specification, tinycss2 knows the grammar of CSS \
|
||
but doesn’t know specific rules, properties or values supported in various CSS modules."
|
||
HOMEPAGE="https://www.courtbouillon.org/tinycss2/"
|
||
COPYRIGHT="2013-2025, Kozea"
|
||
LICENSE="BSD (3-clause)"
|
||
REVISION="1"
|
||
SOURCE_URI="https://github.com/Kozea/tinycss2/archive/refs/tags/v$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="c8f0ea1b2bf55ceb5db60a5b4d7c151b584aade43353d2a44e8e55459ea735f4"
|
||
SOURCE_DIR="tinycss2-$portVersion"
|
||
|
||
ARCHITECTURES="any"
|
||
|
||
PROVIDES="
|
||
$portName = $portVersion
|
||
"
|
||
REQUIRES="
|
||
haiku
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku_devel
|
||
"
|
||
|
||
PYTHON_VERSIONS=(3.10)
|
||
defaultVersion=3.10
|
||
defaultTestVersion=$defaultVersion
|
||
|
||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||
pythonPackage=python${pythonVersion//.}
|
||
|
||
eval "PROVIDES_$pythonPackage=\"
|
||
${portName}_$pythonPackage = $portVersion
|
||
\""
|
||
|
||
eval "REQUIRES_$pythonPackage=\"
|
||
haiku
|
||
packaging_$pythonPackage
|
||
webencodings_$pythonPackage
|
||
cmd:python$pythonVersion
|
||
\""
|
||
|
||
BUILD_REQUIRES+="
|
||
build_$pythonPackage
|
||
flit_core_$pythonPackage
|
||
installer_$pythonPackage
|
||
"
|
||
BUILD_PREREQUIRES+="
|
||
cmd:python$pythonVersion
|
||
"
|
||
done
|
||
|
||
INSTALL()
|
||
{
|
||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||
pythonPackage=python${pythonVersion//.}
|
||
|
||
python=python$pythonVersion
|
||
|
||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||
$python -m installer -p $prefix dist/*.whl
|
||
|
||
packageEntries $pythonPackage \
|
||
$prefix/lib/python*
|
||
done
|
||
}
|