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

Last change on this file since 29789 was 29789, checked in by ryandesign@…, 13 years ago

Set svn:keywords of all portfiles to Id as per current requirements

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 29789 2007-10-10 07:16:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                nu
6version             0.1.3
7categories          devel
8maintainers         eridius
9description         Nu is an interpreted object-oriented 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/
21extract.suffix      .tgz
22
23checksums           md5 574a54495deeca21977f9a217c01052c \
24                    sha1 9fd1b5bf97a02d81705735e90d34aefd57fc5061
25
26patchfiles          patch-Rakefile patch-Nukefile patch-Nukefile-single-arch patch-libffi-single-arch
27
28depends_build       port:pcre bin:rake:rb-rake
29
30use_configure       no
31test.run            yes
32test.cmd            nuke
33
34livecheck.check     regex
35livecheck.url       http://programming.nu/downloads
36livecheck.regex     {Nu-([\d.]+).tgz}
37
38platform darwin 8 {
39    # set up the variant for pre-build
40}
41
42variant universal {
43    patchfiles-delete patch-Nukefile-single-arch patch-libffi-single-arch
44}
45
46post-patch {
47    reinplace s|@@PREFIX@@|$prefix|g ${worksrcpath}/Rakefile
48   
49    # fix the tools
50    foreach tool [list enu nubile nudoc nuke nutest] {
51        reinplace s|/usr/local|$prefix| ${worksrcpath}/tools/$tool
52    }
53}
54
55pre-build {
56    if {[variant_isset darwin_8]} {
57        ui_info "$UI_PREFIX Building libffi"
58        system "cd ${worksrcpath}/libffi && rake"
59    }
60}
61
62build {
63    system "cd ${worksrcpath} && rake"
64    system "cd ${worksrcpath} && PREFIX=${prefix} ./mininush tools/nuke"
65}
66
67pre-destroot {
68    file mkdir ${destroot}/Library/Frameworks
69}
70
71destroot.cmd        "./mininush tools/nuke"
72destroot.destdir    ""
73destroot.env-append PREFIX=${prefix}
74destroot.env-append DESTDIR=${destroot}
Note: See TracBrowser for help on using the repository browser.