# -*- 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
# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           muniversal 1.0

name                pv
version             1.4.6
categories          sysutils
platforms           darwin
maintainers         me.com:mark.carver openmaintainer
license             Apache-2

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            http://www.ivarch.com/programs/pv.shtml
master_sites        http://www.ivarch.com/programs/sources/

use_bzip2           yes

checksums           rmd160  ecbcc4791acd108bfee09f49280808d1470e37c2 \
                    sha256  edfea0033ec6222eb60b4ec6d905dd2dccdb5900beef03f67f42ca9ed67e9fe2

configure.args      --mandir=${prefix}/share/man \
                    --infodir=${prefix}/share/info

depends_lib         port:gettext

if {${os.platform} eq "darwin" && ${os.major} != 9} {
    # Leopard is the only release where stat64 exists and is not deprecated
    patchfiles-append stat64.diff
}

livecheck.type      regex
livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}<
