PortSystem      1.0

name            jobpool
version         0.2
platforms       darwin
categories      sysutils
license         none
maintainers     nomaintainer
description     Jobpool is a shell script utility for running jobs in parallel
long_description \
    Jobpool is a shell script utility for running jobs in parallel. It \
    manages a queue of jobs by ensuring that no more than J jobs run at one \
    time, and does so portably and with low overhead.  (Currently the only \
    available documentation is the webpage for this utility, so this port \
    downloads and installs it as well.)
homepage        http://www.cs.mu.oz.au/~mgnb/jobpool/
master_sites
distfiles-append    index.html
checksums \
    ${distname}${extract.suffix} \
        md5     b8d1b0a962d00e9b674b6a3f1b03ca50 \
        sha1    c22bd3b83e1474a9c423e7e2ff6810bc73891d2a \
        rmd160  a94f92fe506e67df667f2f73b9f626d688ca79e6 \
    index.html \
        md5     42311dcdec59f01b5c663d7eb66e1018 \
        sha1    1254aaa0936cfad89b92b1c2962c5e4a2663bd27 \
        rmd160  14be2515560658540225e2aa4c3ae030f2082daf

use_configure   no
build.target    jobpool
destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${distpath}/index.html \
        ${destroot}${prefix}/share/doc/${name}/${name}.html
}

livecheck.type  regex
livecheck.regex "${name} \\((\\d+(?:\\.\\d+)*)\\)"
