<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/264ece27c8e2ea2aa30bfd11bf2d5065ca6a838e">https://github.com/macports/macports-ports/commit/264ece27c8e2ea2aa30bfd11bf2d5065ca6a838e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 264ece27c8e2ea2aa30bfd11bf2d5065ca6a838e
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Fri Aug 23 09:03:14 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> libpqxx: modify python handling
</span>---
databases/libpqxx/Portfile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/libpqxx/Portfile b/databases/libpqxx/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 53905c2d8f8..4952d8abedb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/libpqxx/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/libpqxx/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,13 +54,16 @@ if {!$any_variant_set} {
</span>
depends_build path:bin/pkg-config:pkgconfig
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver 3.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${os.platform} eq "darwin" && ${os.major} < 20} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:python311
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:python${py_ver_nodot}
</span>
post-patch {
fs-traverse f ${worksrcpath} {
if {[string match *.py ${f}]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -q "s| /usr/bin/env python3|${prefix}/bin/python3.11|" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s| /usr/bin/env python3|${prefix}/bin/python${py_ver}|" ${f}
</span> }
}
}
</pre><pre style='margin:0'>
</pre>