Ticket #18917: Portfile

File Portfile, 1.5 KB (added by jdfrens@…, 16 years ago)

working Portfile

Line 
1# $Id: Portfile 44711 2009-01-02 09:47:08Z mcalhoun@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 the new interpreter being designed from scratch to support \
12        the upcoming Perl 6 language.  It is being designed as a standalone \
13        virtual machine that can be used to execute bytecode-compiled \
14        dynamic languages such as Perl 6, Perl 5, Python, Tcl, etc.
15
16platforms               darwin
17homepage                http://www.parrotcode.org/
18master_sites            ftp://ftp.parrot.org/pub/parrot/releases/stable/${version}/
19
20checksums               md5 649ce1fb7c0edaf89dc1cd52ff267b1a \
21                        sha1 9e028f5fff38a332c13ad4389652a016d7a824f7 \
22                        rmd160 46f60accd33f16cc910f4ea03840badc358d22c7
23
24depends_build           bin:perl:perl5
25depends_lib             port:gmp port:icu
26
27configure.cmd           perl Configure.pl
28configure.pre_args      --prefix=${prefix}/lib/parrot
29configure.args          --optimize
30
31destroot.target         install
32
33build.type              gnu
34build.target
35
36test.run                yes
37test.target             test
38
39destroot.destdir         PREFIX=${destroot}${prefix}/lib/parrot
40
41post-destroot {
42        set bindir      ${destroot}${prefix}/bin
43        set docdir      ${destroot}${prefix}/share/doc/${name}
44        system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot"
45        system "cd ${prefix}/lib/parrot/bin && install_name_tool -change ${workpath}/parrot-${version}/blib/lib/libparrot.dylib ${prefix}/lib/parrot/lib/libparrot.dylib ${prefix}/lib/parrot/bin/parrot"
46
47        xinstall -m 755 -d ${docdir}
48}