# -*- 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 104060 2013-03-14 12:01:03Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pycparser
version             2.09.1
revision            0
categories-append   devel
platforms           darwin
license             BSD

python.versions     26 27 32 33

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  928edae6fe5ef5e3e2dcc1ed180694d27ab3844c \
                    sha256  6d5f5d70b2edf7bc43a3ab855511bff16e10e5b0b353fd31686284acab898102

if {$subport != $name} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "pycparser-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
