# $Id: Portfile 32660 2008-01-10 13:09:48Z ryandesign@macports.org $

PortSystem      1.0

name            cvsgraph
version         1.6.1
categories      devel
maintainers     nomaintainer
description     utility for graphical representation of CVS/RCS revision tree
long_description    CvsGraph is a utility to make a graphical \
                    representation of all revisions and branches of a \
                    file in a CVS/RCS repository.
platforms       darwin
homepage        http://www.akhphd.au.dk/~bertho/cvsgraph
master_sites    ${homepage}/release
checksums       md5 2f3da8e85de67d0690b120b33304f966 \
                sha1 ca5011537e22d6399eeb4d44c9ba0830e0f240a6

depends_lib     port:gd2

post-patch {
    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/${name}.1 ${worksrcpath}/README
}

configure.args  --with-gd-inc=${prefix}/include \
                --with-gd-lib=${prefix}/lib

destroot {
    xinstall -m 0755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin/
    xinstall -m 0644 -W ${worksrcpath} ${name}.1 ${destroot}${prefix}/share/man/man1/
    xinstall -m 0644 -W ${worksrcpath} ${name}.conf ${destroot}${prefix}/etc/${name}.conf.sample
    xinstall -m 0644 -W ${worksrcpath} ${name}.conf.5 ${destroot}${prefix}/share/man/man5/
    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} ChangeLog contrib/cvsgraphwrapper.php3 LICENSE contrib/mkimage.php3 README ${destroot}${prefix}/share/doc/${name}/
}

