[92923] trunk/dports/devel/cloog/Portfile

adfernandes at macports.org adfernandes at macports.org
Thu May 10 14:30:54 PDT 2012


Revision: 92923
          https://trac.macports.org/changeset/92923
Author:   adfernandes at macports.org
Date:     2012-05-10 14:30:54 -0700 (Thu, 10 May 2012)
Log Message:
-----------
devel/cloog: fixed universal building (#34395) - fixed a bad commit

Modified Paths:
--------------
    trunk/dports/devel/cloog/Portfile

Modified: trunk/dports/devel/cloog/Portfile
===================================================================
--- trunk/dports/devel/cloog/Portfile	2012-05-10 21:15:42 UTC (rev 92922)
+++ trunk/dports/devel/cloog/Portfile	2012-05-10 21:30:54 UTC (rev 92923)
@@ -37,15 +37,16 @@
 
 post-build {
     # Remove extraneous '-arch' flag from the 'pkgconfig' files (#34395)
-    set files [glob -nocomplain -directory ${worksrcpath} *.pc */*.pc ]
+    foreach file [glob -nocomplain -directory ${worksrcpath} *.pc */*.pc] {
+        reinplace -E "s at -arch +\[A-Za-z0-9_\]+ *@@g" "${file}"
+    }
     if {[variant_isset universal]} {
         foreach arch ${universal_archs_to_use} {
-            lappend files [glob -nocomplain -directory ${worksrcpath}-${arch} *.pc */*.pc ]
+            foreach file [glob -nocomplain -directory ${worksrcpath}-${arch} *.pc */*.pc ] {
+                reinplace -E "s at -arch +\[A-Za-z0-9_\]+ *@@g" "${file}"
+            }
         }
     }
-    foreach file ${files} {
-        reinplace -E "s at -arch +\[A-Za-z0-9_\]+ *@@g" "${file}"
-    }
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120510/94fbd97d/attachment.html>


More information about the macports-changes mailing list