<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e63b1685609bf63d4ac90f8ac154512ffcbba939">https://github.com/macports/macports-ports/commit/e63b1685609bf63d4ac90f8ac154512ffcbba939</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e63b1685609bf63d4ac90f8ac154512ffcbba939
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Sun May 14 17:46:45 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> McBopomofo: fix python alias on >= 21
</span>---
aqua/McBopomofo/Portfile | 13 +++++++++++++
1 file changed, 13 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/McBopomofo/Portfile b/aqua/McBopomofo/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b671d156346..7146a8a9ac2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/McBopomofo/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/McBopomofo/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,6 +60,19 @@ if {[vercmp ${xcodeversion} 10.0] >= 0} {
</span> -UseNewBuildSystem=NO
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} >= 21} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # No /usr/bin/python, use 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;'>+ fs-traverse f ${worksrcpath}/Source/Data/bin {
</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;'>+ reinplace -q "s|/usr/bin/env python$|${configure.python}|" ${f}
</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;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
xinstall -d "${destroot}/Library/Input Methods"
if {[vercmp $xcodeversion 4.2] >= 0} {
</pre><pre style='margin:0'>
</pre>