<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/29402d28e32e0fd43c1008d809ec519a0bf8fda9">https://github.com/macports/macports-ports/commit/29402d28e32e0fd43c1008d809ec519a0bf8fda9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 29402d28e32e0fd43c1008d809ec519a0bf8fda9
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Aug 26 19:19:06 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> petsc: sundials variant fails without suitesparse
</span>---
math/petsc/Portfile | 4 +++-
math/petsc/files/patch-sundials.py.diff | 12 ++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/petsc/Portfile b/math/petsc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5cf13e0..1b0bf80 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/petsc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/petsc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,6 +30,8 @@ depends_build-append \
</span> port:python27 \
port:c2html
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Sundials requires SuiteSparse
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-sundials.py.diff
</span> post-patch {
reinplace -W ${worksrcpath} "s,#!/usr/bin/env python,#!${prefix}/bin/python2.7," configure
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -128,7 +130,7 @@ variant suitesparse description {Build with CHOLMOD and UMFPACK} {
</span> configure.args-append --with-suitesparse-dir=${prefix}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant sundials description {Build with CVODE interface for TS} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant sundials description {Build with CVODE interface for TS} requires suitesparse {
</span> depends_lib-append port:sundials2
configure.args-append --with-sundials-dir=${prefix}
mpi.enforce_variant sundials2
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/petsc/files/patch-sundials.py.diff b/math/petsc/files/patch-sundials.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..6760051
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/petsc/files/patch-sundials.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- config/BuildSystem/config/packages/sundials.py.orig 2018-05-20 15:15:52.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config/BuildSystem/config/packages/sundials.py 2018-06-20 08:22:07.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18,7 +18,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ self.blasLapack = framework.require('config.packages.BlasLapack',self)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ self.mpi = framework.require('config.packages.MPI',self)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ self.mathlib = framework.require('config.packages.mathlib',self)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- self.deps = [self.mpi,self.blasLapack,self.mathlib]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ self.suiteSparse = framework.require('config.packages.SuiteSparse',self)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ self.deps = [self.mpi,self.blasLapack,self.mathlib,self.suiteSparse]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def formGNUConfigureArgs(self):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import os
</span></pre><pre style='margin:0'>
</pre>