<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dabbaa7aadb78835ad1ce91fd5eb411d75c83ad3">https://github.com/macports/macports-ports/commit/dabbaa7aadb78835ad1ce91fd5eb411d75c83ad3</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 dabbaa7 wxWidgets-3.0: upstream patch for abs()
</span>dabbaa7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dabbaa7aadb78835ad1ce91fd5eb411d75c83ad3
</span>Author: Mojca Miklavec <mojca@macports.org>
AuthorDate: Thu Feb 9 13:42:23 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> wxWidgets-3.0: upstream patch for abs()
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This upstream patch fixes a build failure with some newer compilers.
</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/53516
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://github.com/wxWidgets/wxWidgets/pull/222
</span>---
graphics/wxWidgets-3.0/Portfile | 1 +
...-upstream-src-stc-scintilla-src-Editor.cxx.diff | 27 ++++++++++++++++++++++
2 files changed, 28 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/wxWidgets-3.0/Portfile b/graphics/wxWidgets-3.0/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8e1150c..0cd353b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/wxWidgets-3.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/wxWidgets-3.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,6 +87,7 @@ depends_run port:wxWidgets-common \
</span>
patchfiles-append patch-configure.diff \
patch-upstream-src-osx-carbon-fontdlgosx.mm.diff \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-upstream-src-stc-scintilla-src-Editor.cxx.diff \
</span> patch-upstream-webkit-proper-types.diff
if {${subport} eq "wxWidgets-3.0-libcxx"} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/wxWidgets-3.0/files/patch-upstream-src-stc-scintilla-src-Editor.cxx.diff b/graphics/wxWidgets-3.0/files/patch-upstream-src-stc-scintilla-src-Editor.cxx.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..030ead5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/wxWidgets-3.0/files/patch-upstream-src-stc-scintilla-src-Editor.cxx.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,27 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# An upstream patch for abs()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# - https://github.com/wxWidgets/wxWidgets/commit/73e9e18ea09ffffcaac50237def0d9728a213c02
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# - https://trac.macports.org/ticket/53516
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# - https://github.com/wxWidgets/wxWidgets/pull/222
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/stc/scintilla/src/Editor.cxx.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/stc/scintilla/src/Editor.cxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,6 +11,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <assert.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <cmath>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <vector>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <map>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5841,9 +5842,9 @@ void Editor::GoToLine(int lineNo) {
</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;'>+ static bool Close(Point pt1, Point pt2) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (abs(pt1.x - pt2.x) > 3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (std::abs(pt1.x - pt2.x) > 3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (abs(pt1.y - pt2.y) > 3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (std::abs(pt1.y - pt2.y) > 3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>