# -*- 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.42 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  72e22ae67cc51a251ebc6e1c0f4d25f0e3edcf8d \
                    sha256  fbd7d1b04efee62c8241255a3fe1c5f5236f1a6e1ed85f02730b0c6448810175 \
                    size    425511

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
