# -*- 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-happy-eyeballs
github.setup        robur-coop happy-eyeballs 2.0.1 v
revision            2
categories          ocaml devel net
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             ISC
description         Connecting to a remote host via IP version 4 or 6
long_description    {*}${description}
use_bzip2           yes
extract.suffix      .tbz
checksums           rmd160  43e629d7645e9151d462f93f32497ec7c560d990 \
                    sha256  b2554588302931ba85e18861e610a3ada7823496d4d49a195e953556c351d269 \
                    size    19086
github.tarball_from releases

depends_lib-append  port:ocaml-domain-name \
                    port:ocaml-duration \
                    port:ocaml-fmt \
                    port:ocaml-ipaddr \
                    port:ocaml-logs

ocaml.build_type    dune

subport ${name}-lwt {
    description     {*}${description} using Lwt_unix

    depends_lib-append \
                    port:ocaml-cmdliner \
                    port:ocaml-dns \
                    port:ocaml-happy-eyeballs \
                    port:ocaml-lwt \
                    port:ocaml-mtime
}
