<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5ef529c0ee398efc1d0d6ce8ed6d3a3c0dd19d46">https://github.com/macports/macports-ports/commit/5ef529c0ee398efc1d0d6ce8ed6d3a3c0dd19d46</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5ef529c0ee398efc1d0d6ce8ed6d3a3c0dd19d46
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Jun 22 09:24:31 2022 +1000
<span style='display:block; white-space:pre;color:#404040;'> python pg: don't force use of compiler_wrapper
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Support is kept; the minority of ports that actually need
</span><span style='display:block; white-space:pre;color:#404040;'> compiler_wrapper just need to include it explicitly.
</span>---
_resources/port1.0/group/python-1.0.tcl | 43 +++++++++++++++++++++------------
1 file changed, 28 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/python-1.0.tcl b/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 75fad9294cc..c3227f3d825 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,8 +24,6 @@
</span> #
# Note: setting these options requires name to be set beforehand
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup compiler_wrapper 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> categories python
use_configure no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -94,17 +92,6 @@ proc python_get_default_version {} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc python_set_env_compilers {phase} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[option supported_archs] eq "noarch"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach tag [option compwrap.compilers_to_wrap] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[option configure.${tag}] ne ""} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${phase}.env-append [string toupper $tag]=[compwrap::wrap_compiler ${tag}]
</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;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> proc python_set_versions {option action args} {
if {$action ne "set"} {
return
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -193,7 +180,20 @@ proc python_set_versions {option action args} {
</span> build.env-append OBJCFLAGS=$pyobjcflags
}
if {${python.set_compiler}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- python_set_env_compilers build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # compiler_wrapper portgroup support
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[exists compwrap.compilers_to_wrap]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach var [option compwrap.compilers_to_wrap] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[set configure.${var}] ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append [string toupper $var]=[compwrap::wrap_compiler ${var}]
</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;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach var [list cc objc cxx fc f77 f90] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[set configure.${var}] ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append [string toupper $var]=[set configure.${var}]
</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;'>+ }
</span> }
}
pre-destroot {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -240,7 +240,20 @@ proc python_set_versions {option action args} {
</span> destroot.env-append OBJCFLAGS=$pyobjcflags
}
if {${python.set_compiler} && ${python.consistent_destroot}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- python_set_env_compilers destroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # compiler_wrapper portgroup support
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[exists compwrap.compilers_to_wrap]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach var [option compwrap.compilers_to_wrap] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[set configure.${var}] ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.env-append [string toupper $var]=[compwrap::wrap_compiler ${var}]
</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;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach var [list cc objc cxx fc f77 f90] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[set configure.${var}] ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.env-append [string toupper $var]=[set configure.${var}]
</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;'>+ }
</span> }
}
post-destroot {
</pre><pre style='margin:0'>
</pre>