source: trunk/dports/java/fantom/Portfile @ 84550

Last change on this file since 84550 was 84550, checked in by snc@…, 9 years ago

modelines

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