<pre style='margin:0'>
Vincent (Veence) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ca130fe1e183fa59da956379862d5359bddaf02c">https://github.com/macports/macports-ports/commit/ca130fe1e183fa59da956379862d5359bddaf02c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ca130fe1e183fa59da956379862d5359bddaf02c
</span>Author: Veence <vince@macports.org>
AuthorDate: Thu Feb 20 15:10:32 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> py-wxpython-4.0: apply webkit patch for MacOS > 10.14
</span>---
python/py-wxpython-4.0/Portfile | 14 ++----
python/py-wxpython-4.0/files/patch-config.py.diff | 11 -----
.../files/patch-ext_wxWidgets_configure_in.diff | 51 ++++++++++++++++++++++
...Widgets_src_html_htmlctrl_webkit_webkit_mm.diff | 14 ++++++
4 files changed, 68 insertions(+), 22 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 c45753d..b07c08e 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;'>@@ -37,23 +37,15 @@ if {${name} ne ${subport}} {
</span> }
wxWidgets.use wxWidgets-3.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-ext_wxWidgets_src_html_htmlctrl_webkit_webkit_mm.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ext_wxWidgets_configure_in.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append \
port:${wxWidgets.port} \
port:py${python.version}-pathlib2 \
port:py${python.version}-pip \
port:py${python.version}-sip
<span style='display:block; white-space:pre;background:#ffe0e0;'>- post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set extra_options ""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The HIWebView.h file disappeared from the WebKit framework in 10.15, meaning
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # wxWebKit cannot be built anymore
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} > 18} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- append extra_options "'--disable-webkit', '--disable-webview', '--disable-webviewwebkit', '--disable-webviewie'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|configure_opts = \\\[\\\]|configure_opts = \[${extra_options}\]|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/buildtools/build_wxwidgets.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> build.cmd ${python.bin} build.py build
destroot.cmd ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/files/patch-config.py.diff b/python/py-wxpython-4.0/files/patch-config.py.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index f0e335c..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-wxpython-4.0/files/patch-config.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- config.py.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ config.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -248,7 +248,7 @@ cleaning = 'clean' in sys.argv
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # change the PORT default for wxMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if sys.platform[:6] == "darwin":
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- WXPORT = 'osx_carbon'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ WXPORT = 'osx_cocoa'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # and do the same for wxMSW, just for consistency
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if os.name == 'nt':
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/files/patch-ext_wxWidgets_configure_in.diff b/python/py-wxpython-4.0/files/patch-ext_wxWidgets_configure_in.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..198420f
</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/patch-ext_wxWidgets_configure_in.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,51 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ext/wxWidgets/configure.in.old 2020-02-20 13:32:29.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/wxWidgets/configure.in 2020-02-20 13:33:53.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7151,22 +7151,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wxUSE_WEBKIT" = "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- old_CPPFLAGS="$CPPFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CPPFLAGS="-x objective-c++ $CPPFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_CHECK_HEADER([WebKit/HIWebView.h],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_DEFINE(wxUSE_WEBKIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WEBKIT_LINK="-framework WebKit"
</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;'>+- AC_MSG_WARN([WebKit headers not found; disabling wxWebKit])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wxUSE_WEBKIT=no
</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;'>+- #include <Carbon/Carbon.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #include <WebKit/WebKit.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CPPFLAGS="$old_CPPFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_DEFINE(wxUSE_WEBKIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WEBKIT_LINK="-framework WebKit"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elif test "$wxUSE_OLD_COCOA" = 1; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE(wxUSE_WEBKIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7315,21 +7301,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dnl Under Mac we always have the libraries but check for the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dnl headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- old_CPPFLAGS="$CPPFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CPPFLAGS="-x objective-c++ $CPPFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_CHECK_HEADER([WebKit/HIWebView.h],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- USE_WEBVIEW_WEBKIT=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WEBKIT_LINK="-framework WebKit"
</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;'>+- AC_MSG_WARN([WebKit headers not found])
</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;'>+- #include <Carbon/Carbon.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #include <WebKit/WebKit.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CPPFLAGS="$old_CPPFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ USE_WEBVIEW_WEBKIT=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WEBKIT_LINK="-framework WebKit"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/files/patch-ext_wxWidgets_src_html_htmlctrl_webkit_webkit_mm.diff b/python/py-wxpython-4.0/files/patch-ext_wxWidgets_src_html_htmlctrl_webkit_webkit_mm.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e14345b
</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/patch-ext_wxWidgets_src_html_htmlctrl_webkit_webkit_mm.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ext/wxWidgets/src/html/htmlctrl/webkit/webkit.mm.old 2020-02-20 13:20:05.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/wxWidgets/src/html/htmlctrl/webkit/webkit.mm 2020-02-20 13:20:56.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24,9 +24,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "wx/osx/private.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <WebKit/WebKit.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <WebKit/HIWebView.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <WebKit/CarbonUtils.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "wx/html/webkit.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>