# -*- 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

github.setup            bobthecow git-flow-completion 1.1.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball

name                    git-flow-bash-completion
categories              devel
maintainers             nomaintainer
license                 MIT

description             Bash completion support for git-flow.

long_description        The contained bash completion routines provide \
                        support for completing: \
                        \n\t* git-flow init and version \
                        \n\t* feature, hotfix and release branches \
                        \n\t* remote feature, hotfix and release branch names

platforms               any
supported_archs         noarch

checksums               rmd160  87e41bc4bd494a4426bff0181bda72316cbcec09 \
                        sha256  a79f8a3d4e973e4db9a88723afcbfdae07ae9d8303d4b3ca06d9c78da62c82a1

depends_run-append      port:git-flow \
                        port:bash-completion

use_configure           no

build {}

destroot {
    xinstall -d -m 0755 ${destroot}${prefix}/etc/bash_completion.d
    copy ${worksrcpath}/git-flow-completion.bash ${destroot}${prefix}/etc/bash_completion.d/git-flow
}
