# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-tpg
version			3.0.4
categories		python
platforms		darwin freebsd
maintainers		nomaintainer
description		lexical and syntactic parser generator for Python
long_description	Toy Parser Generator is a lexical and syntactic parser \
				generator for Python. With a very clear and simple \
				syntax, you can write an attributed grammar that is \
				translated into a recursive descendant parser. TPG \
				generated code is very closed to the original grammar. \
				This means that the parser works like the grammar. A \
				grammar rule can be seen as a method of the parser \
				class, symbols as method calls, attributes as method \
				parameters and semantic values as return values. You \
				can also add Python code directly into grammar rules \
				and build abstract syntax trees while parsing. 

homepage		http://christophe.delord.free.fr/en/tpg/
master_sites	http://christophe.delord.free.fr/soft/tpg/
distname		TPG-${version}
checksums		md5 050352f0c70f627ab843a8b3eae25552

post-destroot	{
	xinstall -m 644 -W ${worksrcpath}/doc cmmi10-19.png cmsy10-21.png \
		cmtt10-20.png tpg.css tpg.html tpg11.html tpg13.html \
		tpg14.html tpg19.html tpg6.html tpg7.html tpg8.html tpg9.html \
		tpgch1.html tpgch10.html tpgch11.html tpgch2.html tpgch3.html \
		tpgch4.html tpgch5.html tpgch6.html tpgch7.html tpgch8.html \
		tpgch9.html tpgli1.html tpgli2.html tpgpa1.html tpgpa2.html \
		tpgpa3.html ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} ChangeLog License.txt README THANKS \
		${destroot}${prefix}/share/doc/${name}
}
