# $Id: Portfile 92833 2012-05-08 23:46:29Z ryandesign@macports.org $

PortSystem          1.0

name                ocamlify
version             0.0.1
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_configure       no

build.env           PREFIX=${prefix}
build.target        build
use_parallel_build  no

set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib

destroot.env        OCAMLFIND_DESTDIR="$ocamlfind_destdir"

destroot {
	xinstall -m 755 "${worksrcpath}/_build/src/ocamlify" "${destpath}${prefix}/bin"
}
