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

python.versions     27 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  6916f29de7f64f5dc2ec25fbf1d43e4c18528cfd \
                    sha256  600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29 \
                    size    103492

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
}
