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

name			clpbar
version			1.11.1
categories		sysutils
license			LGPL-2
maintainers		nomaintainer
description		Tool to copy a stream of data and print a progress bar
long_description \
                Bar is a simple tool to copy a stream of data and print \
				a display for the user on stderr showing the ammount of data \
				passed, the throughput of the data transfer, and the transfer \
				time, or, if the total size of the data stream is known, \
				the estimated time remaining, what percentage of the data transfer \
				has been completed, and a progress bar.

homepage		https://clpbar.sourceforge.net
master_sites	sourceforge:project/clpbar/clpbar/bar-${version}
distname		bar_${version}
worksrcdir      bar-${version}

checksums           rmd160  1bce804b7aa448f2a5c031d807b239298b26be50 \
                    sha256  fa0f5ec5c8400316c2f4debdc6cdcb80e186e668c2e4471df4fec7bfcd626503 \
                    size    187144

universal_variant	no

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

# https://trac.macports.org/ticket/72348
if {${configure.build_arch} in [list arm i386 ppc]} {
    configure.args-append \
                --disable-use-m64
}

test.run        yes
test.target     check

livecheck.type  regex
livecheck.url   http://sourceforge.net/projects/${name}/files
livecheck.regex /bar_(\[0-9.\]+)${extract.suffix}
