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

ryandesign at macports.org ryandesign at macports.org
Tue Oct 9 07:16:57 PDT 2012


Revision: 98590
          http://trac.macports.org//changeset/98590
Author:   ryandesign at macports.org
Date:     2012-10-09 07:16:57 -0700 (Tue, 09 Oct 2012)
Log Message:
-----------
mpich2: use conflicts_build portgroup

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

Modified: trunk/dports/science/mpich2/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile	2012-10-09 14:08:08 UTC (rev 98589)
+++ trunk/dports/science/mpich2/Portfile	2012-10-09 14:16:57 UTC (rev 98590)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           conflicts_build 1.0
 
 name                mpich2
 set pkgname         mpich2
@@ -40,23 +41,8 @@
 
 depends_lib-append  port:libxml2
 
-# Don't build if lammpi is around.
-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
-    }
-}
+conflicts_build         lammpi
 
-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
-    }
-}
-
 configure.args      --disable-dependency-tracking \
                     --disable-f77 \
                     --disable-fc \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121009/3bd0e3f8/attachment.html>


More information about the macports-changes mailing list