# -*- 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             20231231
revision            0
categories          ocaml devel
maintainers         {@barracuda156 gmail.com:vital.had} 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  7ac21ec41665575553002eb450d898a822dd1609 \
                    sha256  783e95e1ce7f1082c5c693810732344ac3e443a255b822acfca46dd985cfedae \
                    size    1393059

ocaml.build_type    dune

if {${subport} eq ${name} } {
    depends_lib-append  port:ocaml-menhirSdk \
                        port:ocaml-menhirLib
    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-menhirLib {
}

subport ocaml-menhirSdk {
}

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