# -*- 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        dbtsai python-mimeparse 1.6.0
name                py-mimeparse
revision            0

categories-append   www
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Basic functions for handling mimetypes in Python
long_description    ${description}

checksums           rmd160  debf524d7d57e79704802f9e10c887ed2a0e6d4c \
                    sha256  69c10c1cfb7eeaa0a2adcaa6e4d2e9872add2b69141e8c9e1c482b1cdd2e3a48 \
                    size    6474

python.versions     27 35 36 37 38 39

if {${subport} ne ${name}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    test.run        yes
    test.cmd        ${python.bin} mimeparse_test.py
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst \
            LICENSE ${destroot}${docdir}
    }

    livecheck.type  none
}
