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

github.setup        erikrose parsimonious 0.10.0
github.tarball_from archive
revision            0
name                py-parsimonious

categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         nomaintainer

description         The fastest pure-Python PEG parser I can muster
long_description    Parsimonious aims to be the fastest arbitrary-lookahead \
                    parser written in pure Python—and the most usable. It's \
                    based on parsing expression grammars (PEGs), which means \
                    you feed it a simplified sort of EBNF notation.

checksums           rmd160  e31c67023c9b76fb1fed7df95ef30b9471ebffc9 \
                    sha256  5fb1a5084d603e890d4fad10fd78ae10962a7a60810d18b2d723570dfd827055 \
                    size    41081

python.versions     310 311 312 313

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

    test.run            yes

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