<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1e235f4e471f380742df49070afb78935ddb2da2">https://github.com/macports/macports-ports/commit/1e235f4e471f380742df49070afb78935ddb2da2</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 1e235f4e471 py-matplotlib: fix condition to disable native backend on old systems
</span>1e235f4e471 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1e235f4e471f380742df49070afb78935ddb2da2
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Thu Jun 13 10:52:34 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> py-matplotlib: fix condition to disable native backend on old systems
</span>---
python/py-matplotlib/Portfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-matplotlib/Portfile b/python/py-matplotlib/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 97f65ae53ce..a0e6ab89cea 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-matplotlib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-matplotlib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -178,7 +178,11 @@ if {${name} ne ${subport}} {
</span>
# additionally on Leopard the macosx backend cannot be compiled anymore, see Trac ticket:
# https://trac.macports.org/ticket/61757
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.platform} eq "darwin" && ${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this is a compiler issue, not OS version issue; this backend should be disabled for gcc.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # cc1obj: error: '-Werror=unguarded-availability': no option '-Wunguarded-availability'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # src/_macosx.m: error: incompatible type for argument 1 of 'updateDevicePixelRatio'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # src/_macosx.m: error: incompatible types when initializing type 'CGFloat' {aka 'float'} using type 'id'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string match *gcc* ${configure.compiler}]} {
</span> post-patch {
reinplace "s|^macosx=True|macosx=False|" ${worksrcpath}/${configfile}
}
</pre><pre style='margin:0'>
</pre>