# -*- 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-svglib
version             2.2.0
revision            0

license             LGPL-3
maintainers         {mps @Schamschula} openmaintainer
description         A pure-Python library for reading and converting SVG
long_description    {*}${description}
homepage            https://github.com/deeplook/svglib

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  7fdff4e167893cb78226f941e6fb8adac5c5e8a5 \
                    sha256  bde5c5f9b0e091f1e210b8aafdda07a49bd8ebf21c0e90d67383a665c83597ac \
                    size    1373629

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:py${python.version}-cssselect2 \
                    port:py${python.version}-lxml \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-reportlab \
                    port:py${python.version}-rlpycairo \
                    port:py${python.version}-tinycss2
}
