mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
reportlab: update to version 4.4.4. (#12968)
Package is now "any", does not requires patching, and thus we now just repack the .whl file.
This commit is contained in:
63
dev-python/reportlab/reportlab-4.4.4.recipe
Normal file
63
dev-python/reportlab/reportlab-4.4.4.recipe
Normal file
@@ -0,0 +1,63 @@
|
||||
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="1"
|
||||
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_$pythonPackage="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
|
||||
}
|
||||
Reference in New Issue
Block a user