source: trunk/dports/python/py-tpg/Portfile

Last change on this file was 130841, checked in by larryv@…, 3 years ago

py24-tpg: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 130841 2015-01-02 22:24:31Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-tpg
7version                 3.0.4
8license                 LGPL-2.1+
9platforms               darwin freebsd
10supported_archs noarch
11maintainers             nomaintainer
12description             lexical and syntactic parser generator for Python
13long_description        Toy Parser Generator is a lexical and syntactic parser \
14                                generator for Python. With a very clear and simple \
15                                syntax, you can write an attributed grammar that is \
16                                translated into a recursive descendant parser. TPG \
17                                generated code is very closed to the original grammar. \
18                                This means that the parser works like the grammar. A \
19                                grammar rule can be seen as a method of the parser \
20                                class, symbols as method calls, attributes as method \
21                                parameters and semantic values as return values. You \
22                                can also add Python code directly into grammar rules \
23                                and build abstract syntax trees while parsing.
24
25homepage                http://cdsoft.fr/tpg/
26master_sites    ${homepage} http://distfiles.macports.org/python
27distname                TPG-${version}
28checksums               md5 050352f0c70f627ab843a8b3eae25552
29
30python.versions 27
31
32if {${name} ne ${subport}} {
33    post-destroot       {
34        xinstall -m 644 -W ${worksrcpath}/doc cmmi10-19.png cmsy10-21.png \
35            cmtt10-20.png tpg.css tpg.html tpg11.html tpg13.html \
36            tpg14.html tpg19.html tpg6.html tpg7.html tpg8.html tpg9.html \
37            tpgch1.html tpgch10.html tpgch11.html tpgch2.html tpgch3.html \
38            tpgch4.html tpgch5.html tpgch6.html tpgch7.html tpgch8.html \
39            tpgch9.html tpgli1.html tpgli2.html tpgpa1.html tpgpa2.html \
40            tpgpa3.html ${destroot}${prefix}/share/doc/${subport}
41        xinstall -m 644 -W ${worksrcpath} ChangeLog License.txt README THANKS \
42            ${destroot}${prefix}/share/doc/${subport}
43    }
44}
Note: See TracBrowser for help on using the repository browser.