# -*- 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-stdio
github.setup        janestreet stdio 0.16.0 v
revision            1

categories          ocaml devel
maintainers         {landonf @landonf} openmaintainer
license             MIT
description         Jane Street's standard IO library for OCaml
long_description    Stdio implements simple input/output functionalities for OCaml, \
                    re-exporting the input/output functions of the OCaml standard \
                    libraries using a more consistent API.

# Strip everything but <major>.<minor> from version
set janestreet_ver [regsub {^([^\.]+\.[^\.]+).*} ${version} {\1}]
master_sites        https://ocaml.janestreet.com/ocaml-core/v${janestreet_ver}/files/

distname            stdio-${git.branch}

checksums           rmd160  7769b050c8972a5b1a65d4a430fd75052e5413b4 \
                    sha256  61f0b75950614ac5378c6ec0d822cce6463402d919d5810b736fc46522b3a73e \
                    size    7779
github.tarball_from archive

depends_lib         port:ocaml-base

ocaml.build_type    dune
test.run            yes
