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
RevLine 
[29586]1# $Id: Portfile 66285 2010-04-08 08:09:09Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                nu
[49112]6version             0.3.3
[29586]7categories          devel
8maintainers         eridius
[30022]9description         Nu is an interpreted object-oriented lisp-like language written in Objective-C.
[29586]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/
[49112]21distname            Nu-${version}
[29586]22extract.suffix      .tgz
23
[49112]24checksums           md5 45eabf715d3c09b41b5b07c9c93c0a7e \
25                    sha1 c00a2bbc039c438eeb0b16abf4a5f4379a3c48ff
[29586]26
[49112]27patchfiles          patch-libffi-single-arch patch-Nukefile
[29586]28
[29770]29depends_build       port:pcre bin:rake:rb-rake
[29586]30
31use_configure       no
32test.run            yes
33test.cmd            nuke
34
[57375]35livecheck.type      regex
[29769]36livecheck.url       http://programming.nu/downloads
37livecheck.regex     {Nu-([\d.]+).tgz}
38
39variant universal {
[30986]40    patchfiles-delete patch-libffi-single-arch
[49112]41    patchfiles-delete patch-Nukefile
[29769]42}
43
[29586]44post-patch {
[29587]45    # fix the tools
[30986]46    reinplace s|/usr/local|$prefix| ${worksrcpath}/tools/nubile
[30023]47   
48    # fix the examples
49    reinplace s|/usr/local|$prefix| ${worksrcpath}/examples/NuAnywhere/nu-anywhere
[29586]50}
51
52pre-build {
[66285]53    if {${os.platform} == "darwin" && ${os.major} == 8} {
[29586]54        ui_info "$UI_PREFIX Building libffi"
55        system "cd ${worksrcpath}/libffi && rake"
56    }
57}
58
59build {
[30986]60    system "cd ${worksrcpath} && PREFIX=${prefix} rake"
[29769]61    system "cd ${worksrcpath} && PREFIX=${prefix} ./mininush tools/nuke"
[29586]62}
63
64pre-destroot {
65    file mkdir ${destroot}/Library/Frameworks
66}
67
68destroot.cmd        "./mininush tools/nuke"
69destroot.destdir    ""
[29769]70destroot.env-append PREFIX=${prefix}
71destroot.env-append DESTDIR=${destroot}
Note: See TracBrowser for help on using the repository browser.