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

github.setup        nickstenning honcho 1.1.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

name                py-honcho
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Python clone of Foreman (managing Procfile-based applications)
long_description    {*}${description}

checksums           rmd160  b94d683c5785e57e90fe0bb8a053581f86c4c662 \
                    sha256  97878df3329af5bc91a930112d00626eeb2bbde0886577c3b367faa32b7b9249 \
                    size    39693

python.versions     310

if {${name} ne ${subport}} {
    depends_lib-append port:py${python.version}-jinja2

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

    depends_run-append \
                    port:honcho_select

    depends_test-append port:py${python.version}-pytest-mock

    # 17/133 failures
    test.run        yes

    select.group   ${python.rootname}
    select.file    ${filespath}/${python.rootname}${python.version}
}
