# -*- 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        vcp
version     2.2
platforms   darwin
categories  sysutils
license     BSD
maintainers nomaintainer
description vcp copies files and directories in a curses interface.
long_description   \
    vcp copies files and directories in a curses interface, with text \
    only output available. Its options and output are similar to cp. \
    It provides visual information about files copied and left to copy, \
    amount of data written and to be writen, amount of data being \
    written every second and two status bars representing the number \
    of files copied and to copy.
homepage        http://members.iinet.net.au/~lynx/vcp/
master_sites    ${homepage}
checksums       md5    90a47777e6fcf364e2e1fd12e8b67d69 \
                sha1   ed54932c36e8dbe54c585141a741ba295bd6e267 \
                rmd160 14c228119457ee67ba1256a7e6f4b607c491f6f1
use_configure   no
destroot {
    xinstall ${worksrcpath}/vcp ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/vcp.1 ${destroot}${prefix}/share/man/man1
    xinstall -m 444 ${worksrcpath}/vcp.conf.sample ${destroot}${prefix}/etc/vcp.conf.sample
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "<a href=\"${name}-(\\d+\\.\\d+)${extract.suffix}\">"
