# -*- 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             2.0.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  60a5fb69f0d77eef30311ad1f72de7cf5c617b89 \
                    sha256  ab9c8f1080391e231812d20abf2657a69ee35574563b1014414f953964a95fa3 \
                    size    6411

python.versions     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
}
