mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
83 lines
2.3 KiB
Bash
83 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="5"
|
|
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_VERSIONS=(3.10)
|
|
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
eval "PROVIDES_$pythonPackage+=\"
|
|
reportlab_$pythonPackage = $portVersion
|
|
\""
|
|
fi
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
lib:libfreetype$secondaryArchSuffix
|
|
\""
|
|
BUILD_REQUIRES+="
|
|
setuptools_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
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
|
|
}
|