# -*- 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-faraday
github.setup        inhabitedtype faraday 0.8.2
revision            2
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             BSD
description         Library for writing fast and memory-efficient serializers
long_description    {*}${description}
checksums           rmd160  2e15e4f1ab8898fa79855f3280af6f521e026d7e \
                    sha256  720ea90b39fd3ea7de6e8722330a25514e67306e94d4af41ad48d8a7cfa035c6 \
                    size    15239
github.tarball_from archive

depends_lib-append  port:ocaml-bigstringaf

ocaml.build_type    dune

subport ${name}-async {
    description     Async support for Faraday

    depends_lib     port:ocaml-async \
                    port:ocaml-core \
                    port:ocaml-core_unix \
                    port:ocaml-faraday
}

subport ${name}-lwt {
    description     Lwt support for Faraday

    depends_lib     port:ocaml-faraday \
                    port:ocaml-lwt
}

subport ${name}-lwt-unix {
    description     Lwt_unix support for Faraday

    depends_lib     port:ocaml-faraday-lwt \
                    port:ocaml-lwt
}
