# -*- 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.0.2
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  cdc5515d4e5e86aeb63ffecd2d156809790b6c37 \
                    sha256  455e473dbe7066eea55c39de8194a6a3b646b6c37a255700257fd32115ddb218 \
                    size    1341040

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
}
