<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/939ffdd2cb187675523de97dced7954a72903d70">https://github.com/macports/macports-ports/commit/939ffdd2cb187675523de97dced7954a72903d70</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 939ffdd2cb187675523de97dced7954a72903d70
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Nov 30 13:52:23 2021 +0000
<span style='display:block; white-space:pre;color:#404040;'> boost177: add python 3.10 variant
</span>---
devel/boost177/Portfile | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/boost177/Portfile b/devel/boost177/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c87781c79bd..c0843b741e0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/boost177/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/boost177/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -248,27 +248,27 @@ post-destroot {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set pythons_suffixes {27 35 36 37 38 39}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pythons_versions {2.7 3.5 3.6 3.7 3.8 3.9 3.10}
</span>
set pythons_ports {}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-foreach s ${pythons_suffixes} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend pythons_ports python${s}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach v ${pythons_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend pythons_ports python[string map {. {}} ${v}]
</span> }
proc python_dir {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global pythons_suffixes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach s ${pythons_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global pythons_versions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach p ${pythons_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set s [string map {. {}} ${p}]
</span> if {[variant_isset python${s}]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set p python[string index ${s} 0].[string index ${s} 1]
</span> return [file normalize [exec ${p} -c "import sys; print(sys.prefix)"]/lib/${p}/site-packages]
}
}
error "Python support not enabled."
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-foreach s ${pythons_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach v ${pythons_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set s [string map {. {}} ${v}]
</span> set p python${s}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set v [string index ${s} 0].[string index ${s} 1]
</span> set i [lsearch -exact ${pythons_ports} ${p}]
set c [lreplace ${pythons_ports} ${i} ${i}]
if { ${s} > 30 } { set bppatch "patch-boost-python3.diff" } else { set bppatch "" }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -293,8 +293,9 @@ foreach s ${pythons_suffixes} {
</span> }
if {![variant_isset debug]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set selected_python python39
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach s ${pythons_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set selected_python python310
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach v ${pythons_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set s [string map {. {}} ${v}]
</span> if {[variant_isset python${s}]} {
set selected_python python${s}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -333,7 +334,8 @@ subport ${name}-numpy {
</span> description Boost.Numpy library
long_description {*}${description}
depends_lib port:boost${tag}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach s ${pythons_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach v ${pythons_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set s [string map {. {}} ${v}]
</span> if {[variant_isset python${s}]} {
depends_lib-append port:py${s}-numpy
require_active_variants boost python${s}
</pre><pre style='margin:0'>
</pre>