[87908] trunk/dports/net/net-snmp/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Dec 11 16:20:55 PST 2011


Revision: 87908
          http://trac.macports.org/changeset/87908
Author:   ryandesign at macports.org
Date:     2011-12-11 16:20:52 -0800 (Sun, 11 Dec 2011)
Log Message:
-----------
net-snmp: remove -arch flags from net-snmp-create-v3-user too; see #32507

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

Modified: trunk/dports/net/net-snmp/Portfile
===================================================================
--- trunk/dports/net/net-snmp/Portfile	2011-12-12 00:05:57 UTC (rev 87907)
+++ trunk/dports/net/net-snmp/Portfile	2011-12-12 00:20:52 UTC (rev 87908)
@@ -5,6 +5,7 @@
 
 name                    net-snmp
 version                 5.7.1
+revision                1
 categories              net
 license                 BSD
 platforms               darwin
@@ -72,12 +73,9 @@
 }
 
 post-build {
-    if {[variant_isset universal]} {
-        set my_archflags ${configure.universal_cflags}
-    } else {
-        set my_archflags ${configure.cc_archflags}
-    }
-    reinplace "s|${my_archflags}||g" ${worksrcpath}/${name}-config
+    reinplace -E {s|-arch [a-z0-9_]+||g} \
+        ${worksrcpath}/net-snmp-config \
+        ${worksrcpath}/net-snmp-create-v3-user
 }
 
 post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111211/d38095c0/attachment.html>


More information about the macports-changes mailing list