# -*- 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.9.44 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  8bd5f47c8c1fc3a355e8f59c8c5910d9c92bd3f9 \
                    sha256  e130c9e18b1e6e9e2ef95bec6117c72cb9be27a1b8ffe97fca787e4c8e014562 \
                    size    428337

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
