# -*- 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

github.setup        ocsigen lwt 6.1.2
revision            0

name                ocaml-lwt
categories          ocaml devel
maintainers         {landonf @landonf} openmaintainer
license             MIT
description         Promises and event-driven I/O for OCaml
long_description    Lwt provides typed, composable promises for OCaml, \
                    with support for parallel resolution.

homepage            https://github.com/ocsigen/lwt

depends_build-append \
                    port:ocaml-cppo
depends_lib-append  port:ocaml-dune-configurator \
                    port:ocaml-findlib \
                    port:ocaml-ocplib-endian

checksums           rmd160  fbc71bb051c945d75e23ed41e11eaadf185dd651 \
                    sha256  8d17156f4a5de94560a7f9edd444bee58f7eb447270b2a2d3e4483d819c6b0ab \
                    size    326531
github.tarball_from archive

ocaml.build_type    dune

subport ${name}_ppx {
    depends_lib-append \
                    port:${name} \
                    port:ocaml-ppxlib
}

subport ${name}_react {
    version         1.2.0
    revision        0
    description     Helpers for using React with Lwt

    depends_lib-append \
                    port:${name} \
                    port:ocaml-react
}
