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