# $Id: Portfile 88485 2012-01-03 11:01:15Z mww@macports.org $

PortSystem 1.0
PortGroup ocaml 1.0

name                ocaml-buddy
version             0.5
categories          math devel ml
maintainers         mww openmaintainer
license             LGPL-3+
description         OCaml bindings for buddy
long_description    ${description}
homepage            https://github.com/abate/ocaml-buddy
platforms           darwin

master_sites        macports

checksums           md5     f2ff18ff385c304615348255755c8e3d \
                    rmd160  1d9c0c3ea330c877a36c38c46c1acb7be96475a0 \
                    sha256  2d08be2d7188797eb5837ba651507f00608ea2e675fc93deb1a36b4c37a41a3f
use_bzip2           yes

depends_lib         port:ocaml port:ocaml-findlib port:buddy

patchfiles          patch-myocamlbuild.ml.diff

configure {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/myocamlbuild.ml
}

use_parallel_build  no

build.target        all opt

destroot.args       LIBDIR=${ocamlfind_destdir}

livecheck.type      moddate

