[89178] trunk/dports/devel/nu2

and.damore at macports.org and.damore at macports.org
Fri Jan 20 03:31:31 PST 2012


Revision: 89178
          http://trac.macports.org/changeset/89178
Author:   and.damore at macports.org
Date:     2012-01-20 03:31:31 -0800 (Fri, 20 Jan 2012)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/dports/devel/nu2/Portfile
    trunk/dports/devel/nu2/files/patch-Nukefile.diff
    trunk/dports/devel/nu2/files/patch-tools_nuke.diff

Modified: trunk/dports/devel/nu2/Portfile
===================================================================
--- trunk/dports/devel/nu2/Portfile	2012-01-20 09:18:27 UTC (rev 89177)
+++ trunk/dports/devel/nu2/Portfile	2012-01-20 11:31:31 UTC (rev 89178)
@@ -4,7 +4,7 @@
 
 name                nu2
 version             2.0.1
-set commit          a23f145df3a55c90205d66b5f69228dbca92ac99
+revision            1
 categories          devel
 maintainers         nomaintainer
 license             Apache-2.0
@@ -20,15 +20,18 @@
     are implemented in Objective-C or Nu.
 
 homepage            http://programming.nu/
+master_sites        ${homepage}releases
+distname            Nu-${version}
+extract.suffix      .tgz
+
 platforms           darwin
-master_sites        https://nodeload.github.com/ksjogo/nu/tarball
-distfiles           ${commit}
-distname            ksjogo-nu-a23f145
-checksums           rmd160  a339cd7cf72b865fab04ca09cb17d4a7f6426ca5 \
-                    sha256  526871eea14c2dd997d9a441a89a1be0b0aa8de64729a6207175d517546b564b
 
+checksums           rmd160  b461b08fb7cf9e1a5569fbf85b411e62320f5cab \
+                    sha256  bfaf9f17a2dbf0ef85cb3db267f2d773b14504aedd78e16580a61cfed676c4f4
+
 use_configure       no
-variant universal   {}
+universal_variant   no
+supported_archs     x86_64
 depends_build       port:pkgconfig
 depends_lib         port:libffi \
                     port:pcre \
@@ -46,14 +49,9 @@
     reinplace "s|\$(DEVROOT)/usr/bin/clang|${configure.cc}|"      ${worksrcpath}/Makefile
     reinplace "s|#{DEVROOT}/usr/bin/clang|${configure.cc}|"       ${worksrcpath}/Nukefile
     reinplace "s|{@destdir}/Library|{@destdir}${prefix}/Library|" ${worksrcpath}/Nukefile
-  
-    #target arch selection
-    if {[variant_isset universal]} {
-        set archs ${configure.universal_archs}
-    } else {
-        set archs ${configure.build_arch}
-    }
-    reinplace "s|@ARCHS@|[join ${archs} {" "}]|g" ${worksrcpath}/Nukefile
+
+    # replace placeholders in source files  
+    reinplace "s|@ARCHS@|[join ${configure.build_arch} {" "}]|g" ${worksrcpath}/Nukefile
     reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Nukefile
     reinplace "s|@SDKROOT@|${configure.sdkroot}|g" ${worksrcpath}/Nukefile
     reinplace "s|@SDKFLAGS@|-isysroot ${developer_dir}/SDKs/MacOSX${macosx_deployment_target}.sdk|g" ${worksrcpath}/Nukefile

Modified: trunk/dports/devel/nu2/files/patch-Nukefile.diff
===================================================================
--- trunk/dports/devel/nu2/files/patch-Nukefile.diff	2012-01-20 09:18:27 UTC (rev 89177)
+++ trunk/dports/devel/nu2/files/patch-Nukefile.diff	2012-01-20 11:31:31 UTC (rev 89178)
@@ -1,5 +1,5 @@
---- Nukefile.orig	2011-10-04 08:21:17.000000000 +0200
-+++ Nukefile	2011-10-04 08:25:35.000000000 +0200
+--- Nukefile.orig	2011-09-02 15:23:51.000000000 -0500
++++ Nukefile	2012-01-15 02:34:31.000000000 -0600
 @@ -59,14 +59,6 @@
  (if (NSFileManager directoryExistsNamed:"#{@prefix}/include") (@inc_dirs addObject:"#{@prefix}/include"))
  (if (NSFileManager directoryExistsNamed:"#{@prefix}/lib") (@lib_dirs addObject:"#{@prefix}/lib"))
@@ -43,11 +43,11 @@
  
  (set @cflags "-Wall -g -std=gnu99 -fPIC")
  
-@@ -114,10 +92,7 @@
+@@ -113,10 +92,7 @@
  (set @cflags (+ @cflags " -DHAVE_CONFIG_H"))
  
  (ifDarwin
--         (then (set @arch '("i386")))) ;; optionally add "ppc" or "ppc64" to the list
+-         (then (set @arch '()))) ;; optionally add "ppc" or "ppc64" to the list
 -
 -(if (or isSnowLeopard isLion)
 -	(then (set @arch (append @arch '("x86_64")))))

Modified: trunk/dports/devel/nu2/files/patch-tools_nuke.diff
===================================================================
--- trunk/dports/devel/nu2/files/patch-tools_nuke.diff	2012-01-20 09:18:27 UTC (rev 89177)
+++ trunk/dports/devel/nu2/files/patch-tools_nuke.diff	2012-01-20 11:31:31 UTC (rev 89178)
@@ -1,10 +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}")
+--- tools/nuke.orig	2011-09-02 15:23:51.000000000 -0500
++++ tools/nuke	2012-01-15 02:32:45.000000000 -0600
+@@ -579,6 +579,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/20120120/5d2a3422/attachment.html>


More information about the macports-changes mailing list