# -*- 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           ocaml 1.1

name                ocaml-menhir
version             20260209
revision            1
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             {GPL-2 LGPL}
description         Menhir is a LR(1) parser generator for the Objective Caml programming language.
long_description    {*}${description}
homepage            https://cristal.inria.fr/~fpottier/menhir
master_sites        https://gitlab.inria.fr/fpottier/menhir/-/archive/${version}

distname            menhir-${version}

checksums           rmd160  16a5bc4aee9df5c1a87467788582b2d732283630 \
                    sha256  198fed60926d550b15445579f940ad9182b481c3068c03ec400018c5637b0584 \
                    size    1612176

ocaml.build_type    dune

if {${subport} eq ${name} } {
    depends_lib-append  port:ocaml-menhirCST \
                        port:ocaml-menhirGLR \
                        port:ocaml-menhirLib \
                        port:ocaml-menhirSdk
    depends_run-append  port:ocaml-coq-menhirlib

    livecheck.type      regex
    livecheck.url       https://gitlab.inria.fr/fpottier/menhir/-/tags?format=atom
    livecheck.regex     {Release (\d+).}
}

subport ocaml-menhirCST {
}

subport ocaml-menhirGLR {
}

subport ocaml-menhirLib {
}

subport ocaml-menhirSdk {
}

subport ocaml-coq-menhirlib {
    platforms       any
    supported_archs noarch
}
