# -*- 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           github   1.0
PortGroup           makefile 1.0

github.setup        mptre yank 1.3.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

description         Yank terminal output to clipboard

long_description    The yank(1) utility reads input from stdin and display a \
                    selection interface that allows a field to be selected \
                    and copied to the clipboard. Fields are either recognized \
                    by a regular expression using the -g option or by \
                    splitting the input on a delimiter sequence using the -d \
                    option.

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           darwin linux freebsd

checksums           rmd160  0a16c4584d95bfecd4306901e2a811a8f3d4de74 \
                    sha256  3ca3e4f36a5ee66fe5681cd7aab4fb580e31faa8b3acaf0844ac16f9b72298f6 \
                    size    9038

if {${os.platform} eq "darwin"} {
    # yank uses xsel to copy to clipboard by default, but on macOS, we need
    # to use pbcopy instead.
    build.pre_args-append   YANKCMD=pbcopy
}

destroot.args-append        PREFIX=${prefix}
makefile.has_destdir        yes
