# -*- 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        c-cube ocaml-containers 3.18 v
categories          ocaml devel
maintainers         nomaintainer
license             BSD
description         Modular, clean and powerful extension of the OCaml standard library
long_description    {*}${description}
use_bzip2           yes
extract.suffix      .tbz
distname            containers-${version}
checksums           rmd160  7aca3ec900947f5cb0dc96cd466886a096bd9610 \
                    sha256  52eeff91ce42b52305e6aaa8a58b88ce8f0a5a984199e59ca7e2fd9ebabe61d7 \
                    size    363939
github.tarball_from releases

if {${subport} eq ${name}} {
    revision        2
    depends_lib-append \
                    port:ocaml-dune-configurator \
                    port:ocaml-either
}

subport ${name}-data {
    revision        2
    description     A set of advanced datatypes for containers
    depends_lib-append \
                    port:ocaml-containers
}

ocaml.build_type    dune
