# -*- 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-img2pdf
# keep in sync with graphics/img2pdf
version             0.6.3
revision            0
categories-prepend  graphics
license             LGPL-3
maintainers         {mps @Schamschula} openmaintainer
description         Lossless conversion of raster images to PDF.
long_description    {*}${description}
homepage            https://gitlab.mister-muffin.de/josch/img2pdf

supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

checksums           rmd160  b491ffbf8585931391737640d37a4d3c2f0a2261 \
                    sha256  219518020f5bd242bdc46493941ea3f756f664c2e86f2454721e74353f58cd95 \
                    size    120350

python.pep517_backend \
                    flit

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-pikepdf
}
