# -*- 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-sphinxcontrib-svg2pdfconverter
version             1.3.0
revision            0

categories-append   textproc devel
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         sphinx extension that converts svg graphics files
long_description    ${name} is a {*}${description}.

homepage            https://sphinx-doc.org/

distname            sphinxcontrib_svg2pdfconverter-${version}

checksums           rmd160  e01b3753b6332e2777b4d6d3daf8190a6cfd5b65 \
                    sha256  6411a4cc2f57eed96a0d7bbfa139f68cbe7983018881e1e6d7c46053cd69911f \
                    size    6209

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    # can use inkscape, librsvg, or cairosvg to do the image conversion
    depends_run-append  path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
                        port:py${python.version}-sphinx
}
