# -*- 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.23
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 314

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  959cca41a671a6e75175204e57e42b0f19b07989 \
                    sha256  78816d4f24add8f10a06d6f05b4d424ad9e96cfebf68a4ddc99c65c0720d00c2 \
                    size    173734

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
}
