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

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

increase revision of ports depending on icu, for icu 49.1.2 update (#36396)

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