Files
haikuports/dev-python/reportlab/reportlab-4.4.4.recipe
2025-09-30 08:22:15 +00:00

64 lines
1.9 KiB
Bash

SUMMARY="An open source Python library for generating PDFs and graphics"
DESCRIPTION="ReportLab is a software library that lets you directly create documents in Adobe's \
Portable Document Format (PDF) using the Python programming language. It also creates charts and \
data graphics in various bitmap and vector formats as well as PDF.
The ReportLab library directly creates PDF documents based on your graphics commands with no \
intervening steps. This means your applications can generate reports extremely quickly compared \
to other approaches such as scripting GUI PDF authoring tools."
HOMEPAGE="https://www.reportlab.com/"
COPYRIGHT="2000-2025 ReportLab Inc."
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="https://files.pythonhosted.org/packages/py3/${portName:0:1}/$portName/$portName-$portVersion-py3-none-any.whl#noarchive"
CHECKSUM_SHA256="299b3b0534e7202bb94ed2ddcd7179b818dcda7de9d8518a57c85a58a1ebaadb"
ARCHITECTURES="any"
PROVIDES="$portName = $portVersion"
REQUIRES="haiku"
BUILD_REQUIRES="haiku_devel"
# Add more versions here if necessary:
PYTHON_VERSIONS=(3.10)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
$REQUIRES
chardet_$pythonPackage
pillow_$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
# This package was not "any" before:
if [ "$targetArchitecture" = x86_gcc2 ]; then
REPLACES_python310="reportlab_x86_python310"
fi
INSTALL()
{
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
$python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}