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

github.setup        expert-lsp expert 0.2.4 v
github.tarball_from archive

categories          devel
description         Official Elixir Language Server Protocol implementation
long_description    {*}${description}
license             Apache-2
maintainers         {@guetnga gmail.com:lsdrfrx} \
                    openmaintainer

checksums           rmd160  4913e0611d47741b0d33db935438276ccfb0ab2d \
                    sha256  9f9a393007b1f8804492c7ecdc2a3cf9b1fe34d4c9f2a1df86ab147146ed2672 \
                    size    1681990

use_configure       no
depends_build       port:elixir \
                    port:just

build.cmd           just
build.target        release

destroot {
    set relpath apps/expert/_build/prod/rel/plain

    xinstall -d ${destroot}${prefix}/libexec/expert
    copy ${worksrcpath}/${relpath} ${destroot}${prefix}/libexec/expert/plain

    xinstall -d ${destroot}${prefix}/bin
    ln -s ${prefix}/libexec/expert/plain/bin/start_expert \
        ${destroot}${prefix}/bin/expert
}

