<pre style='margin:0'>
Ryan Carsten Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fef4f9c647fad253dc30f2a9bf2ad2da7aaf5b74">https://github.com/macports/macports-ports/commit/fef4f9c647fad253dc30f2a9bf2ad2da7aaf5b74</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 fef4f9c647f py-wxpython-4.0: Fix build with cython 3
</span>fef4f9c647f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fef4f9c647fad253dc30f2a9bf2ad2da7aaf5b74
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Sun Jan 28 23:30:59 2024 -0600
<span style='display:block; white-space:pre;color:#404040;'> py-wxpython-4.0: Fix build with cython 3
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/69058
</span><span style='display:block; white-space:pre;color:#404040;'> See: wxWidgets/Phoenix#2514
</span>---
python/py-wxpython-4.0/Portfile | 7 +++++--
python/py-wxpython-4.0/files/cython3.patch | 16 ++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/Portfile b/python/py-wxpython-4.0/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 277b0a2d55e..f2eb1afdd3c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-wxpython-4.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-wxpython-4.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,7 +11,6 @@ revision 0
</span>
categories-append graphics devel
license wxwidgets-3.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
description Python interface to the wxWidgets 3.2 cross platform GUI
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,7 +30,11 @@ checksums rmd160 ff4d6710cfd293d63ffe6baa1255acf6e604a26b \
</span> python.versions 37 38 39 310 311
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append buildtools_config_py.patch buildtools_build_wxwidgets_py.patch build_py.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ buildtools_config_py.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ buildtools_build_wxwidgets_py.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build_py.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cython3.patch
</span>
depends_build-append \
port:py${python.version}-setuptools
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/files/cython3.patch b/python/py-wxpython-4.0/files/cython3.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3e1a2a0377d
</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-wxpython-4.0/files/cython3.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix compatibility with Cython 3.0.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Remove unused import which seems to be removed in Cython 3.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/wxWidgets/Phoenix/issues/2439
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/wxWidgets/Phoenix/pull/2441
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/wxWidgets/Phoenix/issues/2514
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/wxWidgets/Phoenix/commit/aeb557d01e7cd37176ebbf0f1ae6d0b53c115378
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- wx/svg/_nanosvg.pyx.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ wx/svg/_nanosvg.pyx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -42,7 +42,6 @@ for manipulating the SVG shape info in memory.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import sys
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-cimport cython.object
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from cpython.buffer cimport (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Py_buffer, PyObject_CheckBuffer, PyObject_GetBuffer, PyBUF_SIMPLE,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PyBuffer_Release)
</span></pre><pre style='margin:0'>
</pre>