# -*- 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 92568 2012-05-01 15:57:06Z snc@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-parsing
version             1.5.6
categories-append   lang
platforms           darwin
maintainers         snc openmaintainer
license             MIT

description         alternative approach to creating parsers in python

long_description    The parsing module is an alternative approach to creating \
                    and executing simple grammars, vs. the traditional \
                    lex/yacc approach, or the use of regular expressions. The \
                    parsing module provides a library of classes that client \
                    code uses to construct the grammar directly in Python code.

homepage            http://pyparsing.wikispaces.com/
master_sites        sourceforge:project/pyparsing/pyparsing/pyparsing-${version}
distname            pyparsing-${version}

checksums           rmd160  a70a05a8ba29029ae0ed5dd1bbcf391ff9536ef9 \
                    sha256  5c84aa4500e82d5aa2c0842d5628c5da985e68ac1fb33554e0e5547eb3c85a75

python.versions     24 25 26 27 31 32

if {$subport != $name} {
    post-destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${docdir}
        xinstall -m 644 -W ${worksrcpath} CHANGES HowToUsePyparsing.html \
            LICENSE README ${docdir}
        delete ${worksrcpath}/docs/examples ${worksrcpath}/docs/htmldoc
        eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${docdir}
        file copy ${worksrcpath}/htmldoc ${docdir}
        eval xinstall -m 644 [glob ${worksrcpath}/examples/*] ${docdir}/examples/
    }
    livecheck.type  none
} else {
    livecheck.regex pyparsing-(\\d+(\\.\\d+)+)
}
