source: trunk/dports/lang/parrot/Portfile @ 76061

Last change on this file since 76061 was 76061, checked in by jmr@…, 7 years ago

parrot: update to 3.0.0 (#28100)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 76061 2011-02-17 14:14:23Z jmr@macports.org $
2
3PortSystem              1.0
4
5name                    parrot
6version                 3.0.0
7revision                0
8categories              lang devel
9maintainers             bfulgham coleda.com:will
10description             Open source virtual machine (for Perl6 et al.)
11long_description    \
12        Parrot is a virtual machine designed to efficiently compile and \
13        execute bytecode for dynamic languages. Parrot currently hosts a \
14        variety of language implementations in various stages of completion, \
15        including Tcl, Javascript, Ruby, Lua, Scheme, PHP, Python, Perl 6, \
16        and a .NET bytecode translator.
17
18platforms               darwin
19homepage                http://www.parrot.org/
20master_sites            ftp://ftp.parrot.org/pub/parrot/releases/stable/${version}/
21
22checksums               md5     fc1d88114636eff4fe7953de456cecfa \
23                        sha1    93cba01a96f4f94d89240ffb4ff47bbdce6641bb \
24                        rmd160  5217734e15bc6c3c73478a85e078b916bfd31ced
25
26depends_build           bin:perl:perl5
27depends_lib             port:gmp port:icu
28
29configure.cmd           perl Configure.pl
30configure.pre_args      --prefix=${prefix} \
31                        --mandir=${prefix}/share/man \
32                        --optimize
33
34destroot.target         install
35destroot.args           DESTDIR=${destroot}
36
37build.type              gnu
38build.target
39
40test.run                yes
41test.target             test
42
43post-destroot {
44    set bindir ${destroot}${prefix}/bin
45    set docdir ${destroot}${prefix}/share/doc/${name}
46
47    set executables {
48        ops2c parrot-nqp parrot_config parrot_nci_thunk_gen
49        pbc_dump pbc_to_exe parrot parrot-prove parrot_debugger
50        pbc_disassemble pbc_merge
51    }
52
53    foreach exe $executables {
54        # fixup the library path
55        set old_path "${workpath}/parrot-${version}/blib/lib/libparrot.dylib"
56        set new_path "${prefix}/lib/libparrot.${version}.dylib"
57
58        system "cd ${bindir} && \
59            install_name_tool -change \"$old_path\" \"$new_path\" ${exe}"
60    }
61    xinstall -m 755 -d ${docdir}
62}
63
Note: See TracBrowser for help on using the repository browser.