[87384] trunk/dports/net/netstrain

ryandesign at macports.org ryandesign at macports.org
Fri Nov 18 21:35:40 PST 2011


Revision: 87384
          http://trac.macports.org/changeset/87384
Author:   ryandesign at macports.org
Date:     2011-11-18 21:35:37 -0800 (Fri, 18 Nov 2011)
Log Message:
-----------
netstrain: fix build failure on Snow Leopard and up (#32121); ensure we're UsingTheRightCompiler and build arch; add universal variant; rewrite master_sites to avoid redirects

Modified Paths:
--------------
    trunk/dports/net/netstrain/Portfile

Added Paths:
-----------
    trunk/dports/net/netstrain/files/
    trunk/dports/net/netstrain/files/patch-net6emuconf.diff

Modified: trunk/dports/net/netstrain/Portfile
===================================================================
--- trunk/dports/net/netstrain/Portfile	2011-11-19 05:27:12 UTC (rev 87383)
+++ trunk/dports/net/netstrain/Portfile	2011-11-19 05:35:37 UTC (rev 87384)
@@ -12,9 +12,17 @@
 categories	net
 platforms	darwin 
 homepage	http://netstrain.sourceforge.net/
-master_sites    sourceforge
+master_sites    sourceforge:project/netstrain/netstrain/${version}
 checksums	md5 ce04b79ae18c5143991ace8661baadcf
+
+patchfiles	patch-net6emuconf.diff
+
 use_configure	no
+
+variant universal {}
+
+build.args	CC="${configure.cc} [get_canonical_archflags]"
+
 destroot 	{
 		file copy ${worksrcpath}/netstrain ${destroot}${prefix}/bin
 		file copy ${worksrcpath}/netstraind ${destroot}${prefix}/bin

Added: trunk/dports/net/netstrain/files/patch-net6emuconf.diff
===================================================================
--- trunk/dports/net/netstrain/files/patch-net6emuconf.diff	                        (rev 0)
+++ trunk/dports/net/netstrain/files/patch-net6emuconf.diff	2011-11-19 05:35:37 UTC (rev 87384)
@@ -0,0 +1,17 @@
+--- net6emuconf.orig	2002-08-10 04:40:28.000000000 -0500
++++ net6emuconf	2011-11-18 23:32:24.000000000 -0600
+@@ -101,14 +101,6 @@
+ 
+ 
+ 
+-if [ `uname` = "Darwin" ]; then
+-  case `uname -r` in [012345]*)   # up to Mac OS X 10.1.x / Darwin 5.x
+-    test_getaddrinfo=0            #  getaddrinfo() is somewhat broken
+-    echo "Skipping check for getaddrinfo() because it is known to be buggy on this"
+-    echo "system (Mac OS X up to 10.1.x alias Darwin up to 5.x). It will be emulated."
+-    ;;
+-  esac
+-fi
+ 
+ if [ $test_getaddrinfo -eq 1 ]; then
+   echo "Checking getaddrinfo()..."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111118/7e33287f/attachment-0001.html>


More information about the macports-changes mailing list