# -*- 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/koki-develop/gat 0.23.0 v
go.offline_build    no
revision            0

description         cat alternative written in Go

long_description    {*}${description}

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

checksums           rmd160  bcded5c3740ae02da4f25d2a653e6be896f42a0f \
                    sha256  a57d5ea36b1164d233ac2bbe5d429ef82ea40866b98f5d7193eb0be9fb7060e6 \
                    size    15017876

build.pre_args-append \
    -ldflags \"-X ${go.package}/cmd.version=${github.tag_prefix}${version}\"

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