# -*- 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                cvs-fast-export
version             1.57
categories          devel
license             GPL-2
platforms           darwin
maintainers         nomaintainer

description         Export an RCS or CVS history as a fast-import stream

long_description    This program analyzes a collection of RCS files in a CVS \
                    repository (or outside of one) and, when possible, emits \
                    an equivalent history in the form of a fast-import stream. \
                    Not all possible histories can be rendered this way – the \
                    program tries to emit useful warnings when it can't. \
                    The program can also produce a visualization of the \
                    resulting commit DAG in the DOT format handled by the \
                    graphviz suite. The package also includes cvssync, a tool \
                    for mirroring masters from remote CVS hosts.

homepage            http://www.catb.org/~esr/cvs-fast-export/
master_sites        ${homepage}

checksums           rmd160  7aa1a82ba1e92f105cb08fdc9650b161958ef9a6 \
                    sha256  284a09f29fe1e385930941a1369a5846609d8caec2d69b95b629a8c7a2fe2e78 \
                    size    503473

depends_build       port:flex \
                    port:bison \
                    port:asciidoc \
                    port:docbook-xsl-nons \
                    port:libxslt

# these are build dependencies only (used to generate files)
license_noconflict  bison openssl

use_configure       no

build.target        cvs-fast-export

build.post_args-append \
                    prefix=${prefix} \
                    CC=${configure.cc} \
                    FLEX=${prefix}/bin/flex \
                    A2X=${prefix}/bin/a2x
destroot.post_args-append \
                    prefix=${prefix} \
                    CC=${configure.cc} \
                    FLEX=${prefix}/bin/flex \
                    A2X=${prefix}/bin/a2x

patchfiles          mkdtemp-decl.diff
