# -*- 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           cargo 1.0

github.setup        azdavis millet 0.15.3 v
revision            0
github.tarball_from archive
categories          devel
license             MIT 
maintainers         {gmail.com:ppadilcdx @papadil}  openmaintainer
description         A language server for Standard ML (SML).
long_description    Millet analyzes SML code without running it, and \
                    provides: inline diagnostics, \
                    hover type/documentation, inlay hints, \
                    jump to definition, code completions, Code actions \
                    document symbols, find all references. \
                    Millet supports SML/NJ Compilation Manager (CM) and \
                    the ML Basis (MLB), allowing for analysis of \
                    multi-file SML projects.

supported_archs     arm64 x86_64
cargo.offline_cmd   {}

depends_build-append \
                    port:nodejs24

checksums           rmd160  876b910198e9bc31fe2cee1fba3294ea7485f6f5 \
                    sha256  f974a7dacd0e163bd10ebdbc798ec249a89efd01905e8e57b32d2f017254cedf \
                    size    432274

destroot {
    xinstall ${worksrcpath}/target/[cargo.rust_platform]/release/millet-ls \
            ${destroot}/${prefix}/bin
    xinstall ${worksrcpath}/target/[cargo.rust_platform]/release/millet-cli \
            ${destroot}/${prefix}/bin
    xinstall -d ${destroot}/${prefix}/share/doc/${name}
    copy {*}[glob ${worksrcpath}/docs/*] \
         ${destroot}/${prefix}/share/doc/${name}
}

github.livecheck.regex {([0-9.]+)}
