1 | # $Id: Portfile 44711 2009-01-02 09:47:08Z mcalhoun@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name parrot |
---|
6 | version 1.0.0 |
---|
7 | categories lang devel |
---|
8 | maintainers bfulgham coleda.com:will |
---|
9 | description Open source virtual machine (for Perl6 et al.) |
---|
10 | long_description \ |
---|
11 | Parrot is the new interpreter being designed from scratch to support \ |
---|
12 | the upcoming Perl 6 language. It is being designed as a standalone \ |
---|
13 | virtual machine that can be used to execute bytecode-compiled \ |
---|
14 | dynamic languages such as Perl 6, Perl 5, Python, Tcl, etc. |
---|
15 | |
---|
16 | platforms darwin |
---|
17 | homepage http://www.parrotcode.org/ |
---|
18 | master_sites ftp://ftp.parrot.org/pub/parrot/releases/stable/${version}/ |
---|
19 | |
---|
20 | checksums md5 649ce1fb7c0edaf89dc1cd52ff267b1a \ |
---|
21 | sha1 9e028f5fff38a332c13ad4389652a016d7a824f7 \ |
---|
22 | rmd160 46f60accd33f16cc910f4ea03840badc358d22c7 |
---|
23 | |
---|
24 | depends_build bin:perl:perl5 |
---|
25 | depends_lib port:gmp port:icu |
---|
26 | |
---|
27 | configure.cmd perl Configure.pl |
---|
28 | configure.pre_args --prefix=${prefix}/lib/parrot |
---|
29 | configure.args --optimize |
---|
30 | |
---|
31 | destroot.target install |
---|
32 | |
---|
33 | build.type gnu |
---|
34 | build.target |
---|
35 | |
---|
36 | test.run yes |
---|
37 | test.target test |
---|
38 | |
---|
39 | destroot.destdir PREFIX=${destroot}${prefix}/lib/parrot |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | set bindir ${destroot}${prefix}/bin |
---|
43 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
44 | system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot" |
---|
45 | system "cd ${prefix}/lib/parrot/bin && install_name_tool -change ${workpath}/parrot-${version}/blib/lib/libparrot.dylib ${prefix}/lib/parrot/lib/libparrot.dylib ${prefix}/lib/parrot/bin/parrot" |
---|
46 | |
---|
47 | xinstall -m 755 -d ${docdir} |
---|
48 | } |
---|