# -*- 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-beniget
version             0.4.2.post1
revision            0

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

description         Extract semantic information about static Python code
long_description    {*}${description}

homepage            https://github.com/serge-sans-paille/beniget/

checksums           rmd160  f23c0eab726f9d75c44cb1eb358876c87f92d1bb \
                    sha256  a0258537e65e7e14ec33a86802f865a667f949bb6c73646d55e42f7c45a052ae \
                    size    32274

python.versions     39 310 311 312 313 314

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

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

    test.run        yes
}
