PortSystem          1.0

name                cvsgrab
categories          devel www
version             2.3
platforms	    darwin
maintainers	    nomaintainer

description         CVSGrab reads a repository via its web interface (ViewCVS or CvsWeb)
long_description    \
     CVSGrab is another kind of CVS client. When other CVS clients use the cvs \
     protocol or ssh to read the repository, this utility reads the repository via \
     its web interface, such as ViewCVS or CvsWeb.

homepage            http://cvsgrab.sourceforge.net
master_sites        sourceforge:cvsgrab
checksums           md5 40406d39a3d9fd9f4e3f2dc823a2768f

configure {
    reinplace "s|/opt/cvsgrab|${prefix}/libexec/cvsgrab|" ${worksrcpath}/cvsgrab.sh
}

build {}

destroot {
    xinstall -d ${destroot}${prefix}/libexec/${name}
    xinstall -W ${worksrcpath} FileTypes.properties ${destroot}${prefix}/libexec/${name}/
    foreach dir {docs lib samples} {
        file copy ${dir} ${destroot}${prefix}/libexec/${name}/
    }
    xinstall -W ${worksrcpath} cvsgrab.sh ${destroot}${prefix}/bin/
}

universal_variant   no