# -*- 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-pypeg2
python.rootname     pyPEG2
version             2.15.2
revision            0

categories          python lang
license             GPL-2
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         An intrinsic PEG Parser-Interpreter for Python
long_description    {*}${description}

homepage            https://fdik.org/pyPEG/

checksums           rmd160  594103ba8a33086a306a172f27c6d29cf0c1435a \
                    sha256  2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d \
                    size    40334

python.versions     38

if { ${name} ne ${subport} } {
    depends_run     port:py${python.version}-lxml

    test.run        yes
    python.test_framework
    test.dir        ${build.dir}/pypeg2/test
    test.cmd        ${python.bin} test_pyPEG2.py && ${python.bin} test_xmlast.py
}
