# -*- 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/vrothberg/vgrep 2.8.0 v
revision            0
epoch               1

description         an easy to use front-end for (git) grep

long_description    \
    vgrep is a command-line tool to search textual patterns in directories. \
    It serves as a front-end to grep and git-grep and allows to open the \
    indexed matching lines in a user-specified editor. vgrep is inspired by \
    the ancient cgvg scripts but extended to perform further operations such \
    as listing statistics of files and directory trees or showing the context \
    lines before and after the matches.

categories          textproc
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  d42b758475ea78b7e20be6f607b2368347d3fc3e \
                    sha256  325b28bd5e8da316e319361f2dd8e3cc74fcd55724fc8ad4b2a73c21b2903bd8 \
                    size    2039369

depends_build-append \
                    port:go-md2man

# Do not need go.vendors as source archive already includes vendored
# dependencies.
build.cmd           make
build.target        release docs

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

    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/docs/${name}.1 \
        ${destroot}${prefix}/share/man/man1/
}
