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

categories-append   sysutils
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         The ultimate statusline/prompt utility
long_description    Powerline is a statusline plugin for vim, and provides \
                    statuslines and prompts for several other applications, \
                    including zsh, bash, tmux, IPython, Awesome and Qtile.

checksums           rmd160  a1336743993d5ff36b53d26f6dbb8ab02c76ef86 \
                    sha256  312edf37eb95484dcf9d4e959e9b451ceaa4b97e5a1773855437838d11c4d69f \
                    size    369148

python.versions     39 310 311 312 313
python.link_binaries_suffix

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} CONTRIBUTING.rst LICENSE \
           README.rst  ${destroot}${docdir}
        xinstall -d ${destroot}${prefix}/share/${github.project}
        ln -s ${python.pkgd}/${github.project}/bindings ${destroot}${prefix}/share/${github.project}/
    }
}