# -*- 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.13
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
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  29a6b4ef6f3db3241d1d80efb3d4769eea743c6c \
                    sha256  1192728dd4faa44ce7f1d14028828f68aad7dc2f70e8feb042e3159fcf24f2ce \
                    size    290986

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

patchfiles          patch-Makefile.diff

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_BINDIR which may be specific to not-ocamlfind
ocaml.use_findlib   yes
destroot.env-append OCAMLFIND_BINDIR=${destroot}${prefix}/bin
