# -*- 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-tatsu
version             5.15.1
revision            0
categories-append   devel textproc
license             BSD
platforms           {darwin any}
supported_archs     noarch

python.versions     311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         Tool that takes grammars in a variation of EBNF as input, and outputs memoizing PEG parsers in Python.
long_description    {*}${description}

homepage            https://github.com/neogeny/tatsu

checksums           rmd160  184be0f3345163827a691c7bcda73a2e40976ee9 \
                    sha256  38b0467dbf086f032a7321023e65a773201c1acdebe0e9ac35c5ec26637e0b0d \
                    size    133908

if {${name} ne ${subport}} {
    # Fix permissions
    post-extract {
        fs-traverse item ${worksrcpath} {
            if {[file isdirectory ${item}]} {
                file attributes ${item} -permissions a+rx
            } elseif {[file isfile ${item}]} {
                file attributes ${item} -permissions a+r
            }
        }
    }
}
