# -*- 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.1.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  4482a76c4559c8c54808a7310b4eb02e5462bb8c \
                    sha256  c079bc5fa9e12736b23e7855413320a78afdab54c9492de48ade7bf318187605 \
                    size    1371234

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
}
