# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup github    1.0
PortGroup ocaml     1.1

name                ocaml-configurator
github.setup        janestreet configurator 0.11.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

categories          ocaml devel
maintainers         nomaintainer
license             MIT
description         helper library for gathering system configuration
long_description    Configurator is a small library that helps writing OCaml scripts that test features available on the system, in order to generate config.h files for instance.

checksums           rmd160  ddd4c9b06f8586f43a594fd13953ae6e8ea811ad \
                    sha256  98ec8759fa33b70fea27431c18f41980daa941391507e4ff1148363a209c86e2 \
                    size    10567

ocaml.build_type    dune

pre-build {
    system -W ${worksrcpath} "${prefix}/bin/dune upgrade"
}

depends_lib-append  port:ocaml-base \
                    port:ocaml-stdio
