# -*- 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
# $Id: Portfile 117200 2014-02-19 09:04:02Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pycparser
version             2.10
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     26 27 32 33 34

maintainers         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://bitbucket.org/eliben/pycparser
master_sites        http://pypi.python.org/packages/source/p/pycparser/

distname            pycparser-${version}

checksums           rmd160  2fbb253348d90d55492a063b96b71511dadefa04 \
                    sha256  957d98b661c0b64b580ab6f94b125e09b6714154ee51de40bca16d3f0076b86c

if {${name} ne ${subport}} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {pycparser-(\d+(?:\.\d+)*)\.[tz]}
}
