source: trunk/dports/devel/nu/Portfile @ 66285

Last change on this file since 66285 was 66285, checked in by jmr@…, 10 years ago

adapt portfiles to removal of platforms as variants

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 66285 2010-04-08 08:09:09Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                nu
6version             0.3.3
7categories          devel
8maintainers         eridius
9description         Nu is an interpreted object-oriented lisp-like language written in Objective-C.
10long_description    \
11    Nu is an interpreted object-oriented language. \
12    It uses a Lisp-style grammar, but is semantically closer to Ruby than to Lisp. \
13    Nu is written in Objective-C and is designed to take full advantange of \
14    the Objective-C runtime and the many mature class libraries written in Objective-C. \
15    Nu code can fully interoperate with code written in Objective-C\; \
16    messages can be sent to and from objects with no concern for whether those messages \
17    are implemented in Objective-C or Nu.
18homepage            http://programming.nu/
19platforms           darwin
20master_sites        http://programming.nu/releases/
21distname            Nu-${version}
22extract.suffix      .tgz
23
24checksums           md5 45eabf715d3c09b41b5b07c9c93c0a7e \
25                    sha1 c00a2bbc039c438eeb0b16abf4a5f4379a3c48ff
26
27patchfiles          patch-libffi-single-arch patch-Nukefile
28
29depends_build       port:pcre bin:rake:rb-rake
30
31use_configure       no
32test.run            yes
33test.cmd            nuke
34
35livecheck.type      regex
36livecheck.url       http://programming.nu/downloads
37livecheck.regex     {Nu-([\d.]+).tgz}
38
39variant universal {
40    patchfiles-delete patch-libffi-single-arch
41    patchfiles-delete patch-Nukefile
42}
43
44post-patch {
45    # fix the tools
46    reinplace s|/usr/local|$prefix| ${worksrcpath}/tools/nubile
47   
48    # fix the examples
49    reinplace s|/usr/local|$prefix| ${worksrcpath}/examples/NuAnywhere/nu-anywhere
50}
51
52pre-build {
53    if {${os.platform} == "darwin" && ${os.major} == 8} {
54        ui_info "$UI_PREFIX Building libffi"
55        system "cd ${worksrcpath}/libffi && rake"
56    }
57}
58
59build {
60    system "cd ${worksrcpath} && PREFIX=${prefix} rake"
61    system "cd ${worksrcpath} && PREFIX=${prefix} ./mininush tools/nuke"
62}
63
64pre-destroot {
65    file mkdir ${destroot}/Library/Frameworks
66}
67
68destroot.cmd        "./mininush tools/nuke"
69destroot.destdir    ""
70destroot.env-append PREFIX=${prefix}
71destroot.env-append DESTDIR=${destroot}
Note: See TracBrowser for help on using the repository browser.