# -*- 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.1.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  4c7ed2805d26823a0757abdc68b110a25d973ada \
                    sha256  9756e82d5f3bf11629ffcbafb1f8a1092d3bb4789e33494032cdce9a9c8459d3 \
                    size    6805

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
}
