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

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

whitespace fixes (tabs to spaces, proper indentation)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 70101 2010-07-29 22:18:10Z tommyd@macports.org $
2
3PortSystem              1.0
4
5name                    parrot
6version                 1.0.0
7revision                1
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 649ce1fb7c0edaf89dc1cd52ff267b1a \
23                        sha1 9e028f5fff38a332c13ad4389652a016d7a824f7 \
24                        rmd160 46f60accd33f16cc910f4ea03840badc358d22c7
25
26depends_build           bin:perl:perl5
27depends_lib             port:gmp port:icu
28
29configure.cmd           perl Configure.pl
30configure.pre_args      --prefix=${prefix}/lib/parrot
31configure.args          --optimize
32
33destroot.target         install
34
35build.type              gnu
36build.target
37
38test.run                yes
39test.target             test
40
41destroot.destdir        PREFIX=${destroot}${prefix}/lib/parrot
42
43post-destroot {
44    set bindir ${destroot}${prefix}/bin
45    set docdir ${destroot}${prefix}/share/doc/${name}
46
47    set executables {
48        parrot parrot_config parrot_debugger
49        pbc_disassemble pbc_info pbc_merge pbc_to_exe pbc_dump
50    }
51
52    foreach exe $executables {
53        # fixup the library path
54        set old_path "${workpath}/parrot-${version}/blib/lib/libparrot.dylib"
55        set new_path "${prefix}/lib/parrot/lib/libparrot.${version}.dylib"
56
57        system "cd ${prefix}/lib/parrot/bin && \
58            install_name_tool -change \"$old_path\" \"$new_path\" ${exe}"
59
60        # install into the common area.
61        system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/${exe}"
62    }
63    xinstall -m 755 -d ${docdir}
64}
65
Note: See TracBrowser for help on using the repository browser.