# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        readthedocs recommonmark 0.7.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-${github.project}
categories-append   textproc
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         Enables writing CommonMark inside of Docutils & Sphinx projects.
long_description    {*}${description}

checksums           sha256  67957ffbbfb05c13f49c1a480b6b7e4b0b148ab70d07b8c20359a188fdb2d532 \
                    rmd160  2816fc6c3963b0aa4c4c014613e13537b062869a \
                    size    24705

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-commonmark \
                    port:py${python.version}-docutils \
                    port:py${python.version}-sphinx

    test.run        yes
}
