# -*- 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-ggy
version             0.4.1
revision            1
license	            public-domain
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
description         parser and lexer generator for python, in python
long_description    This is a Python package for generating parsers and \
                    lexers in Python. The distribution contains a \
                    generator for generating complicated multi-state \
                    lexers with support for backing up. It also includes a \
                    generator for generating GLR parsers capable of \
                    parsing arbitrary grammars.

homepage            http://lava.net/~newsham/pyggy/
master_sites        ${homepage} http://distfiles.macports.org/python/
distname            pyggy-${version}
checksums           md5 b134d0cfbc35ff392930550c7aa112d4

python.versions     27
livecheck.type      none

if {${name} ne ${subport}} {
    post-extract {
        reinplace "s|version = 0.4|version = str(0.4)|g" ${worksrcpath}/vers.py
    }

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} README TODO \
            ${destroot}${prefix}/share/doc/${subport}
    }
}