# -*- 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/k1LoW/gh-grep 1.2.3 v
go.offline_build    no
revision            0

description         Find lines matching a pattern within Github repositories \
                    using the GitHub API

long_description    {*}${description}

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

checksums           rmd160  9620c321faaf70ed9b631d6244a57acff0420e00 \
                    sha256  0dbe1aae817ef95db69cfbc5c9032fe99d7af1a202fff1e591133b0bcf3e2a45 \
                    size    22908

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

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