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

python.versions     27 38 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  636286c42c1a8a9473a1b97da346d6dd88b19e0b \
                    sha256  2ae2471477cfd02dbbf038d5d9bc226d40def84b4fe2986e49b59b6b472bbed2 \
                    size    357086

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
}
