mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
75 lines
2.3 KiB
Bash
75 lines
2.3 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://pypi.org/project/reportlab/
|
|
https://www.reportlab.com/"
|
|
COPYRIGHT="2000-2021 ReportLab Europe Ltd."
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
pypi="81ff7e3f9fd345cd4685f964fbc3d89a06f39a4f552ab1c2a5769a0f9013"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/16/31/$pypi/reportlab-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="5d0cc3682456ad213150f6dbffe7d47eab737d809e517c316103376be548fb84"
|
|
SOURCE_DIR="reportlab-$portVersion"
|
|
PATCHES="reportlab-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfreetype$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:git
|
|
"
|
|
|
|
PYTHON_PACKAGES=(python3 python38 python39 python310)
|
|
PYTHON_VERSIONS=(3.7 3.8 3.9 3.10)
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
eval "PROVIDES_${pythonPackage}=\"\
|
|
${portName}_$pythonPackage = $portVersion\
|
|
\"; \
|
|
REQUIRES_$pythonPackage=\"\
|
|
haiku\n\
|
|
cmd:python$pythonVersion\n\
|
|
lib:libfreetype$secondaryArchSuffix\n\
|
|
\""
|
|
BUILD_REQUIRES="$BUILD_REQUIRES
|
|
setuptools_$pythonPackage"
|
|
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
|
cmd:python$pythonVersion"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
|
|
python=python$pythonVersion
|
|
installLocation=$prefix/lib/$python/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
mkdir -p $installLocation
|
|
rm -rf build
|
|
$python setup.py build install \
|
|
--root=/ --prefix=$prefix
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|