Ticket #43216: patch-gtk3.diff

File patch-gtk3.diff, 3.1 KB (added by dbevans (David B. Evans), 10 years ago)

Patch for version 3.12.0 using in GNOME 3 testing

  • Portfile

     
    1010name                gtk3
    1111set real_name       gtk+
    1212epoch               1
    13 version             3.10.7
     13version             3.12.0
    1414set branch          [join [lrange [split ${version} .] 0 1] .]
    1515categories          gnome x11
    1616license             LGPL-2.1+
     
    1717maintainers         cal openmaintainer
    1818platforms           darwin
    1919
    20 checksums           rmd160  d2907147d6fc6a8532982c64edfd530b07ea343b \
    21                     sha256  b7e9de15385031cff43897e7e59f6692eaabf500f36eef80e6b9d6486ad49427
     20checksums           rmd160  266468688e10bcf86938078138cf4fbf02c19ca6 \
     21                    sha256  eb69741cd4029b5a1ac9cf04d9de55dcf9e30777a63891750f5d20cc554b6e4b
    2222
    2323description         GTK+ widget toolkit
    2424
     
    3939minimum_xcodeversions {9 3.1}
    4040depends_build       port:pkgconfig
    4141
     42# cloudprint backend requires rest, json-glib
     43# but this causes a circular dependency on libsoup
     44# explicitly disable cloudprint for now
     45
    4246depends_lib         port:atk \
    4347                    path:lib/pkgconfig/pango.pc:pango \
    4448                    port:gdk-pixbuf2 \
    4549                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    4650                    port:gobject-introspection
    47 
     51                   
    4852depends_run         port:shared-mime-info \
    4953                    port:hicolor-icon-theme
    5054
     
    5559    lib/libpango-1.0.dylib \
    5660    lib/libtiff.dylib
    5761
    58 patchfiles          patch-gtk__gtkselection.c-non-void-return.diff
     62patchfiles          patch-gdk_quartz_gdkevents-quartz.c-syntax-error.diff
    5963
    6064configure.args      --enable-static \
    6165                    --disable-glibtest \
    6266                    --enable-introspection \
     67                    --disable-cloudprint \
    6368                    --disable-wayland-backend \
    6469                    --disable-schemas-compile \
    6570                    gio_can_sniff=yes
  • files/patch-gdk_quartz_gdkevents-quartz.c-syntax-error.diff

     
     1--- gdk/quartz/gdkevents-quartz.c.orig  2014-01-11 14:13:00.000000000 -0800
     2+++ gdk/quartz/gdkevents-quartz.c       2014-01-19 09:11:56.000000000 -0800
     3@@ -1684,6 +1684,8 @@
     4       return TRUE;
     5     }
     6   
     7+      return TRUE;
     8+    }
     9   /* FIXME: Add more settings */
     10 
     11   return FALSE;
  • files/patch-gtk__gtkselection.c-non-void-return.diff

     
    1 --- gtk/gtkselection.c.orig     2014-02-03 21:44:01.000000000 +0100
    2 +++ gtk/gtkselection.c  2014-02-03 21:44:30.000000000 +0100
    3 @@ -2294,7 +2294,7 @@
    4    gulong selection_max_size;
    5  
    6    if (event->requestor == NULL)
    7 -    return;
    8 +    return FALSE;
    9  
    10    if (initialize)
    11      gtk_selection_init ();