# -*- 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-ounit2
github.setup        gildor478 ounit 2.2.7 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            2

categories          ocaml devel
maintainers         {landonf @landonf} openmaintainer
license             MIT
description         Unit test framework for OCaml
long_description    OUnit is a unit test framework for OCaml. \
                    It allows one to easily create unit-tests for OCaml code. \
                    It is based on HUnit, a unit testing framework for \
                    Haskell. It is similar to JUnit, and other XUnit \
                    testing frameworks.

checksums           rmd160  6a5b098d95e539e41b400bb2fb2a1ab5d7d3233d \
                    sha256  6e5fecfd47e8f17a8f311dbb8f9fa5c0289104f3fed6e8166b79afc32eaca815 \
                    size    69795

depends_lib-append  port:ocaml-stdlib-shims

patchfiles          no-seq-pkg.diff

subport ocaml-ounit2 {
    ocaml.build_type    dune
}

subport ocaml-ounit {
    description         Compatibility shim for ocaml-ounit2
    long_description    Provides legacy 'oUnit' ocamlfind package name for ocaml-ounit2

    revision            3

    depends_run-append  port:ocaml-ounit2
    depends_build-append \
                        port:ocaml-ocamlbuild

    use_configure       no
    ocaml.use_findlib   yes

    build {}
    destroot.target     install-ounit
    destroot.args       version="${version}"
}
