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

go.setup            github.com/muesli/gitty 0.7.0 v
revision            0

description         \
    Contextual information about your git projects, right on the command-line

long_description    {*}${description}

categories          devel
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  ebba05f9b549798e4fa97d255a214506c4a004d9 \
                    sha256  cea3f7fa92653abd18ce951f24c64321edab8d8da9340f764c25cbfe8eba36ef \
                    size    312233

# Allow Go to fetch deps at build time
go.offline_build no

build.pre_args-append \
    -ldflags \"-X main.Version=${github.tag_prefix}${version}\"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
