# -*- 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                py-pyls-spyder
version             0.4.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Spyder extensions for the python-language-server
long_description    {*}${description}

homepage            https://github.com/spyder-ide/pyls-spyder

checksums           rmd160  8199e9fa566a8220dff156cee9dbac0327b69880 \
                    sha256  45a321c83f64267d82907492c55199fccabda45bc872dd23bf1efd08edac1b0b \
                    size    7427

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-python-lsp-server

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} CHANGELOG.md LICENSE \
            README.md ${destroot}${docdir}
    }
}
