# -*- 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.4.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  a2126fd1f50a9444011bb5814aeca105dc18e91c \
                    sha256  34070fb5bcf39d6136f2a5bc30c5c191acdee9a7fc843370c4dd75556234f0ce \
                    size    10093

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
