# -*- 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

github.setup        flonatel pipexec 2.6.2
github.tarball_from releases
revision            0

description         Handling pipe of commands like a single command

long_description    \
    {*}${description}. ${name} allows you to build a network of processes and \
    connecting pipes, and have them act like a single process.

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

checksums           rmd160  7a4c802ce4896568ec87562ca30d202f38f1b9c5 \
                    sha256  d3ba6802a9dc4e5f336e840958c4ddaf3de427fa70a62430688c91e4d46e3d1d \
                    size    347780

use_xz              yes

configure.args-append \
                    --disable-silent-rules

post-destroot {
    file delete ${destroot}${prefix}/bin/ptest

    xinstall -d ${destroot}${prefix}/share/man/man1

    xinstall -m 0444 \
        {*}[glob ${worksrcpath}/doc/man/*.1] \
        ${destroot}${prefix}/share/man/man1/
}
