# -*- 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-js_of_ocaml
github.setup        ocsigen js_of_ocaml 5.9.1
revision            0
categories          ocaml devel lang
maintainers         nomaintainer
license             {GPL-2+ LGPL-2.1+}
description         Compiler from OCaml bytecode to JavaScript
long_description    {*}${description}

checksums           rmd160  f8dfe2f0074235de99494884bcd732a5334d3975 \
                    sha256  00f92a40eeeb29a44ba0326aaefa5bba2ac522ee800a2ee64d707ca75d498084 \
                    size    2240203
github.tarball_from archive

depends_lib-append  port:ocaml-ppxlib

ocaml.build_type    dune

if {${subport} eq ${name} } {
    depends_lib-append \
                    port:ocaml-js_of_ocaml-compiler
}

subport ocaml-js_of_ocaml-compiler {
    depends_lib-append \
                    port:ocaml-cmdliner \
                    port:ocaml-findlib \
                    port:ocaml-menhir \
                    port:ocaml-menhirLib \
                    port:ocaml-menhirSdk \
                    port:ocaml-sedlex \
                    port:ocaml-yojson
}
