# -*- 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
version             3.8.2
revision            0
categories-append   textproc
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     27 39 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         Python implementation of Markdown

long_description    This is a Python implementation of John Gruber’s \
                    Markdown. It is almost completely compliant with \
                    the reference implementation, though there are a \
                    few very minor differences.

homepage            https://python-markdown.github.io/

checksums           rmd160  8c24c081e64dfb3f5a35dd74ec727f6800e647ce \
                    sha256  247b9a70dd12e27f67431ce62523e675b866d254f900c4fe75ce3dda62237c45 \
                    size    362071

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version             3.1.1
        revision            0
        python.rootname     Markdown
        distname            ${python.rootname}-${version}
        checksums           rmd160  770c41f726e57b64e2c27266e6b0cf8b7bf895ab \
                            sha256  2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a \
                            size    294136

        # Uses pkg_resources at runtime
        depends_lib-append  port:py${python.version}-setuptools
    } else {
        if {${python.version} < 310} {
            depends_lib-append  port:py${python.version}-importlib-metadata
        }
    }

    livecheck.type      none
}
