# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 79940 2011-06-30 01:18:49Z snc@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-parsing
version             1.5.6
categories          python lang
platforms           darwin
maintainers         snc openmaintainer
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:pyparsing
distname            pyparsing-${version}

checksums           sha1    97240e762d90443b578bd87618f8b67f266d384c \
                    rmd160  a70a05a8ba29029ae0ed5dd1bbcf391ff9536ef9

post-destroot {
   xinstall -m 644 -W ${worksrcpath} CHANGES HowToUsePyparsing.html \
      LICENSE README ${destroot}${prefix}/share/doc/${name}
    delete ${worksrcpath}/docs/examples \
           ${worksrcpath}/docs/htmldoc
   eval xinstall -m 644 [glob ${worksrcpath}/docs/*] \
      ${destroot}${prefix}/share/doc/${name}
   file copy ${worksrcpath}/htmldoc ${destroot}${prefix}/share/doc/${name}
   eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
      ${destroot}${prefix}/share/doc/${name}/examples/
}

livecheck.regex     pyparsing-(\\d+(\\.\\d+)+)

