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

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

py24-spark: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 130801 2015-01-02 20:55:13Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-spark
7version                 0.6.1
8revision                1
9license                 MIT
10platforms               darwin freebsd
11supported_archs noarch
12maintainers             nomaintainer
13description             spark is the little language compiler framework for python
14long_description        SPARK stands for the Scanning, Parsing, and Rewriting \
15                                Kit. It formerly had no name, and was referred to as \
16                                the "little language framework." The first version \
17                                (circa 1998) was described in the paper Compiling \
18                                Little Languages in Python at the 7th International \
19                                Python Conference.
20
21homepage                http://pages.cpsc.ucalgary.ca/~aycock/spark/
22master_sites    ${homepage}
23distname                spark-${version}
24checksums               md5 28c4c3b1031a6a4e4c4bd42726d22b65
25
26python.versions 27
27
28if {${name} ne ${subport}} {
29    patch       {
30        file delete ${worksrcpath}/generic.py
31        file copy ${portpath}/files/setup.py ${worksrcpath}
32        reinplace "s|PORTVERSION|${version}|g" ${worksrcpath}/setup.py
33    }
34
35    post-destroot       {
36        xinstall -m 644 ${worksrcpath}/doc/doc.html \
37            ${destroot}${prefix}/share/doc/${subport}
38        file delete ${destroot}${prefix}/share/doc/${subport}/examples
39        file copy ${worksrcpath}/examples \
40            ${destroot}${prefix}/share/doc/${subport}/
41        file delete \
42            ${destroot}${prefix}/share/doc/${subport}/examples/auto/spark.py \
43            ${destroot}${prefix}/share/doc/${subport}/examples/paper/spark.py \
44            ${destroot}${prefix}/share/doc/${subport}/examples/python/spark.py
45    }
46}
Note: See TracBrowser for help on using the repository browser.