# -*- 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.27.0
revision            0
categories          ocaml devel
maintainers         nomaintainer
license             {LGPL-2.1 MIT}
description         Auto-formatter for OCaml code
long_description    {*}${description}
checksums           rmd160  48c22b6729574a2008e95ff1bafca418f92747bf \
                    sha256  914c474549489a25b796579dc08f548ac28cbd1a4eaf512d1e9498232e026616 \
                    size    1161305
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        0

    depends_lib-append \
                    port:ocaml-astring \
                    port:ocaml-base \
                    port:ocaml-camlp-streams \
                    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-result \
                    port:ocaml-stdio \
                    port:ocaml-uuseg \
                    port:ocaml-uutf
}
