# -*- 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-pikepdf
version             2.11.0
revision            0
categories-append   graphics
license             MPL-2
maintainers         {mps @Schamschula} openmaintainer
description         pikepdf is based on QPDF, a powerful PDF manipulation and repair \
                    library.
long_description    {*}${description}
platforms           darwin

homepage            https://github.com/pikepdf/pikepdf

python.versions     37 38 39

checksums           rmd160  1251b3605cf403494be912ba5792e471d7f18922 \
                    sha256  53bf432be00fcb2f2a56c44b64c1b75e4c8f9fe0dcc97721319c53939fed8047 \
                    size    2391597

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-setuptools_scm_git_archive \
                    port:py${python.version}-toml \
                    port:py${python.version}-wheel

    depends_lib-append  \
                    port:py${python.version}-pybind11 \
                    port:qpdf

    compiler.cxx_standard \
                    2014

    livecheck.type  none
}
