# $Id: Portfile 111068 2013-09-14 06:46:08Z ryandesign@macports.org $

PortSystem 1.0

name                camlp5
version             6.11
categories          lang ml
license             BSD
platforms           darwin
maintainers         nomaintainer

description         Camlp5 is a preprocessor-pretty-printer of OCaml.
long_description    Camlp5 is a preprocessor and pretty-printer for \
        OCaml programs. It also provides parsing and printing tools. \
        As a preprocessor, it allows to: extend the syntax of OCaml, \
        redefine the whole syntax of the language. As a pretty printer, \
        it allows to: display OCaml programs in an elegant way, convert \
        from one syntax to another, check the results of syntax \
        extensions. Camlp5 also provides some parsing and pretty \
        printing tools: extensible grammars, extensible printers, \
        stream parsers and lexers pretty print module.  It works as a \
        shell command and can also be used in the OCaml toplevel.

homepage            http://pauillac.inria.fr/~ddr/camlp5/
master_sites        ${homepage}distrib/src/

checksums           rmd160  28a4990617da1e65c77f88a34f3d4e527cb14a41 \
                    sha256  65521c1d316ea6c0e794d07bd331bdb091840d3ab41c16b50005d7685a2cab37

depends_build       port:ocaml

extract.suffix      .tgz

configure.pre_args  --prefix "${prefix}"
configure.args      --mandir "${prefix}/share/man"

build.target        world.opt
use_parallel_build  no

# ocaml is not universal
universal_variant   no

livecheck.type  regex
livecheck.url   [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[0-9.\]+)\\.tgz
