<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/c0cea7246081d6723f955fdb7bea95dd9390716d">https://github.com/macports/macports-ports/commit/c0cea7246081d6723f955fdb7bea95dd9390716d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c0cea7246081d6723f955fdb7bea95dd9390716d
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Feb 22 10:05:10 2020 -0700

<span style='display:block; white-space:pre;color:#404040;'>    petsc: allow greater control on Python version
</span>---
 math/petsc/Portfile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

<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 cf1cf66..571a723 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;'>@@ -32,9 +32,12 @@ mpi.setup           default
</span> 
 use_parallel_build  no
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.version  27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_ver_dot  [join [split ${python.version} {}] "."]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append \
                     port:sowing \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    port:python27 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:python${python.version} \
</span>                     port:c2html
 
 # Sundials requires SuiteSparse
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,7 +45,7 @@ patchfiles-append   patch-sundials.py.diff
</span> # see https://gitlab.com/petsc/petsc/-/commit/0425e358a93e3df180e109da13d1c846f016d85b
 patchfiles-append   patch-superlu_dist.diff
 post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace -W ${worksrcpath} "s,#!/usr/bin/env python,#!${prefix}/bin/python2.7," configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace -W ${worksrcpath} "s,#!/usr/bin/env python,#!${prefix}/bin/python${python_ver_dot}," configure
</span> }
 
 pre-configure {
</pre><pre style='margin:0'>

</pre>