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

Last change on this file since 48645 was 48645, checked in by macsforever2000@…, 8 years ago

Updated to version 1.0.0. (#18917)

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