<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/ddc6b4c5a08cc8606965809c66b091937555a40d">https://github.com/macports/macports-ports/commit/ddc6b4c5a08cc8606965809c66b091937555a40d</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 ddc6b4c webkit2-gtk-devel: fix for older systems
</span>ddc6b4c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ddc6b4c5a08cc8606965809c66b091937555a40d
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Fri Aug 18 08:13:13 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> webkit2-gtk-devel: fix for older systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> identical to changes recently made to webkit2-gtk
</span>---
www/webkit2-gtk-devel/Portfile | 33 ++++++++++++++++++----
...ch-snowleopard-cmakelists-stdcformatmacros.diff | 11 ++++++++
...atch-snowleopard-npruntime-redefine-cursor.diff | 17 +++++++++++
3 files changed, 55 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/webkit2-gtk-devel/Portfile b/www/webkit2-gtk-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a6ac608b..483914c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/webkit2-gtk-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/webkit2-gtk-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +8,7 @@ PortSystem 1.0
</span> PortGroup active_variants 1.1
PortGroup cmake 1.0
PortGroup compiler_blacklist_versions 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup cxx11 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cxx11 1.1
</span> PortGroup github 1.0
name webkit2-gtk-devel
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -106,7 +106,7 @@ configure.optflags -Os
</span> # clang 3.6, 602.0.53 (Internals.cpp:1226:12: error: no matching constructor for initialization of 'WTF::String')
# compiler.blacklist-append {clang < 602} macports-clang-3.4
# clang 3.3 (error: no type named 'make_index_sequence' in namespace 'std')
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.fallback-append macports-clang-3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.fallback-append macports-clang-4.0
</span> compiler.blacklist-append {clang < 700} macports-clang-3.6 macports-clang-3.5 macports-clang-3.4 macports-clang-3.3
pre-configure {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -155,6 +155,31 @@ post-configure {
</span> configure.cflags-append -ftemplate-depth=256
configure.cxxflags-append -ftemplate-depth=256
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset quartz]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +x11 +gtk2
</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;'>+# fix build on older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # add dep for newer ruby and spec this for build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/52016
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:ruby24
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DRUBY_EXECUTABLE=${prefix}/bin/ruby2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix missing PRId64 definitions on systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # that don't define __STDC_FORMAT_MACROS by default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://bugs.webkit.org/show_bug.cgi?id=156596
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/52016
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-snowleopard-cmakelists-stdcformatmacros.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix a Cursor name collision with Carbon API
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/52016
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset x11]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-snowleopard-npruntime-redefine-cursor.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;'>+
</span> variant quartz conflicts x11 gtk2 {
require_active_variants port:gtk3 quartz
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -191,10 +216,6 @@ variant gtk2 conflicts quartz description {Enable support for GTK+2 plugins} {
</span> configure.args-append -DENABLE_PLUGIN_PROCESS_GTK2=ON
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset quartz]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +x11 +gtk2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.type none
#livecheck.type regex
#livecheck.url http://webkitgtk.org/releases/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/webkit2-gtk-devel/files/patch-snowleopard-cmakelists-stdcformatmacros.diff b/www/webkit2-gtk-devel/files/patch-snowleopard-cmakelists-stdcformatmacros.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0130a2b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/webkit2-gtk-devel/files/patch-snowleopard-cmakelists-stdcformatmacros.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2017-08-14 17:41:03.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2017-08-14 17:43:39.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18,6 +18,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(ENABLE_TOOLS ON)
</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;'>++add_definitions(-D__STDC_FORMAT_MACROS)
</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;'>+ # Determine which port will be built
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # -----------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/webkit2-gtk-devel/files/patch-snowleopard-npruntime-redefine-cursor.diff b/www/webkit2-gtk-devel/files/patch-snowleopard-npruntime-redefine-cursor.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5a62ef0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/webkit2-gtk-devel/files/patch-snowleopard-npruntime-redefine-cursor.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Source/WebCore/bridge/npruntime_internal.h.orig 2017-08-14 21:56:11.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/WebCore/bridge/npruntime_internal.h 2017-08-14 21:57:40.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,8 +30,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "npruntime.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(MOZ_X11)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #define Cursor QD_Cursor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <X11/Xresource.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// should there be...?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// #undef Cursor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef None
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef Above
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef Below
</span></pre><pre style='margin:0'>
</pre>