# -*- 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        ocamllabs ocaml-ctypes 0.21.1
revision            0

categories          ocaml devel
maintainers         {landonf @landonf} openmaintainer
license             MIT
description         Bind to C libraries using pure OCaml
long_description    ctypes is a combinator library for binding to C \
                    libraries using pure OCaml.

github.tarball_from archive
distname            ${version}
worksrcdir          ${name}-${version}

checksums           rmd160  c0a08f582a23af2050cd7b0a2c2972b6aedf596e \
                    sha256  6f2b3b0f26c202b75ed7df3867fd9580d3e592af4944875b92ec0ee3ca7e14ff \
                    size    200264

depends_build-append \
                    port:ocaml-dune-configurator
depends_lib-append  port:ocaml-integers \
                    port:ocaml-bigarray-compat

depends_test-append port:ocaml-ounit2 \
                    port:pkgconfig

ocaml.build_type    dune

test.run            yes
