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

mmoll at macports.org mmoll at macports.org
Thu Dec 13 21:43:51 PST 2012


Revision: 100486
          https://trac.macports.org/changeset/100486
Author:   mmoll at macports.org
Date:     2012-12-13 21:43:51 -0800 (Thu, 13 Dec 2012)
Log Message:
-----------
science/petsc: use active_variants portgroup, clean up

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

Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile	2012-12-14 05:35:08 UTC (rev 100485)
+++ trunk/dports/math/petsc/Portfile	2012-12-14 05:43:51 UTC (rev 100486)
@@ -2,6 +2,7 @@
 
 PortSystem	1.0
 PortGroup   conflicts_build 1.0
+PortGroup   active_variants 1.1
 
 name		petsc
 version     3.3-p3
@@ -33,6 +34,8 @@
 depends_lib-append  port:hdf5-18 \
                     port:libyaml
 
+require_active_variants hdf5-18 fortran
+
 configure.args      --prefix=${prefix}/lib/petsc \
                     --with-mpi=1 \
                     --with-clanguage=C++ \
@@ -57,10 +60,6 @@
         --LDFLAGS="${configure.ldflags}" \
         --CFLAGS="${configure.cflags}" \
         --CXXFLAGS="${configure.cxxflags}"
-    if {[file exists ${prefix}/lib/petsc/lib/libpetsc.a]} {
-        ui_error "petsc must be deactivated before upgrade."
-        error "Please run `sudo port deactivate petsc` and try again."
-    }
 }
 
 conflicts_build     petsc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121213/de057375/attachment-0001.html>


More information about the macports-changes mailing list