# -*- 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/walles/moor 2.8.0 v
go.offline_build    no
revision            0

description         Moor is a pager. It's designed to just do the right thing \
                    without any configuration.

long_description    Moor should work as a drop-in replacement for Less. \
                    It features syntax highlighting, ANSI color coded text \
                    support, incremental search and automatic decompression, \
                    among others.

checksums           rmd160  484fb0943c6ace5175d8e901787a371409ea83e3 \
                    sha256  f4fa51463b8e9f28088de017a45a06550071383fdd846ad924e7e80b2b5cb72c \
                    size    3025315

categories          textproc
installs_libs       no
license             FreeBSD
maintainers         {gmail.com:j.lopez.r @jlopezr} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.args-append   ./cmd/${name}
build.pre_args-append \
    -ldflags \"-X main.versionString=${version}\"

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

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

notes "
    moar has been replaced by moor.
    
    Add:

        export PAGER=${prefix}/bin/${name}

    ...to your .bashrc, or .zshrc
"
