[118958] trunk/dports/science/mpich/Portfile

sean at macports.org sean at macports.org
Sun Apr 13 19:33:50 PDT 2014


Revision: 118958
          https://trac.macports.org/changeset/118958
Author:   sean at macports.org
Date:     2014-04-13 19:33:50 -0700 (Sun, 13 Apr 2014)
Log Message:
-----------
mpich: check for existence before deleting docs

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

Modified: trunk/dports/science/mpich/Portfile
===================================================================
--- trunk/dports/science/mpich/Portfile	2014-04-14 02:33:42 UTC (rev 118957)
+++ trunk/dports/science/mpich/Portfile	2014-04-14 02:33:50 UTC (rev 118958)
@@ -165,8 +165,12 @@
                 "/usr/bin/find . -type f -print0 | /usr/bin/xargs -0 -P ${build.jobs} /usr/bin/gzip -v"
         } else {
             # This version doesn't supply doc/manpages
-            delete ${destroot}${prefix}/share/man
-            delete ${destroot}${prefix}/share/doc
+            if {[file isdirectory ${destroot}${prefix}/share/man]} {
+                delete ${destroot}${prefix}/share/man
+            }
+            if {[file isdirectory ${destroot}${prefix}/share/doc]} {
+                delete ${destroot}${prefix}/share/doc
+            }
         }
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140413/6dba2b21/attachment.html>


More information about the macports-changes mailing list