# $Id: Portfile 68242 2010-05-29 20:33:31Z phw@macports.org $

PortSystem          1.0
PortGroup           python31 1.0

name                py31-ply
version             3.3
categories          python 
platforms           darwin

maintainers         phw openmaintainer
description         PLY is an implementation of lex and yacc parsing tools for Python
long_description    ${description}
homepage            http://www.dabeaz.com/ply/
#master_sites        http://www.dabeaz.com/ply/
distname            ply-${version}

checksums           md5     4a7f837f71a7c1ea6b5b0c57272909c7 \
					sha1    23291d8127f9f7189957fe1ff8925494e389fca3 \
					rmd160  619fad2b4050d6125cab9c34ea794bda7a0c5aa3


build.args-append -f

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} README ANNOUNCE TODO CHANGES ${destroot}${prefix}/share/doc/${name}
}

livecheck.type	regex
livecheck.regex	"Download <a href=\"ply-(\\d+(?:\\.\\d+)*).tar.gz\">"
