<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/12f011520a99fbc83cf2231ef1986dc58fb6371f">https://github.com/macports/macports-ports/commit/12f011520a99fbc83cf2231ef1986dc58fb6371f</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 12f011520a9 sigil: remove python37 support
</span>12f011520a9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 12f011520a99fbc83cf2231ef1986dc58fb6371f
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Sun Jan 23 14:22:34 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> sigil: remove python37 support
</span>---
editors/sigil/Portfile | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/sigil/Portfile b/editors/sigil/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 657454871ab..4f71c99c9d8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/editors/sigil/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/sigil/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,8 +40,8 @@ configure.args -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
</span> -DUSE_SYSTEM_LIBS=ON
pre-configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset python39] && ![variant_isset python38] && ![variant_isset python37]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "Sigil requires Python, please use a Python variant."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset python39] && ![variant_isset python38]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} requires Python, please use a Python variant."
</span> return -code error
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,10 +62,11 @@ proc python-depends {python_branch} {
</span> port:py${python_version}-Pillow \
port:py${python_version}-regex \
port:py${python_version}-six
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.env-append PATH=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin:$env(PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin:$env(PATH)
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python39 conflicts python37 python38 description {Use Python 3.9 during build} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python39 conflicts python38 description {Use Python 3.9 during build} {
</span> post-patch {
reinplace {s|PythonInterp 3\.8|PythonInterp 3.9|g} ${worksrcpath}/CMakeLists.txt
reinplace {s|PythonLibs 3\.8|PythonLibs 3.9|g} ${worksrcpath}/CMakeLists.txt
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -74,20 +75,11 @@ variant python39 conflicts python37 python38 description {Use Python 3.9 during
</span> python-depends ${python_branch}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python38 conflicts python37 python39 description {Use Python 3.8 during build} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 conflicts python39 description {Use Python 3.8 during build} {
</span> set python_branch 3.8
python-depends ${python_branch}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python37 conflicts python38 python39 description {Use Python 3.7 during build} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace {s|PythonInterp 3\.8|PythonInterp 3.7|g} ${worksrcpath}/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace {s|PythonLibs 3\.8|PythonLibs 3.7|g} ${worksrcpath}/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python_branch 3.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python-depends ${python_branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python37] && ![variant_isset python38]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset python38]} {
</span> default_variants +python39
}
</pre><pre style='margin:0'>
</pre>