# -*- 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             10.2.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}
homepage            https://github.com/pikepdf/pikepdf

python.versions     310 311 312 313 314

checksums           rmd160  c220b5a5a1fff53907931c980302cc30e31a1cd9 \
                    sha256  0f398b0daeb2ffd2358f75c06f1dd47b9ba76f1a77dfe938cccf7080c58227d7 \
                    size    4568506

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

    depends_lib-append  \
                    port:py${python.version}-deprecated \
                    port:py${python.version}-lxml \
                    port:py${python.version}-packaging \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-pybind11 \
                    port:qpdf

    compiler.cxx_standard \
                    2017
    # error: no matching constructor for initialization of 'match_replace'
    compiler.blacklist-append {clang < 900}
}
