<pre style='margin:0'>
Andrey Stromnov (stromnov) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0ba9f39f1457710079c14e787eaa265a96801261">https://github.com/macports/macports-ports/commit/0ba9f39f1457710079c14e787eaa265a96801261</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 0ba9f39f145 py-rasterio: unbreak build with libstdc++
</span>0ba9f39f145 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0ba9f39f1457710079c14e787eaa265a96801261
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Tue Sep 3 22:31:36 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> py-rasterio: unbreak build with libstdc++
</span>---
python/py-rasterio/Portfile | 10 ++++++++++
python/py-rasterio/files/patch-fix-setup.py.diff | 10 ++++++++++
2 files changed, 20 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-rasterio/Portfile b/python/py-rasterio/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1e622922eb0..b91c858e265 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-rasterio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-rasterio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,4 +37,14 @@ if {${name} ne ${subport}} {
</span> port:py${python.version}-click-plugins \
port:py${python.version}-setuptools \
port:gdal
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # cc1plus: error: unrecognized command line option "-stdlib=libc++"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.cxx_stdlib} ne "libc++"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-fix-setup.py.diff
</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;'>+ # pycore_frame.h: error: ‘for’ loop initial declaration used outside C99 mode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # cc1plus: error: unrecognized command line option "-std=c++11"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.c_standard 1999
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard 2011
</span> }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-rasterio/files/patch-fix-setup.py.diff b/python/py-rasterio/files/patch-fix-setup.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a6afff9d07d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-rasterio/files/patch-fix-setup.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py 2023-10-12 05:17:50.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py 2024-09-03 22:22:39.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -202,7 +202,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if cpp11_flag not in eca:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ eca.append(cpp11_flag)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- eca += [cpp11_flag, '-mmacosx-version-min=10.9', '-stdlib=libc++']
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TODO: Windows
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>