# -*- 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
PortGroup           github 1.0

github.setup        miyakogi m2r 0.2.1 v
name                py-m2r
categories-append   devel
license             MIT
platforms           darwin
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
supported_archs     noarch
installs_libs       no
description         Converts a markdown file including reStructuredText (rst) markups to a valid rst format
long_description    M2R converts a markdown file including reStructuredText (rst) markups to a valid rst format.

checksums           rmd160  a71cedf33366b78544c1f5488d57d879e16b87cd \
                    sha256  5864619db80a3470f2f535bd374d6bdf025806815b203e7e0c809b544106f249 \
                    size    24466

python.versions 27 35 36 37 38

if {${name} ne ${subport}} {

    depends_build-append \
        port:py${python.version}-setuptools

    # uses from "pkg_resources import load_entry_point"
    depends_run-append \
        port:py${python.version}-setuptools

    depends_run-append \
        port:py${python.version}-mistune \
        port:py${python.version}-docutils

    test.run yes

    # avoid downloading these files during testing
    depends_test-append  \
        port:py${python.version}-mock      \
        port:py${python.version}-pygments

    livecheck.type  none
}