# -*- 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-markdown-it-py
version             4.0.0
revision            0

categories-append   textproc
maintainers         nomaintainer
license             MIT
supported_archs     noarch
platforms           {darwin any}

description         Python port of markdown-it
long_description    {*}${description}. Markdown parser done right.

homepage            https://github.com/executablebooks/markdown-it-py

distname            markdown_it_py-${version}

checksums           rmd160  3a6260c65fa8a35d2ed626f55de299d16a9ff41c \
                    sha256  cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3 \
                    size    73070

python.versions     39 310 311 312 313 314
python.pep517_backend   flit

if {${name} ne ${subport}} {
    if {${python.version} == 39} {
        version     3.0.0
        revision    0
        distname    markdown-it-py-${version}
        checksums   rmd160  2fe5b5a4d114b5097b8e0f60598f26c9dcff68d8 \
                    sha256  e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb \
                    size    74596
    }

    depends_lib-append \
                    port:py${python.version}-linkify-it-py \
                    port:py${python.version}-mdit-py-plugins \
                    port:py${python.version}-mdurl
}
