Ticket #5938: Portfile

File Portfile, 1.9 KB (added by bfulgham@…, 19 years ago)

Portfile to build parrot. No patches needed.

Line 
1# $Id: Portfile,v 1.6 2005/01/31 03:26:22 wbb4 Exp $
2
3PortSystem              1.0
4name                    parrot
5version                 0.3.1
6categories              lang devel
7maintainers             bfulgham@mac.com
8description             Open source virtual machine (for Perl and Python)
9long_description        \
10        Parrot is the new interpreter being designed from scratch to support \
11        the upcoming Perl 6 language.  It is being designed as a standalone \
12        virtual machine that can be used to execute bytecode-compiled \
13        dynamic languages such as Perl 6, Perl 5, Python, etc.
14
15platforms               darwin
16homepage                http://www.parrotcode.org/
17master_sites            ftp://ftp.cpan.org/pub/CPAN/authors/id/L/LT/LTOETSCH
18
19distname                parrot-${version}
20worksrcdir              ${distname}
21checksums               ${distname}.tar.gz md5 7cf99861ca6164da035c9cd258137f7e
22
23depends_build           bin:perl:perl5.8 lib:libgmp.3:gmp
24
25configure.cmd           perl Configure.pl
26configure.args          --prefix='${prefix}'/lib/parrot --jitcapable --optimize
27
28build.type              gnu
29build.cmd               make
30build.target           
31
32test.run                yes
33test.cmd                make
34test.target             test
35test.dir                ${worksrcpath}
36
37destroot.type           gnu
38destroot.cmd            make install PREFIX=${destroot}${prefix}/lib/parrot
39
40post-destroot {
41        set bindir      ${destroot}${prefix}/bin
42        set docdir      ${destroot}${prefix}/share/doc/${name}
43        set parrotpath  ${destroot}${prefix}/lib/parrot
44        system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot"
45
46        xinstall -m 755 -d ${docdir}
47        system "cd ${parrotpath} && mv LICENSES ${docdir}"
48        system "cd ${parrotpath} && mv NEWS ${docdir}"
49        system "cd ${parrotpath} && mv PBC_COMPAT ${docdir}"
50        system "cd ${parrotpath} && mv PLATFORMS ${docdir}"
51        system "cd ${parrotpath} && mv README* ${docdir}"
52        system "cd ${parrotpath} && mv RESPONSIBLE_PARTIES ${docdir}"
53        system "cd ${parrotpath} && mv TODO ${docdir}"
54        system "cd ${parrotpath} && mv VERSION ${docdir}"
55        system "cd ${parrotpath} && mv examples ${docdir}"
56
57        system "cd ${parrotpath}/include && mv parrot ${destroot}${prefix}/include"
58}