PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-lacaml
version             7.0.13
revision            1
categories          math devel ocaml
platforms           darwin
license             LGPL-2.1
maintainers         nomaintainer
description         OCaml interfaces to the BLAS- and LAPACK-library
long_description    ${description}
homepage            https://bitbucket.org/mmottl/lacaml/
master_sites        https://bitbucket.org/mmottl/lacaml/downloads/
checksums           rmd160  264894eea8c16757e53c1173aa600cfcd2c79fdf \
                    sha256  ccef3d0bd1b4607c9cffb84740200efbb9e6a85cff05a6c50e2c8d5176684fd9

distname            lacaml-${version}

depends_lib         port:ocaml port:ocaml-findlib

use_oasis           yes
use_oasis_doc       yes

configure.args-append "--destdir ${destroot}"

platform darwin 13 {
  post-patch {
    reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/myocamlbuild.ml
  }
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     lacaml-(\[0-9.\]+)${extract.suffix}

