<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a42bad1215aa43c33bd5f01967c6d5be330561d3">https://github.com/macports/macports-ports/commit/a42bad1215aa43c33bd5f01967c6d5be330561d3</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new a42bad1215a magic: Fix build on systems without python3 again
</span>a42bad1215a is described below

<span style='display:block; white-space:pre;color:#808000;'>commit a42bad1215aa43c33bd5f01967c6d5be330561d3
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Aug 29 02:56:34 2023 -0500

<span style='display:block; white-space:pre;color:#404040;'>    magic: Fix build on systems without python3 again
</span>---
 science/magic/Portfile | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/magic/Portfile b/science/magic/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c90d8d99194..2b0349840ca 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/magic/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/magic/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,13 +52,23 @@ configure.dir       ${worksrcpath}/scripts
</span> if {${os.platform} eq "darwin" && ${os.major} < 19} {
     depends_build-append \
                     port:python311
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    ac_cv_path_PYTHON3=${prefix}/bin/python3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.python \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${prefix}/bin/python3.11
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    ac_cv_path_PYTHON3=/usr/bin/python3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.python \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    /usr/bin/python3
</span> }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # https://github.com/RTimothyEdwards/magic/issues/265
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace -W ${worksrcpath}/scripts \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    "1s|^#!/usr/bin/env python3|#!${configure.python}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    makedbh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ac_cv_path_PYTHON3=${configure.python}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_parallel_build  no
 
 build.env           X11_LDFLAGS=-L${prefix}/lib
</pre><pre style='margin:0'>

</pre>