# -*- 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        robur-coop ocaml-h1 1.1.0 v
revision            1
categories          ocaml www
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             BSD
description         High-performance, memory-efficient and scalable web-server
long_description    {*}${description} for OCaml.
use_bzip2           yes
extract.suffix      .tbz
distname            h1-${version}
checksums           rmd160  498bd82557f7694892c9eef38136fa9bd330362b \
                    sha256  2d3067ed380163920149fbe9149d5bda630b4f45e3c10be793beea06a07c6d3c \
                    size    185562
github.tarball_from releases

depends_lib-append  port:ocaml-lwt

if {${subport} eq ${name}} {
    depends_lib-append \
                    port:ocaml-angstrom \
                    port:ocaml-base64 \
                    port:ocaml-bstr \
                    port:ocaml-faraday \
                    port:ocaml-httpun-types
}

subport ${name}-lwt-unix {
    description     Lwt support for ocaml-h1

    depends_lib-append \
                    port:ocaml-faraday-lwt-unix \
                    port:ocaml-h1
}

ocaml.build_type    dune
