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

python.versions     27 35 36 37 38 39 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         pycparser is a complete parser of the C language.

long_description    pycparser is a complete parser of the C language, \
                    written in pure Python using the PLY parsing library. \
                    It parses C code into an AST and can serve \
                    as a front-end for C compilers or analysis tools.

homepage            https://github.com/eliben/pycparser

checksums           rmd160  69c72f36a7d84e32e8aa629d9f46e805843680ee \
                    sha256  491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6 \
                    size    172736

if {${name} ne ${subport}} {

    if {${python.version} < 37} {
        version             2.21
        revision            0
        checksums           rmd160  87bf425280aead9903bb57af09a8caea19c771c5 \
                            sha256  e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 \
                            size    170877
        python.pep517       no
    }

    livecheck.type      none
}
