# -*- 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        hartwork git-delete-merged-branches 7.6.0
github.tarball_from archive
revision            0
name                py-git-delete-merged-branches

categories-append   devel
license             GPL-3
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Command-line tool to delete merged Git branches
long_description    {*}${description}

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  e563ca8da34e4d0e6d8d9ea5cd283df7d92e6862 \
                    sha256  1cd688c85cf6eb0c00eaaaa6a743899157fe5cfb5c2e3f5491d4d59e159e2da6 \
                    size    37882

python.versions     310 311 312 313 314
python.link_binaries_suffix

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-prompt_toolkit \
                    port:py${python.version}-colorama \
                    port:py${python.version}-wcwidth

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