# -*- 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           github      1.0
PortGroup           makefile    1.0

github.setup        Xfennec progress 0.17 v
github.tarball_from archive
revision            0

description         Tool to show progress for cp, mv, dd, ... (formerly known \
                    as cv)

long_description    This tool can be described as a Tiny, Dirty, \
                    Linux-and-OSX-Only C command that looks for coreutils \
                    basic commands (cp, mv, dd, tar, gzip/gunzip, cat, etc.) \
                    currently running on your system and displays the \
                    percentage of copied data. It can also show estimated \
                    time and throughput, and provides a "top-like" mode \
                    (monitoring).

categories          sysutils
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  a94b0d2f131f118b6593391d74f1f35034405eb1 \
                    sha256  ee9538fce98895dcf0d108087d3ee2e13f5c08ed94c983f0218a7a3d153b725d \
                    size    60357

depends_build-append \
                    port:pkgconfig

depends_lib-append  port:ncurses

build.args-append   CC=${configure.cc}
build.target        ${name}

use_parallel_build  no

universal_variant   no

destroot {
    copy ${worksrcpath}/${name} ${destroot}${prefix}/bin/

    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0444 \
        ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1/

    xinstall -d ${destroot}${prefix}//share/zsh/site-functions
    xinstall -m 0444 \
        ${worksrcpath}/_${name} \
        ${destroot}${prefix}//share/zsh/site-functions/
}
