[84826] trunk/dports/devel
and.damore at macports.org
and.damore at macports.org
Sun Oct 2 09:52:46 PDT 2011
Revision: 84826
http://trac.macports.org/changeset/84826
Author: and.damore at macports.org
Date: 2011-10-02 09:52:41 -0700 (Sun, 02 Oct 2011)
Log Message:
-----------
new port nu2: version 2 of nu programming language, targets 10.7+ only
Added Paths:
-----------
trunk/dports/devel/nu2/
trunk/dports/devel/nu2/Portfile
trunk/dports/devel/nu2/files/
trunk/dports/devel/nu2/files/patch-tools_nuke.diff
Added: trunk/dports/devel/nu2/Portfile
===================================================================
--- trunk/dports/devel/nu2/Portfile (rev 0)
+++ trunk/dports/devel/nu2/Portfile 2011-10-02 16:52:41 UTC (rev 84826)
@@ -0,0 +1,69 @@
+# $Id$
+
+PortSystem 1.0
+
+name nu2
+version 2.0.1
+set commit a23f145df3a55c90205d66b5f69228dbca92ac99
+categories devel
+maintainers nomaintainer
+license Apache-2.0
+conflicts nu
+description Nu is an interpreted object-oriented lisp-like language written in Objective-C. From version 2 Nu targets only from 10.7 onward.
+long_description \
+ Nu is an interpreted object-oriented language. \
+ It uses a Lisp-style grammar, but is semantically closer to Ruby than to Lisp. \
+ Nu is written in Objective-C and is designed to take full advantange of \
+ the Objective-C runtime and the many mature class libraries written in Objective-C. \
+ Nu code can fully interoperate with code written in Objective-C\; \
+ messages can be sent to and from objects with no concern for whether those messages \
+ are implemented in Objective-C or Nu.
+
+homepage http://programming.nu/
+platforms darwin
+master_sites https://nodeload.github.com/ksjogo/nu/tarball
+distfiles ${commit}
+distname ksjogo-nu-a23f145
+checksums rmd160 a339cd7cf72b865fab04ca09cb17d4a7f6426ca5 \
+ sha256 526871eea14c2dd997d9a441a89a1be0b0aa8de64729a6207175d517546b564b
+
+pre-fetch {
+ if {${os.major} < 11} then { error "Nu 2 requires Lion" }
+}
+
+patchfiles patch-tools_nuke.diff
+post-patch {
+ #reinplace {s|clang|llvm-gcc-4.2|} ${worksrcpath}/Makefile
+ reinplace "s|\$(DEVROOT)/usr/bin/clang|${configure.cc}|" ${worksrcpath}/Makefile
+ reinplace "s|#{DEVROOT}/usr/bin/clang|${configure.cc}|" ${worksrcpath}/Nukefile
+ reinplace {s|"i386"||} ${worksrcpath}/Nukefile
+ reinplace "s|{@destdir}/Library|{@destdir}${prefix}/Library|" ${worksrcpath}/Nukefile
+ reinplace "s|/Library/Frameworks|${frameworks_dir}|" ${worksrcpath}/tools/nuke
+}
+
+depends_build port:pkgconfig
+depends_lib port:libffi \
+ port:pcre \
+ port:libedit
+
+use_configure no
+variant universal {}
+
+test.run yes
+test.cmd nuke
+
+livecheck.type regex
+livecheck.url http://programming.nu/downloads
+livecheck.regex {Nu-([\d.]+).tgz}
+
+pre-build {
+ system "cd ${worksrcpath} && make PREFIX=${prefix} CC=${configure.cc}"
+}
+
+build.cmd "./mininush tools/nuke"
+build.target
+build.env PREFIX=${prefix}
+
+destroot.destdir
+destroot.env-append PREFIX=${prefix} \
+ DESTDIR=${destroot}
Property changes on: trunk/dports/devel/nu2/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/nu2/files/patch-tools_nuke.diff
===================================================================
--- trunk/dports/devel/nu2/files/patch-tools_nuke.diff (rev 0)
+++ trunk/dports/devel/nu2/files/patch-tools_nuke.diff 2011-10-02 16:52:41 UTC (rev 84826)
@@ -0,0 +1,10 @@
+--- tools/nuke.orig 2011-09-26 23:13:08.000000000 +0200
++++ tools/nuke 2011-09-26 23:13:45.000000000 +0200
+@@ -568,6 +568,7 @@
+
+ ;; framework architecture-specific executable
+ (set @framework_executables (NSMutableArray array))
++ (set @framework_install_path "#{FRAMEWORK_ROOT}")
+ (@arch each:
+ (do (architecture)
+ (set framework_executable "build/#{architecture}/framework-#{@framework}")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111002/0adbb19d/attachment.html>
More information about the macports-changes
mailing list