<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/492384f44622dddad1ec46b06c0e5a3f8d2f7d85">https://github.com/macports/macports-ports/commit/492384f44622dddad1ec46b06c0e5a3f8d2f7d85</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 492384f44622dddad1ec46b06c0e5a3f8d2f7d85
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Tue Apr 2 12:49:51 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> qgis3[-ltr]: check Python variants sync in pre-commit phase
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> and correcting faulty set of default +pythonXX +plugin_supportXX variants
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/69607
</span>---
gis/qgis3/Portfile | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/qgis3/Portfile b/gis/qgis3/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9b17aa71a59..0fa562df787 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/qgis3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/qgis3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -377,30 +377,32 @@ foreach pyver ${python_suffixes} {
</span> set python_default "${python_default}!\[variant_isset python${pyver}\] && "
}
set python_default [string range ${python_default} 0 end-4]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set python_default "${python_default}} { default_variants +python312 +plugin_support312}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_default "${python_default}} { default_variants +python312}"
</span> eval ${python_default}
# Python support default
set python_default "if {"
foreach pyver ${python_suffixes} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set python_default "${python_default}!\[variant_isset python${pyver}\] && "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python_default "${python_default}!\[variant_isset plugin_support${pyver}\] && "
</span> }
set python_default [string range ${python_default} 0 end-4]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set python_default "${python_default}} { default_variants +python312 +plugin_support312}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_default "${python_default}} { default_variants +plugin_support312}"
</span> eval ${python_default}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Assert +pythonXY and +plugin_supportXY variants are in sync
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set supp_py_list [list]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set pyth_py_list [list]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset plugin_support${pyver}]} {lappend supp_py_list ${pyver}}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset python${pyver}]} {lappend pyth_py_list ${pyver}}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if { [expr ([llength $supp_py_list] > 0) && ([llength $pyth_py_list] > 0)] &&
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [lindex $supp_py_list 0] != [lindex $pyth_py_list 0] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set pyv [lindex $pyth_py_list 0]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${subport} +pythonXY and +plugin_supportXY variants must be in sync"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "Try running `port install ${subport} +python${pyv} +plugin_support${pyv}`"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Assert +pythonXY and +plugin_supportXY variants are in sync
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set supp_py_list [list]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pyth_py_list [list]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset plugin_support${pyver}]} {lappend supp_py_list ${pyver}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset python${pyver}]} {lappend pyth_py_list ${pyver}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [expr ([llength $supp_py_list] > 0) && ([llength $pyth_py_list] > 0)] &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [lindex $supp_py_list 0] != [lindex $pyth_py_list 0] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pyv [lindex $pyth_py_list 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${subport} +pythonXY and +plugin_supportXY variants must be in sync"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "Try running `port install ${subport} +python${pyv} +plugin_support${pyv}`"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
variant server description "Builds with the server (FCGI) option" {
</pre><pre style='margin:0'>
</pre>