# -*- 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.5.1
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  8846569b9cd2246292f0c28994ae1c554b9b2323 \
                    sha256  976d40c6f22650d133b00291e6fe3ab8e9850a83ba121d834ea5c74db7f66c0d \
                    size    44712

python.versions     310 311 312 313 314 315

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
}
