<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/332427959a9e1b4c0f8e5b223371cb0bb2e32197">https://github.com/macports/macports-ports/commit/332427959a9e1b4c0f8e5b223371cb0bb2e32197</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 332427959a9e1b4c0f8e5b223371cb0bb2e32197
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Sun Sep 10 01:31:12 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> py-bpython: fix version detection
</span>---
python/py-bpython/Portfile | 7 ++++++-
python/py-bpython/files/_version.py | 2 ++
2 files changed, 8 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-bpython/Portfile b/python/py-bpython/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4d0e0702973..f1e9ca82751 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-bpython/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-bpython/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +25,12 @@ checksums rmd160 6a57d45732b0f756668a481c99e8c3135c741e67 \
</span> python.versions 27 37 38 39 310
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix version detection
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set versionpath ${worksrcpath}/bpython/_version.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/_version.py ${versionpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s/__VERSION__/${version}/" ${versionpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
depends_lib-append port:py${python.version}-curtsies \
port:py${python.version}-greenlet \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-bpython/files/_version.py b/python/py-bpython/files/_version.py
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f84e9a79940
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-bpython/files/_version.py
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this file is autogenerated by MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version = "__VERSION__"
</span></pre><pre style='margin:0'>
</pre>