# $Id: Portfile 98499 2012-10-07 11:42:35Z mww@macports.org $

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocamlify
version             0.0.1
revision            2
platforms           darwin
categories          devel
maintainers         landonf openmaintainer
license             LGPL-2.1
description         Generate OCaml source code by from OCaml string.
long_description    OCamlify allows to create OCaml source code by including \
                    whole files into OCaml string or string list. The code \
                    generated can be compiled as a standard OCaml file. It \
                    allows embedding external resources as OCaml code.

homepage            http://ocamlify.forge.ocamlcore.org/
master_sites        http://forge.ocamlcore.org/frs/download.php/379/

checksums           md5     bcd97ad0f7203019019997197451dbf0 \
                    sha1    edac27eb484f151076d645a8b8b6d502e5f72376 \
                    rmd160  0a796a55491749b0677a5f956a6ed261b6bac408
depends_lib         port:ocaml

use_oasis yes

pre-destroot {
    reinplace "s|^prefix.*|prefix=\"${destroot}${prefix}\"|g" ${worksrcpath}/setup.data
}

