source: trunk/dports/devel/nu/Portfile

Last change on this file was 95899, checked in by jmr@…, 5 years ago

correct license formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 95899 2012-07-26 10:56:29Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                nu
6version             0.4.0
7revision            2
8categories          devel
9maintainers         nomaintainer
10license             Apache-2
11
12description         Nu is an interpreted object-oriented lisp-like language written in Objective-C.
13long_description    \
14    Nu is an interpreted object-oriented language. \
15    It uses a Lisp-style grammar, but is semantically closer to Ruby than to Lisp. \
16    Nu is written in Objective-C and is designed to take full advantange of \
17    the Objective-C runtime and the many mature class libraries written in Objective-C. \
18    Nu code can fully interoperate with code written in Objective-C\; \
19    messages can be sent to and from objects with no concern for whether those messages \
20    are implemented in Objective-C or Nu.
21homepage            http://programming.nu/
22platforms           darwin
23master_sites        http://programming.nu/releases/
24distname            Nu-${version}
25extract.suffix      .tgz
26
27checksums           sha1    02e0df424f18a6c6c3c3221699014018cabcd8bc \
28                    rmd160  31aa22c7a4dddd1135a55f6bdaf27b1f485ded43
29
30patchfiles          patch-Makefile.diff patch-Nukefile.diff
31
32depends_build       port:pkgconfig
33
34depends_lib         port:libffi port:pcre port:libedit
35
36use_configure       no
37variant universal {}
38
39test.run            yes
40test.cmd            nuke
41
42livecheck.type      regex
43livecheck.url       http://programming.nu/downloads
44livecheck.regex     {Nu-([\d.]+).tgz}
45
46post-patch {
47    if {[variant_isset universal]} {
48        set archs ${configure.universal_archs}
49    } else {
50        set archs ${configure.build_arch}
51    }
52    reinplace "s|@ARCHS@|[join ${archs} {" "}]|g" ${worksrcpath}/Nukefile
53    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Nukefile
54    reinplace "s|@SDKROOT@|${configure.sdkroot}|g" ${worksrcpath}/Nukefile
55    reinplace "s|/usr/local|${prefix}|g" \
56        ${worksrcpath}/tools/nubile \
57        ${worksrcpath}/examples/NuAnywhere/nu-anywhere
58}
59
60pre-build {
61    system -W ${worksrcpath} "make PREFIX=${prefix} CC=${configure.cc}"
62}
63
64build.cmd           "./mininush tools/nuke"
65build.target
66build.env           PREFIX=${prefix}
67
68pre-destroot {
69    file mkdir ${destroot}/Library/Frameworks
70}
71
72destroot.destdir
73destroot.env-append PREFIX=${prefix} \
74                    DESTDIR=${destroot}
Note: See TracBrowser for help on using the repository browser.