# -*- 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-cstruct
github.setup        mirage ${name} 6.2.0 v
categories          ocaml devel lang
license             ISC
maintainers         {landonf @landonf} openmaintainer

description         Access C-like structures directly from OCaml
long_description    Cstruct is a library and syntax extension to make it \
                    easier to access C-like structures directly from OCaml. \
                    It supports both reading and writing to these structures, \
                    and they are accessed via the Bigarray module.

github.tarball_from releases

use_bzip2           yes
extract.suffix      .tbz

distname            cstruct-${version}
checksums           rmd160  cf0b822a36a8a394d5bcf99ccee746c52cf089c5 \
                    sha256  9a78073392580e8349148fa3ab4b1b2e989dc9d30d07401b04c96b7c60f03e62 \
                    size    241841

depends_lib         port:ocaml-bigarray-compat

ocaml.build_type    dune
