# -*- 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        i0ntempest powerline-exitstatus-kai 1.2.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
name                py-powerline-exitstatus-kai

categories-append   sysutils
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer
supported_archs     noarch
platforms           {darwin any}

description         A Powerline segment for showing exit status or code
long_description    {*}${description}. Modified from Powerline Exitstatus.

checksums           rmd160  191a614b055274ac74f6c63ebbf006c6fed84174 \
                    sha256  5a23c3c1bda1ade944c9aa670412b8f8a050498f841901925f09e4540c80168d \
                    size    10145

python.versions     310 311 312 313

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

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