<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/6470d3aa146fbfcd4509cdf90e914933087c2fd0">https://github.com/macports/macports-ports/commit/6470d3aa146fbfcd4509cdf90e914933087c2fd0</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 6470d3aa146 iproute2mac: add and default to python310 variant
</span>6470d3aa146 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6470d3aa146fbfcd4509cdf90e914933087c2fd0
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Thu Feb 3 02:35:09 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> iproute2mac: add and default to python310 variant
</span>---
net/iproute2mac/Portfile | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/iproute2mac/Portfile b/net/iproute2mac/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a52d55c310c..1caaf926e4d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/iproute2mac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/iproute2mac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,7 +22,7 @@ checksums rmd160 20405b83b2cdbf632fefd433aca7873544650479 \
</span> size 7847
pre-configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset python39] && ![variant_isset python38]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310]} {
</span> ui_error "${name} requires Python, please use a Python variant."
return -code error
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,18 +47,23 @@ proc python-depends {python_branch} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python39 conflicts python38 description {Use Python 3.9 as interpreter} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python310 conflicts python38 python39 description {Use Python 3.10 as interpreter} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ::python_branch 3.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python-depends ${::python_branch}
</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;'>+variant python39 conflicts python38 python310 description {Use Python 3.9 as interpreter} {
</span> set ::python_branch 3.9
python-depends ${::python_branch}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python38 conflicts python39 description {Use Python 3.8 as interpreter} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 conflicts python39 python310 description {Use Python 3.8 as interpreter} {
</span> set ::python_branch 3.8
python-depends ${::python_branch}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python38]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +python39
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset python38] && ![variant_isset python39]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +python310
</span> }
variant mpsudo description {Use sudo command provided by MacPorts instead of the system} {
</pre><pre style='margin:0'>
</pre>