# -*- 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.3.1
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  3df4f17513ae8bb9545b4ec79f08cf784ba46e9a \
                    sha256  c0a57bacb5f53b1a0db2321fe37d350c45195cbee16d84741fb97ae8dcd0a702 \
                    size    1377499

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
}
