# -*- 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                crswallow
version             0.2
categories          sysutils
license             MPL-1.1 GPL-2+ LGPL-2.1+
platforms           darwin
maintainers         gmail.com:stefan.van.der.eijk openmaintainer

description         filter or rate-limit text lines containing CR
long_description    crswallow processes text lines passed in from stdin and \
                    forwards most of them to stdout/stderr. Text lines which \
                    contain the carriage return character (cr) are often \
                    used by software to print progress information on a text \
                    console. Some tools update the status very often, e.g. \
                    mencoder may do so several hundred times per second. \
                    Such output can be very disturbing when running software \
                    over a remote terminal connection with low bandwidth. \
                    The crswallow filter can limit status output to a single \
                    update in a given time interval, for example once per \
                    second.
                                
homepage            https://code.google.com/p/crswallow/
master_sites        googlecode

checksums           md5     f1a751c0ea8891ec1682d4ea209fc3b0 \
                    sha1    96701106de01db3e4b46e799ff23b8537019410c \
                    rmd160  781d40d2fd00eafdbe9076ec9dfbf40670beef2e

worksrcdir          ${name}

variant universal {}

use_configure       no
build.cmd           ${configure.cc}
build.args          {*}${configure.cflags} {*}[get_canonical_archflags cc] -o ${name}
build.target        ${name}.c

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
