source: trunk/dports/devel/nu2/Portfile @ 89178

Last change on this file since 89178 was 89178, checked in by and.damore@…, 7 years ago

port nu2: updated to main github repository rather than a fork, revision bump, removed universal variant and listing x86_64 as only supported arch due to updated objC code, closing ticket #32887

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 89178 2012-01-20 11:31:31Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                nu2
6version             2.0.1
7revision            1
8categories          devel
9maintainers         nomaintainer
10license             Apache-2.0
11conflicts           nu
12description         Nu is an interpreted object-oriented lisp-like language written in Objective-C. From version 2 Nu targets only from 10.7 onward. 
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.
21
22homepage            http://programming.nu/
23master_sites        ${homepage}releases
24distname            Nu-${version}
25extract.suffix      .tgz
26
27platforms           darwin
28
29checksums           rmd160  b461b08fb7cf9e1a5569fbf85b411e62320f5cab \
30                    sha256  bfaf9f17a2dbf0ef85cb3db267f2d773b14504aedd78e16580a61cfed676c4f4
31
32use_configure       no
33universal_variant   no
34supported_archs     x86_64
35depends_build       port:pkgconfig
36depends_lib         port:libffi \
37                    port:pcre \
38                    port:libedit
39
40pre-fetch {
41     if {${os.major} < 11} then { error "Nu 2 requires Lion" }
42}
43
44patchfiles          patch-tools_nuke.diff \
45                    patch-Makefile.diff \
46                    patch-Nukefile.diff
47
48post-patch {
49    reinplace "s|\$(DEVROOT)/usr/bin/clang|${configure.cc}|"      ${worksrcpath}/Makefile
50    reinplace "s|#{DEVROOT}/usr/bin/clang|${configure.cc}|"       ${worksrcpath}/Nukefile
51    reinplace "s|{@destdir}/Library|{@destdir}${prefix}/Library|" ${worksrcpath}/Nukefile
52
53    # replace placeholders in source files 
54    reinplace "s|@ARCHS@|[join ${configure.build_arch} {" "}]|g" ${worksrcpath}/Nukefile
55    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Nukefile
56    reinplace "s|@SDKROOT@|${configure.sdkroot}|g" ${worksrcpath}/Nukefile
57    reinplace "s|@SDKFLAGS@|-isysroot ${developer_dir}/SDKs/MacOSX${macosx_deployment_target}.sdk|g" ${worksrcpath}/Nukefile
58
59    reinplace "s|/Library/Frameworks|${frameworks_dir}|"          ${worksrcpath}/tools/nuke
60}
61
62test.run            yes
63test.cmd            nuke
64
65livecheck.type      regex
66livecheck.url       http://programming.nu/downloads
67livecheck.regex     {Nu-([\d.]+).tgz}
68
69pre-build {
70    system -W ${worksrcpath} "make PREFIX=${prefix} CC=${configure.cc}"
71}
72
73build.cmd           "./mininush tools/nuke"
74build.target
75build.env           PREFIX=${prefix}
76
77destroot.destdir
78destroot.env-append PREFIX=${prefix} \
79                    DESTDIR=${destroot}
Note: See TracBrowser for help on using the repository browser.