# -*- 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           muniversal 1.0
PortGroup           legacysupport 1.1
PortGroup           codeberg 1.0

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

codeberg.setup      a-j-wood pv 1.10.1 v

revision            0
categories          sysutils
maintainers         {eborisch @eborisch} openmaintainer
license             GPL-3+

description         monitor the progress of data through a pipe

long_description    pv - Pipe Viewer - is a terminal-based tool for monitoring \
                    the progress of data through a pipeline. It can be \
                    inserted into any normal pipeline between two processes to \
                    give a visual indication of how quickly data is passing \
                    through, how long it has taken, how near to completion it \
                    is, and an estimate of how long it will be until completion.

homepage            https://www.ivarch.com/programs/pv.shtml
master_sites        ${codeberg.homepage}/releases/download/v${version}

distname            ${name}-${version}
checksums           rmd160  cd66f23314b84796ccbc04cacfac24ec56df94ae \
                    sha256  20d38794b00fa9384a1ddf9e395a8357a0782cd95c8b74cf1df8df6388950eec \
                    size    420331

patch.pre_args-replace  -p0 -p1
patchfiles          fix-modifiers-direct-io-test.diff

depends_build-append \
                    port:gettext
depends_lib-append  port:gettext-runtime

test.run            yes
