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

PortSystem 1.0

name                ocaml-odn
version             0.0.8
categories          devel ml
maintainers         landonf openmaintainer
license             LGPL-2.1
description         OCaml data notation.
long_description    This project uses type-conv to dump OCaml data structure \
                    using OCaml data notation. This kind of data dumping helps \
                    to write OCaml code generator, like OASIS.

homepage            https://forge.ocamlcore.org/projects/odn
platforms           darwin
master_sites        https://forge.ocamlcore.org/frs/download.php/833/
distname            ocaml-data-notation-${version}

checksums           md5     1d674e3cbd0ea4f399d150cbbb349090 \
                    sha1    4f52b94e51a4163b4f3f288b1c5960e8f0595a11 \
                    rmd160  93c393a97b42e5914f961e4bd456a0f0f1d18b64

livecheck.type      regex
livecheck.regex     {>ocaml-data-notation-(.*)\.tar\.bz2}

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"

pre-destroot {
    file mkdir ${ocamlfind_destdir}
}
