[97992] trunk/dports/math/petsc/Portfile

mmoll at macports.org mmoll at macports.org
Fri Sep 21 07:22:10 PDT 2012


Revision: 97992
          http://trac.macports.org//changeset/97992
Author:   mmoll at macports.org
Date:     2012-09-21 07:22:10 -0700 (Fri, 21 Sep 2012)
Log Message:
-----------
math/petsc: check for hdf5-18+fortran in pre-configure phase, use conflicts_build port group

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

Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile	2012-09-21 13:53:23 UTC (rev 97991)
+++ trunk/dports/math/petsc/Portfile	2012-09-21 14:22:10 UTC (rev 97992)
@@ -1,9 +1,11 @@
 # $Id$
 
 PortSystem	1.0
+PortGroup   conflicts_build 1.0
 
 name		petsc
 version     3.3-p3
+revision    1
 categories  math science
 maintainers	mmoll
 description	Portable, Extensible Toolkit for Scientific Computation
@@ -44,13 +46,10 @@
                     --with-hdf5-dir=${prefix} \
                     --with-yaml-dir=${prefix}
 
-pre-fetch {
+pre-configure {
     if {![file exists ${prefix}/lib/libhdf5_fortran.a]} {
         return -code error "Please install hdf5-18 with the +fortran variant enabled first."
     }
-}
-
-pre-configure {
     configure.args-append \
         --COPTFLAGS="${configure.optflags}" \
         --CXXOPTFLAGS="${configure.optflags}" \
@@ -64,6 +63,8 @@
     }
 }
 
+conflicts_build     petsc
+
 variant openmpi description {Build using the OpenMPI compiler} conflicts mpich2 {
     depends_lib-append port:openmpi
     configure.args-append \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120921/1c351061/attachment-0001.html>


More information about the macports-changes mailing list