# -*- 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-bstr
github.setup        robur-coop bstr 0.0.4 v
revision            2
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             MIT
description         Simple library for bigstrings
long_description    {*}${description}
homepage            https://git.robur.coop/robur/bstr
use_bzip2           yes
extract.suffix      .tbz
checksums           rmd160  ae0b034353d596c68fe0a27078e721e622ec3504 \
                    sha256  640836f15b2d555bdf2366f6d7783926e11598ad7e94557b167c785b255f4856 \
                    size    41825
github.tarball_from releases

ocaml.build_type    dune

subport ocaml-bin {
    description     DSL to describe binary formats

    depends_lib-append \
                    port:ocaml-slice
}

subport ocaml-slice {
    description     Slice type for bigstrings and bytes

    depends_lib-append \
                    port:ocaml-bstr
}
