# -*- 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
# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0
PortGroup           github 1.0

github.setup        ocaml camlp4 4.02+6
name                ocaml-camlp4
version             [string map {+ -} ${version}]
revision            1
categories          lang devel ml
maintainers         mww openmaintainer
license             {LGPL-2.1 OpenSSLException}
description         Caml Preprocessor and Pretty-Printer
long_description    \
    Camlp4 is a software system for writing extensible parsers for programming \
    languages. It provides a set of OCaml libraries that are used to define \
    grammars as well as loadable syntax extensions of such grammars. Camlp4 \
    stands for Caml Preprocessor and Pretty-Printer and one of its most \
    important applications is the definition of domain-specific extensions of \
    the syntax of OCaml. \
    Camlp4 was part of the official OCaml distribution until its version \
    4.01.0. Since then it has been replaced by a simpler system which is \
    easier to maintain and to learn: ppx rewriters and extension points.

platforms           darwin

checksums           rmd160  03de86ab0ccec9b7c341f30132cc61caea29f7eb \
                    sha256  5a374fd814c61c571ada334f1cdcccd7d67207d61b6fd753551b5baa9b6305fb

configure.pre_args  --bindir=${prefix}/bin --libdir=${prefix}/lib/ocaml --pkgdir=${ocamlfind_dir}

use_parallel_build  no

destroot.target     install install-META
destroot.destdir    BINDIR=${destroot}${prefix}/bin \
                    LIBDIR=${destroot}${prefix}/lib/ocaml \
                    MANDIR=${destroot}${prefix}/share/man \
                    PKGDIR=${destroot}${ocamlfind_dir}