[39799] trunk/dports/science/plplot/Portfile

takeshi at macports.org takeshi at macports.org
Thu Sep 4 19:01:41 PDT 2008


Revision: 39799
          http://trac.macports.org/changeset/39799
Author:   takeshi at macports.org
Date:     2008-09-04 19:01:40 -0700 (Thu, 04 Sep 2008)
Log Message:
-----------
plplot: checks if *.mod exits before copy for cmake 2.4.x and 2.6.x

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

Modified: trunk/dports/science/plplot/Portfile
===================================================================
--- trunk/dports/science/plplot/Portfile	2008-09-05 01:11:39 UTC (rev 39798)
+++ trunk/dports/science/plplot/Portfile	2008-09-05 02:01:40 UTC (rev 39799)
@@ -93,9 +93,14 @@
 build.dir               ${workpath}/build
 
 pre-destroot {
-	file copy ${workpath}/build/bindings/f95/plplot.mod ${workpath}/build/
-	file copy ${workpath}/build/bindings/f95/plplotp.mod ${workpath}/build/
-	file copy ${workpath}/build/bindings/f95/plplot_flt.mod ${workpath}/build/
+    set mods "${workpath}/build/bindings/f95/plplot.mod 
+	            ${workpath}/build/bindings/f95/plplotp.mod 
+              ${workpath}/build/bindings/f95/plplot_flt.mod"
+    foreach m $mods {
+        if {[file exists $m]} {
+            file copy $m ${workpath}/build/
+        }
+    }
 }
 
 platform i386 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080904/ad1bf9f7/attachment.html 


More information about the macports-changes mailing list