<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6459568ab5422568cb2a43c422622584162cd095">https://github.com/macports/macports-ports/commit/6459568ab5422568cb2a43c422622584162cd095</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 6459568ab54 glib2-upstream: patch all three styles of python shebangs - See: https://github.com/macports/macports-ports/commit/f30c7cad3b301e233d5693b4058fdbbbee8040ac#commitcomment-111714981
</span>6459568ab54 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6459568ab5422568cb2a43c422622584162cd095
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Wed May 3 20:14:54 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> glib2-upstream: patch all three styles of python shebangs
</span><span style='display:block; white-space:pre;color:#404040;'> - See: https://github.com/macports/macports-ports/commit/f30c7cad3b301e233d5693b4058fdbbbee8040ac#commitcomment-111714981
</span>---
devel/glib2-upstream/Portfile | 24 +++++++-----------------
1 file changed, 7 insertions(+), 17 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/glib2-upstream/Portfile b/devel/glib2-upstream/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8dcb58e6530..1c9a7171d8e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/glib2-upstream/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/glib2-upstream/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -133,23 +133,13 @@ post-patch {
</span> glib/gutils.c \
glib/gspawn.c
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s|/usr/bin/env python3$|${configure.python}|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- docs/reference/gio/concat-files-helper.py \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- gio/data-to-c.py \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- glib/update-gtranslit.py \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- tools/gen-visibility-macros.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set testpath_list [list \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/gio/tests \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/glib/tests \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/gobject/tests \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach p ${testpath_list} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fs-traverse f ${p} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[string match *.py ${f}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "patching testpath: ${f}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/bin/env python3$|${configure.python}|" ${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Upstream mixes three variations of Python shebangs, so account for all
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${worksrcpath} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string match *.py ${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_info "patching testpath: ${f}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/usr/bin/python3$|${configure.python}|" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/usr/bin/env python$|${configure.python}|" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/usr/bin/env python3$|${configure.python}|" ${f}
</span> }
}
}
</pre><pre style='margin:0'>
</pre>