| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name parrot |
|---|
| 6 | version 0.5.2 |
|---|
| 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 http://www.cpan.org/authors/id/R/RG/RGRJR/ |
|---|
| 19 | |
|---|
| 20 | checksums md5 0a87f7e5437315f67c0848c5cb2b6d0b |
|---|
| 21 | |
|---|
| 22 | depends_build bin:perl:perl5.8 |
|---|
| 23 | depends_lib port:gmp port:icu |
|---|
| 24 | |
|---|
| 25 | configure.cmd perl Configure.pl |
|---|
| 26 | configure.pre_args --prefix=${prefix}/lib/parrot |
|---|
| 27 | # build static to avoid runtime lib issues for now |
|---|
| 28 | configure.args --optimize --parrot_is_shared=0 |
|---|
| 29 | |
|---|
| 30 | # install target is temporarily disabled as it might conflict with development |
|---|
| 31 | # users of a port should have no such trouble, however. |
|---|
| 32 | destroot.target reallyinstall |
|---|
| 33 | |
|---|
| 34 | build.type gnu |
|---|
| 35 | build.target |
|---|
| 36 | |
|---|
| 37 | test.run yes |
|---|
| 38 | test.target test |
|---|
| 39 | |
|---|
| 40 | destroot.destdir PREFIX=${destroot}${prefix}/lib/parrot |
|---|
| 41 | |
|---|
| 42 | post-destroot { |
|---|
| 43 | set bindir ${destroot}${prefix}/bin |
|---|
| 44 | set docdir ${destroot}${prefix}/share/doc/${name} |
|---|
| 45 | system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot" |
|---|
| 46 | |
|---|
| 47 | xinstall -m 755 -d ${docdir} |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | platform darwin 8 { |
|---|
| 51 | configure.args-append --cc=/usr/bin/gcc-4.0 --link=/usr/bin/gcc-4.0 \ |
|---|
| 52 | --ld=/usr/bin/gcc-4.0 --cxx=/usr/bin/g++-4.0 |
|---|
| 53 | } |
|---|