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

name                cmake-language-server
version             0.1.11
revision            0

categories          devel python
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {judaew @judaew} openmaintainer

description         CMake LSP Implementation
long_description    {*}${description}
homepage            https://github.com/regen100/cmake-language-server

distname            cmake_language_server-${version}

checksums           rmd160  9300b43c8baa310c53d9969003fb87e7dc571b25 \
                    sha256  005f48367ec569457a7229a58f6762044fddacac647858b39d725ae2b3cd695b \
                    size    11849

python.default_version 313
python.pep517_backend pdm

depends_run         path:bin/cmake:cmake \
                    port:py${python.version}-pygls \
                    port:py${python.version}-parsing

notes "
    To use in Neovim with lspconfig it is sufficient to specify cmd:

    require'lspconfig'.cmake.setup \{
        cmd = \{\"${prefix}/bin/cmake-language-server\"\};
    \}

    See other ways https://github.com/regen100/cmake-language-server#neovim
"
