# -*- 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/noborus/ov 0.33.1 v
github.tarball_from archive
revision            0

description         Feature rich terminal pager

long_description    ov is a feature rich terminal pager. It has an effective \
                    function for tabular text. Previously known as oviewer.

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

checksums           rmd160  47b001db9c18f96f7f42ce1420a6ff0f37bf361a \
                    sha256  993d42c966d74f5b158fe3ebacb565fd70e7da609b26976e4434a72e5ab2fe98 \
                    size    3406981

# Enable fetching deps at build time
go.offline_build no
build.cmd           make
build.pre_args-append \
                    LDFLAGS="\\\"-X main.Version=${version}\\\""
build.args          build

set ov_share_path   ${prefix}/share/${name}
destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -d ${destroot}${ov_share_path}/
    xinstall -m 0644 ${worksrcpath}/${name}.yaml ${destroot}${ov_share_path}/
}

notes "
    You can find a sample config file for ov at: ${ov_share_path}/${name}.yaml
"

github.livecheck.regex (\[0-9.\]+)
