# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-reportlab
version             4.4.6
revision            0
categories-append   textproc
license             BSD
platforms           {darwin any}
supported_archs     noarch

python.versions     310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         Engine for creating PDF documents

long_description    The ReportLab Toolkit is a library for programatically \
                    creating documents in PDF format.

homepage            https://www.reportlab.com/software/opensource/rl-toolkit/

checksums           rmd160  585f32e1cfd9d172bd24d600c7a3f3995165cb69 \
                    sha256  8792c87c23dd034d17530e6ebe4164d61bcc8f7b0eac203fe13cc03cc2c1c607 \
                    size    3910805

if {${name} ne ${subport}} {
    depends_lib-append  path:${python.pkgd}/PIL:py${python.version}-Pillow \
                        port:py${python.version}-chardet

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.txt CHANGES.md \
            ${destroot}${docdir}
    }
}
