[82653] trunk/dports/science/mpich2/Portfile

eborisch at macports.org eborisch at macports.org
Wed Aug 17 09:20:39 PDT 2011


Revision: 82653
          http://trac.macports.org/changeset/82653
Author:   eborisch at macports.org
Date:     2011-08-17 09:20:38 -0700 (Wed, 17 Aug 2011)
Log Message:
-----------
mpich2: Move lammpi conflict check into pre-configure and pre-build

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

Modified: trunk/dports/science/mpich2/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile	2011-08-17 16:08:27 UTC (rev 82652)
+++ trunk/dports/science/mpich2/Portfile	2011-08-17 16:20:38 UTC (rev 82653)
@@ -27,11 +27,20 @@
                     rmd160  ecd60567d80ad08ecd06e8fe8cfaeb626941f768
 
 # Don't build if lammpi is around.
-if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
-  ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
-  return -code error
+pre-configure {
+    if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
+      ui_error "Cannot co-exist with lammpi; please deactivate lammpi before configuring."
+      return -code error
+    }
 }
 
+pre-build {
+    if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
+      ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
+      return -code error
+    }
+}
+
 # Puts all entries in <prefix>/share into appropriate mpich2 subdirs
 destroot.args       PACKAGE=mpich2
 patchfiles          patch-src-util-createshlib.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110817/cb605eab/attachment-0001.html>


More information about the macports-changes mailing list