<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[116395] trunk/dports/math/petsc/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/116395">116395</a></dd>
<dt>Author</dt> <dd>sean@macports.org</dd>
<dt>Date</dt> <dd>2014-01-23 12:15:54 -0800 (Thu, 23 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>petsc: update to 3.4.3 and use new port groups</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmathpetscPortfile">trunk/dports/math/petsc/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmathpetscPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/math/petsc/Portfile (116394 => 116395)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/petsc/Portfile        2014-01-23 20:15:49 UTC (rev 116394)
+++ trunk/dports/math/petsc/Portfile        2014-01-23 20:15:54 UTC (rev 116395)
</span><span class="lines">@@ -2,12 +2,12 @@
</span><span class="cx"> # $Id$
</span><span class="cx"> 
</span><span class="cx"> PortSystem          1.0
</span><del>-PortGroup           conflicts_build 1.0
-PortGroup           active_variants 1.1
</del><ins>+PortGroup           bitbucket 1.0
+PortGroup           mpi 1.0
</ins><span class="cx"> 
</span><del>-name                petsc
-version             3.3-p6
-revision            3
</del><ins>+mpi.setup
+
+bitbucket.setup     petsc petsc 3.4.3 v
</ins><span class="cx"> categories          math science
</span><span class="cx"> maintainers         sean
</span><span class="cx"> description         Portable, Extensible Toolkit for Scientific Computation
</span><span class="lines">@@ -21,94 +21,146 @@
</span><span class="cx">                     \texport PETSC_DIR=${prefix}/lib/petsc&quot;
</span><span class="cx"> 
</span><span class="cx"> platforms           darwin
</span><del>-homepage            http://www.mcs.anl.gov/petsc/petsc-as/
-master_sites        ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/ \
-                    http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
-distname            ${name}-lite-${version}
-worksrcdir          ${name}-${version}
</del><span class="cx"> universal_variant   no
</span><span class="cx"> 
</span><del>-checksums           rmd160  a0aedc01995d60340e302140293d82dcb1ca356c \
-                    sha256  09e03c1d871a44e4322d61b007bbefd0a3e0cea5f5568b8ce243b4ef7c19b0b0
</del><ins>+checksums           rmd160  4956e7161431759efd924b5e897715c63c5343d2 \
+                    sha256  60e2ae4d11bd6481cc8182bada23a7a0c9b9b849a986e33c12d6850147cf50a6
</ins><span class="cx"> 
</span><del>-depends_build-append \
-                    port:cmake
-depends_lib-append  port:hdf5-18 \
-                    port:libyaml
</del><ins>+use_parallel_build  no
</ins><span class="cx"> 
</span><del>-require_active_variants hdf5-18 fortran
</del><ins>+depends_build       port:cmake
</ins><span class="cx"> 
</span><span class="cx"> configure.args      --prefix=${prefix}/lib/petsc \
</span><del>-                    --with-mpi=1 \
-                    --with-clanguage=C++ \
-                    --download-ml \
-                    --download-metis \
-                    --download-parmetis \
-                    --download-blacs \
-                    --download-scalapack \
-                    --download-mumps \
-                    --download-ptscotch \
-                    --with-hdf5-dir=${prefix} \
-                    --with-yaml-dir=${prefix}
</del><ins>+                    --with-valgrind=0 \
+                    --with-mpi=0 \
+                    --with-fc=0 \
+                    --with-shared-libraries
</ins><span class="cx"> 
</span><span class="cx"> pre-configure {
</span><del>-    if {![file exists ${prefix}/lib/libhdf5_fortran.a]} {
-        return -code error &quot;Please install hdf5-18 with the +fortran variant enabled first.&quot;
-    }
</del><span class="cx">     configure.args-append \
</span><ins>+        --CC=&quot;${configure.cc}&quot; \
+        --CXX=&quot;${configure.cxx}&quot; \
+        --FC=&quot;${configure.fc}&quot; \
</ins><span class="cx">         --COPTFLAGS=&quot;${configure.optflags}&quot; \
</span><span class="cx">         --CXXOPTFLAGS=&quot;${configure.optflags}&quot; \
</span><span class="cx">         --FOPTFLAGS=&quot;${configure.optflags}&quot; \
</span><span class="cx">         --LDFLAGS=&quot;${configure.ldflags}&quot; \
</span><span class="cx">         --CFLAGS=&quot;${configure.cflags}&quot; \
</span><span class="cx">         --CXXFLAGS=&quot;${configure.cxxflags}&quot;
</span><ins>+
+    if {[mpi_variant_isset]} {
+        configure.args-delete --with-mpi=0 \
+                              --with-fc=0
+    } elseif {[fortran_variant_isset]} {
+        configure.args-delete --with-fc=0
+    }
+
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-conflicts_build     petsc
</del><ins>+variant accelerate description {Use Accelerate framework for LAPACK} conflicts atlas {
+    configure.args-append --with-blas-lapack-lib=/System/Library/Frameworks/Accelerate.framework/Versions/Current/Accelerate
+}
</ins><span class="cx"> 
</span><del>-variant openmpi description {Build using the OpenMPI compiler} conflicts mpich {
-    depends_lib-append port:openmpi
-    configure.args-append \
-        --with-cc=${prefix}/bin/openmpicc \
-        --with-cxx=${prefix}/bin/openmpicxx \
-        --with-fc=${prefix}/bin/openmpif90 \
-        --with-mpiexec=${prefix}/bin/openmpiexec
</del><ins>+variant atlas description {Use Atlas for LAPACK} conflicts accelerate {
+    configure.args-append --with-blas-lapack-lib=${prefix}/lib/libtatlas.dylib
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-variant mpich description {Build using the MPICH compiler} conflicts openmpi {
-    depends_lib-append path:bin/mpicc-mp:mpich-default
-    configure.args-append \
-        --with-cc=${prefix}/bin/mpicc-mp \
-        --with-cxx=${prefix}/bin/mpicxx-mp \
-        --with-fc=${prefix}/bin/mpif90-mp \
-        --with-mpiexec=${prefix}/bin/mpiexec-mp
</del><ins>+variant complex description {Build with support for complex numbers} conflicts sundials {
+    configure.args-append --with-scalar-type=complex
+    configure.args-append --with-clanguage=C++
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-variant accelerate description {Use Accelerate framework for LAPACK} conflicts atlas {
-    configure.args-append \
-        --with-blas-lib=/usr/lib/libblas.dylib \
-        --with-lapack-lib=/usr/lib/liblapack.dylib
-    post-configure {
-        reinplace &quot;s|-L/usr/lib -llapack -lblas|-Wl,-framework -Wl,Accelerate|g&quot; ${worksrcpath}/arch-darwin-cxx-debug/conf/petscvariables
-    }
</del><ins>+variant suitesparse description {Build with CHOLDMOD and UMFPACK} {
+    depends_lib-append    port:SuiteSparse
+    configure.args-append --with-cholmod-dir=${prefix} \
+                          --with-umfpack-dir=${prefix}
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-variant atlas description {Use Atlas for LAPACK} conflicts accelerate {
-    configure.args-append \
-        --with-blas-lapack-lib=${prefix}/lib/libtatlas.dylib
</del><ins>+variant sundials description {Build with CVODE interface for TS} {
+    depends_lib-append    port:sundials
+    configure.args-append --with-sundials-dir=${prefix}
+    mpi.enforce_variant   sundials
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-if {![variant_isset mpich]} {
-    default_variants +openmpi
</del><ins>+variant superlu description {Build with SuperLU interface for a serial direct solver} {
+    depends_lib-append    port:superlu
+    configure.args-append --with-superlu-dir=${prefix}
</ins><span class="cx"> }
</span><ins>+
+variant mumps description {Build with MUMPS interface for a parallel direct solver} {
+    depends_lib-append    port:mumps
+    configure.args-append --with-scalapack-dir=${prefix} \
+                          --with-mumps-dir=${prefix}
+    mpi.enforce_variant   mumps
+}
+
+variant superlu_dist description {Build with SuperLU_DIST interface for a parallel direct solver} requires parmetis {
+    depends_lib-append    port:superlu_dist
+    configure.args-append --with-superlu_dist-dir=${prefix}
+    mpi.enforce_variant   superlu_dist
+}
+
+variant ml description {Build with ML interface for a sparse parallel solver} {
+    depends_lib-append    port:ml
+    configure.args-append --with-ml-dir=${prefix}
+    mpi.enforce_variant   ml
+}
+
+variant hypre description {Build with HYPRE interface for a sparse parallel solver} {
+    depends_lib-append    port:hypre
+    configure.args-append --with-hypre-dir=${prefix}
+    mpi.enforce_variant   hypre
+}
+
+variant parmetis description {Build with ParMetis interface for parallel graph partitioning} {
+    depends_lib-append    port:metis \
+                          port:parmetis
+    configure.args-append --with-metis-dir=${prefix} \
+                          --with-parmetis-dir=${prefix}
+    mpi.enforce_variant   parmetis
+}
+
+variant hdf5 description {Build with HDF5 interface for parallel file io} {
+    depends_lib-append    port:hdf5-18
+    configure.args-append --with-hdf5-dir=${prefix}
+
+    mpi.enforce_variant   hdf5-18
+}
+
+variant netcdf description {Build with NetCDF interface for parallel file io} {
+    depends_lib-append    port:netcdf
+    configure.args-append --with-netcdf-dir=${prefix}
+    mpi.enforce_variant   netcdf
+}
+
+variant fftw description {Build with FFTW interface (requires MPI)} {
+    depends_lib-append    port:fftw-3
+    configure.args-append --with-fftw-dir=${prefix}
+    mpi.enforce_variant   fftw-3
+}
+
+variant yaml description {Build with YAML interface for option reading} {
+    depends_lib-append    port:libyaml
+    configure.args-append --with-yaml-dir=${prefix}
+}
+
+variant valgrind description {Build with valgrind support} {
+    depends_lib-append    port:valgrind
+    configure.args-delete --with-valgrind=0
+    configure.args-append --with-valgrind-dir=${prefix}
+}
+
+variant debug description {Build with debug support} {
+    configure.args-delete --with-debugging=0
+    configure.args-append --with-debugging=1
+}
+
+if {![mpi_variant_isset]} {
+    default_variants +mpich
+}
+
</ins><span class="cx"> if {![variant_isset atlas]} {
</span><span class="cx">     default_variants +accelerate
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> destroot.destdir    DESTDIR=${destroot}${prefix}/lib/petsc
</span><del>-
-livecheck.type      regex
-livecheck.url       http://www.mcs.anl.gov/petsc/petsc-2/download/index.html
-livecheck.regex     petsc-lite-(\[0-9.\]+(-p\[0-9\]+))\\.tar\\.gz
-
-variant mpich2 requires mpich description {Legacy compatibility variant} {}
</del></span></pre>
</div>
</div>

</body>
</html>