[62792] trunk/dports/science/clhep/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Jan 17 12:29:50 PST 2010


Revision: 62792
          http://trac.macports.org/changeset/62792
Author:   ryandesign at macports.org
Date:     2010-01-17 12:29:47 -0800 (Sun, 17 Jan 2010)
Log Message:
-----------
clhep: use fs-traverse instead of exec find to find the configure scripts to be fixed

Modified Paths:
--------------
    trunk/dports/science/clhep/Portfile

Modified: trunk/dports/science/clhep/Portfile
===================================================================
--- trunk/dports/science/clhep/Portfile	2010-01-17 20:23:56 UTC (rev 62791)
+++ trunk/dports/science/clhep/Portfile	2010-01-17 20:29:47 UTC (rev 62792)
@@ -19,7 +19,9 @@
 worksrcdir          ${version}/CLHEP
 
 post-patch {
-    foreach file [exec find ${worksrcpath} -name "configure*"] {
-        reinplace "s:^g++):*g++*):g" ${file}
+    fs-traverse file ${worksrcpath} {
+        if {"configure" == [file tail ${file}]} {
+            reinplace "s:^g++):*g++*):g" ${file}
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100117/360915db/attachment.html>


More information about the macports-changes mailing list