# -*- 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.5.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  f8d81ee60fa2f879f78c2742811912352629d5d2 \
                    sha256  d7c908f6c942ba0b60f494939a80a6f5db35d28f73dffcfbc4ecabc58a2c6394 \
                    size    1416450

python.versions     311 312 313 314 315

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
}
