[64197] trunk/dports/math/gts/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Wed Feb 24 18:39:27 PST 2010


Revision: 64197
          http://trac.macports.org/changeset/64197
Author:   mcalhoun at macports.org
Date:     2010-02-24 18:39:24 -0800 (Wed, 24 Feb 2010)
Log Message:
-----------
gts: check to see if a file exists before trying to patch it.

Modified Paths:
--------------
    trunk/dports/math/gts/Portfile

Modified: trunk/dports/math/gts/Portfile
===================================================================
--- trunk/dports/math/gts/Portfile	2010-02-25 00:54:00 UTC (rev 64196)
+++ trunk/dports/math/gts/Portfile	2010-02-25 02:39:24 UTC (rev 64197)
@@ -41,8 +41,10 @@
 
     post-configure {
         foreach arch ${cross_archs} {
-            reinplace "s|\\./predicates_init|${worksrcpath}-${run_arch}/src/predicates_init|" \
-                ${worksrcpath}-${arch}/src/Makefile
+            if { [file exists ${worksrcpath}-${arch}/src/Makefile] } {
+                reinplace "s|\\./predicates_init|${worksrcpath}-${run_arch}/src/predicates_init|" \
+                    ${worksrcpath}-${arch}/src/Makefile
+            }
         }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100224/1b78d403/attachment.html>


More information about the macports-changes mailing list