source: trunk/dports/devel/nu2/Portfile

Last change on this file was 128190, checked in by ryandesign@…, 3 years ago

nu2: update to 2.1.1 (#45881)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 128190 2014-11-16 03:38:08Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup           github 1.0
6
7github.setup        timburks nu 2.1.1 v
8name                nu2
9categories          devel
10maintainers         nomaintainer
11license             Apache-2
12conflicts           nu
13description         Nu is an interpreted object-oriented lisp-like language written in Objective-C.
14long_description    \
15    Nu is an interpreted object-oriented language. \
16    It uses a Lisp-style grammar, but is semantically closer to Ruby than to Lisp. \
17    Nu is written in Objective-C and is designed to take full advantange of \
18    the Objective-C runtime and the many mature class libraries written in Objective-C. \
19    Nu code can fully interoperate with code written in Objective-C\; \
20    messages can be sent to and from objects with no concern for whether those messages \
21    are implemented in Objective-C or Nu.
22
23homepage            http://programming.nu/
24
25platforms           darwin
26
27checksums           rmd160  9dbc66a462d1116659f4538eeff1f19216700dc2 \
28                    sha256  3254b3e4aa55086af7e0a28919358033cccbac6aec7d7addb3df62d1010445e2
29
30# error: instance variables may not be placed in class extension
31universal_variant   no
32supported_archs     x86_64
33
34depends_build       port:pkgconfig
35
36depends_lib         port:libffi \
37                    port:libedit
38
39platform darwin {
40    if {${os.major} < 11} {
41        pre-fetch {
42            return -code error "${subport} @${version} requires OS X 10.7 Lion or later"
43        }
44    }
45}
46
47patchfiles          patch-Makefile.diff \
48                    patch-Nukefile.diff \
49                    patch-tools-nuke.diff
50
51post-patch {
52    reinplace -W ${worksrcpath} "s|@ARCHS@|[join [get_canonical_archs] {" "}]|g" Nukefile
53    reinplace -W ${worksrcpath} "s|@CC@|${configure.cc}|g" tools/nuke
54    reinplace -W ${worksrcpath} "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" tools/nuke
55
56    if {${configure.sdkroot} ne ""} {
57        set sdk "-isysroot ${configure.sdkroot}"
58    } else { 
59        set sdk ""
60    }
61    reinplace -W ${worksrcpath} "s|@SDK@|${sdk}|g" Makefile Nukefile
62}
63
64use_configure       no
65
66pre-build {
67    system -W ${worksrcpath} "${build.env} make -j${build.jobs}"
68}
69
70build.cmd           ./mininush tools/nuke
71build.target
72build.env           CC="${configure.cc}" \
73                    PREFIX=${prefix}
74
75test.run            yes
76test.cmd            nuke
77
78destroot.destdir
79destroot.env-append DESTDIR=${destroot} \
80                    PREFIX=${prefix} \
81                    FRAMEWORKS_DIR=${frameworks_dir}
Note: See TracBrowser for help on using the repository browser.