source: trunk/dports/java/fantom/Portfile

Last change on this file was 88977, checked in by ryandesign@…, 6 years ago

fantom: update to 1.0.61; simplify deletion of .exe's; use ln for symlink creation to fix installation problem on Leopard and earlier; fix livecheck by using googlecode master_sites shortcut; see #32798 (maintainer timout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 88977 2012-01-15 22:39:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                fantom
7version             1.0.61
8categories          java lang devel
9maintainers         hum.ph:m
10platforms           darwin
11supported_archs     noarch
12
13description         The Language Formerly Known as Fan.
14long_description    Fantom is designed as a practical programming \
15                    language to make it easy and fun to get real work \
16                    done. It is not an academic language to explore \
17                    bleeding edge theories, but based on solid real \
18                    world experience. During its design we set out to \
19                    solve what we perceived were some real problems \
20                    with Java and C#.
21
22homepage            http://fantom.org/
23master_sites        googlecode:fan
24use_zip             yes
25
26checksums           rmd160  8c476f4b6d73bc675303ff3b8ec91e8ffd054818 \
27                    sha256  b8f45d0f7a2bd92910e7da4e45fb2f8bc8ff61e60da4b950e427f827d288d7ee
28
29depends_build       bin:java:kaffe
30
31use_configure       no
32
33build               {}
34
35destroot {
36
37    set fantomdir ${destroot}${prefix}/share/java/${name}
38
39    xinstall -m 755 -d ${fantomdir}
40
41    eval delete [glob ${worksrcpath}/bin/*.exe]
42
43    file copy ${worksrcpath}/adm \
44              ${worksrcpath}/bin \
45              ${worksrcpath}/etc \
46              ${worksrcpath}/examples \
47              ${worksrcpath}/lib \
48              ${worksrcpath}/src \
49              ${fantomdir}
50
51    foreach f [glob -directory ${fantomdir}/bin *] {
52        set basename [file tail $f]
53        file attributes $f -permissions +x
54        ln -s ../share/java/${name}/bin/${basename} ${destroot}${prefix}/bin
55    }
56
57
58}
59
60notes               "
61To use fantom, add the following lines at the end of your .bash_profile:
62
63    export FAN_HOME=${prefix}/share/java/${name}
64    export FAN_ENV=util::PathEnv
65    export FAN_ENV_PATH=~/.fan/
66
67and:
68
69    mkdir ~/.fan
70"
Note: See TracBrowser for help on using the repository browser.