# -*- 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-mistune
version             3.1.4
revision            0

categories-append   devel textproc
supported_archs     noarch
platforms           {darwin any}
license             BSD

python.versions     27 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         The fastest markdown parser in pure Python.
long_description    {*}${description}

homepage            https://github.com/lepture/mistune

checksums           rmd160  230788ff345316c3a57bfcc5d6ae11bd9b5fc0bd \
                    sha256  b5a7f801d389f724ec702840c11d8fc48f2b33519102fc7ee739e8177b672164 \
                    size    94588

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     0.8.4
        epoch       2
        revision    0
        checksums   rmd160  b63b71998bac291a54fc94f11700aa806bccb92d \
                    sha256  59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e \
                    size    58322
        depends_build-append \
                    port:py${python.version}-setuptools
    } elseif {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }

    test.run        yes

    livecheck.type  none
}
