Ticket #28219: Portfile.2

File Portfile.2, 2.2 KB (added by m@…, 14 years ago)

fantom Portfile (version 2)

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup select    1.0
6
7name                fantom
8version             1.0.57
9revision            0
10
11categories          java lang devel
12maintainers         hum.ph:m
13platforms           darwin
14
15description         The Language Formerly Known as Fan.
16long_description    Fantom is designed as a practical programming \
17                    language to make it easy and fun to get real work \
18                    done. It is not an academic language to explore \
19                    bleeding edge theories, but based on solid real \
20                    world experience. During its design we set out to \
21                    solve what we perceived were some real problems \
22                    with Java and C#.
23
24homepage            http://fantom.org/
25
26master_sites        http://fan.googlecode.com/files/
27distname            fantom-${version}
28use_zip             yes
29
30checksums           md5    5f5b7fbaae4e2cf76ded359c57530af2 \
31                    sha1   4aba26250d525b8a0e9d20fb792c1e108f7c52a6 \
32                    rmd160 4cc371adb5eb6dfa9ee836ddd18c283f06872017
33
34depends_build       bin:java:kaffe
35
36use_configure       no
37
38build               {}
39
40destroot {
41
42    set fantomdir ${destroot}${prefix}/share/java/${name}
43
44    xinstall -m 755 -d ${fantomdir}
45
46    file copy ${worksrcpath}/adm \
47              ${worksrcpath}/bin \
48              ${worksrcpath}/doc \
49              ${worksrcpath}/etc \
50              ${worksrcpath}/examples \
51              ${worksrcpath}/lib \
52              ${worksrcpath}/src \
53              ${fantomdir}
54
55    foreach f [glob -directory ${fantomdir}/bin *.exe] {
56        file delete $f
57    }
58
59    foreach f [glob -directory ${fantomdir}/bin *] {
60        set basename [file tail $f]
61        file attributes $f -permissions +x
62            file link -s ${destroot}${prefix}/bin/${basename} ../share/java/${name}/bin/${basename}
63    }
64
65
66}
67
68notes               "
69To use fantom, add the following lines at the end of your .bash_profile:
70
71    export FAN_HOME=${prefix}/share/java/${name}
72    export FAN_ENV=util::PathEnv
73    export FAN_ENV_PATH=~/.fan/
74
75and:
76
77    mkdir ~/.fan
78"