# -*- 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-ocamlformat
github.setup        ocaml-ppx ocamlformat 0.29.0
revision            3
categories          ocaml devel
maintainers         nomaintainer
license             {LGPL-2.1 MIT}
description         Auto-formatter for OCaml code
long_description    {*}${description}
checksums           rmd160  954acbd4e655480b11bac69c30993a07a272119d \
                    sha256  453255ef93276ee91301e844dbc1c442fe5669ff73720f7b861e6534658cd230 \
                    size    1419912
github.tarball_from archive

ocaml.build_type    dune

if {${subport} eq ${name} } {
    depends_lib-append \
                    port:ocaml-cmdliner \
                    port:ocaml-ocamlformat-lib \
                    port:ocaml-re
}

subport ocaml-ocamlformat-lib {
    revision        1

    depends_lib-append \
                    port:ocaml-astring \
                    port:ocaml-base \
                    port:ocaml-camlp-streams \
                    port:ocaml-cmdliner \
                    port:ocaml-csexp \
                    port:ocaml-dune-build-info \
                    port:ocaml-either \
                    port:ocaml-fix \
                    port:ocaml-fpath \
                    port:ocaml-menhir \
                    port:ocaml-menhirLib \
                    port:ocaml-menhirSdk \
                    port:ocaml-ocaml-version \
                    port:ocaml-ocp-indent \
                    port:ocaml-stdio \
                    port:ocaml-uuseg \
                    port:ocaml-uutf
}
