# -*- 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           ocaml 1.1
PortGroup           github 1.0

github.setup        chetmurthy not-ocamlfind 0.14
github.tarball_from archive
name                ocaml-not-ocamlfind
revision            0
categories          ocaml devel
maintainers         {pguyot @pguyot} openmaintainer
license             MIT

description         A small frontend for ocamlfind that adds a few useful commands
long_description    {*}${description}

checksums           rmd160  cad9df3626dc275b8b64818e39adb890c4977cf4 \
                    sha256  5d5b38a0f307a2a464f7305e6e6bb1f9f26c44b8b121848b0aa7227cb0af94ae \
                    size    189973

depends_lib-append  port:ocaml-camlp-streams \
                    port:ocaml-fmt \
                    port:ocaml-ocamlgraph \
                    port:ocaml-rresult

configure.args      -bindir ${prefix}/bin \
                    -mandir ${prefix}/share/man \
                    -sitelib ${prefix}/lib/ocaml/site-lib \
                    -no-camlp4

configure.pre_args

use_parallel_build  no

# use_findlib does OCAMLFIND_DESTDIR but not OCAMLFIND_BIN which may be specific to not-ocamlfind
ocaml.use_findlib   yes
destroot.args-append OCAMLFIND_BIN=${destroot}${prefix}/bin
