1 | # $Id: Portfile,v 1.6 2005/01/31 03:26:22 wbb4 Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name parrot |
---|
5 | version 0.3.1 |
---|
6 | categories lang devel |
---|
7 | maintainers bfulgham@mac.com |
---|
8 | description Open source virtual machine (for Perl and Python) |
---|
9 | long_description \ |
---|
10 | Parrot is the new interpreter being designed from scratch to support \ |
---|
11 | the upcoming Perl 6 language. It is being designed as a standalone \ |
---|
12 | virtual machine that can be used to execute bytecode-compiled \ |
---|
13 | dynamic languages such as Perl 6, Perl 5, Python, etc. |
---|
14 | |
---|
15 | platforms darwin |
---|
16 | homepage http://www.parrotcode.org/ |
---|
17 | master_sites ftp://ftp.cpan.org/pub/CPAN/authors/id/L/LT/LTOETSCH |
---|
18 | |
---|
19 | distname parrot-${version} |
---|
20 | worksrcdir ${distname} |
---|
21 | checksums ${distname}.tar.gz md5 7cf99861ca6164da035c9cd258137f7e |
---|
22 | |
---|
23 | depends_build bin:perl:perl5.8 lib:libgmp.3:gmp |
---|
24 | |
---|
25 | configure.cmd perl Configure.pl |
---|
26 | configure.args --prefix='${prefix}'/lib/parrot --jitcapable --optimize |
---|
27 | |
---|
28 | build.type gnu |
---|
29 | build.cmd make |
---|
30 | build.target |
---|
31 | |
---|
32 | test.run yes |
---|
33 | test.cmd make |
---|
34 | test.target test |
---|
35 | test.dir ${worksrcpath} |
---|
36 | |
---|
37 | destroot.type gnu |
---|
38 | destroot.cmd make install PREFIX=${destroot}${prefix}/lib/parrot |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | set bindir ${destroot}${prefix}/bin |
---|
42 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
43 | set parrotpath ${destroot}${prefix}/lib/parrot |
---|
44 | system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot" |
---|
45 | |
---|
46 | xinstall -m 755 -d ${docdir} |
---|
47 | system "cd ${parrotpath} && mv LICENSES ${docdir}" |
---|
48 | system "cd ${parrotpath} && mv NEWS ${docdir}" |
---|
49 | system "cd ${parrotpath} && mv PBC_COMPAT ${docdir}" |
---|
50 | system "cd ${parrotpath} && mv PLATFORMS ${docdir}" |
---|
51 | system "cd ${parrotpath} && mv README* ${docdir}" |
---|
52 | system "cd ${parrotpath} && mv RESPONSIBLE_PARTIES ${docdir}" |
---|
53 | system "cd ${parrotpath} && mv TODO ${docdir}" |
---|
54 | system "cd ${parrotpath} && mv VERSION ${docdir}" |
---|
55 | system "cd ${parrotpath} && mv examples ${docdir}" |
---|
56 | |
---|
57 | system "cd ${parrotpath}/include && mv parrot ${destroot}${prefix}/include" |
---|
58 | } |
---|