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

python.versions     27 39 310 311 312 313 314

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  e2762338cd138e5ba48831c5a9ace0358db93d1b \
                    sha256  37062d4f2aa4b2b6b32aefb80faa300f82cc790cb949a35b8caede34f2b68c0e \
                    size    364931

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
    } elseif {${python.version} == 39} {
        version             3.9
        revision            0
        checksums           rmd160  dea054672a5c9d4f961e006acae567aa51159443 \
                            sha256  d2900fe1782bd33bdbbd56859defef70c2e78fc46668f8eb9df3128138f2cb6a \
                            size    364585
        depends_lib-append  port:py${python.version}-importlib-metadata
    }

    livecheck.type      none
}
