From 85dd7a96fcbba4b486982e2896bf98128af36603 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 21 Nov 2016 16:36:01 +0700 Subject: [PATCH] vala: Upgraded to 0.34.4. Signed-off-by: Willy Sudiarto Raharjo --- deps/vala/patch_support-gtk318.diff | 50 +++++++++++++++++++++++++++++ deps/vala/vala.SlackBuild | 7 ++-- 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 deps/vala/patch_support-gtk318.diff diff --git a/deps/vala/patch_support-gtk318.diff b/deps/vala/patch_support-gtk318.diff new file mode 100644 index 0000000..cace597 --- /dev/null +++ b/deps/vala/patch_support-gtk318.diff @@ -0,0 +1,50 @@ +--- vala-0.34.2/vapi/gtk+-3.0.vapi.orig 2016-09-27 22:44:37.000000000 +1000 ++++ vala-0.34.2/vapi/gtk+-3.0.vapi 2016-11-14 16:24:16.635334244 +1000 +@@ -840,6 +840,7 @@ + [CCode (has_construct_function = false, type = "GtkWidget*")] + public Button.with_mnemonic (string label); + public bool always_show_image { get; set construct; } ++ public bool focus_on_click { get; set; } + public Gtk.Widget image { get; set; } + public Gtk.PositionType image_position { get; set; } + public string label { get; set construct; } +@@ -1573,6 +1574,7 @@ + public Gtk.CellArea cell_area { owned get; construct; } + public int column_span_column { get; set; } + public int entry_text_column { get; set; } ++ public bool focus_on_click { get; set; } + public bool has_entry { get; construct; } + [NoAccessorMethod] + public bool has_frame { get; set; } +@@ -2080,6 +2082,7 @@ + [CCode (has_construct_function = false, type = "GtkWidget*")] + public FileChooserButton.with_dialog (Gtk.Dialog dialog); + public Gtk.FileChooser dialog { construct; } ++ public bool focus_on_click { get; set; } + public string title { get; set; } + public int width_chars { get; set; } + public virtual signal void file_set (); +@@ -6692,7 +6695,6 @@ + public unowned Gdk.Display get_display (); + public bool get_double_buffered (); + public int get_events (); +- public bool get_focus_on_click (); + public unowned Pango.FontMap? get_font_map (); + public unowned Cairo.FontOptions? get_font_options (); + public unowned Gdk.FrameClock? get_frame_clock (); +@@ -6859,7 +6861,6 @@ + public void set_direction (Gtk.TextDirection dir); + public void set_double_buffered (bool double_buffered); + public void set_events (int events); +- public void set_focus_on_click (bool focus_on_click); + public void set_font_map (Pango.FontMap? font_map); + public void set_font_options (Cairo.FontOptions? options); + public void set_halign (Gtk.Align align); +@@ -6927,7 +6928,6 @@ + public Gdk.EventMask events { get; set; } + [NoAccessorMethod] + public bool expand { get; set; } +- public bool focus_on_click { get; set; } + public Gtk.Align halign { get; set; } + [NoAccessorMethod] + public bool has_default { get; set; } diff --git a/deps/vala/vala.SlackBuild b/deps/vala/vala.SlackBuild index 438f948..4fd3bb5 100644 --- a/deps/vala/vala.SlackBuild +++ b/deps/vala/vala.SlackBuild @@ -25,7 +25,7 @@ # Modified by Willy Sudiarto Raharjo for MSB Project PRGNAM=vala -VERSION=${VERSION:-0.30.2} +VERSION=${VERSION:-0.34.4} BUILD=${BUILD:-1} TAG=${TAG:-_msb} @@ -37,7 +37,7 @@ if [ -z "$ARCH" ]; then esac fi -wget -c http://ftp.gnome.org/pub/GNOME/sources/vala/0.30/$PRGNAM-$VERSION.tar.xz +wget -c http://ftp.gnome.org/pub/GNOME/sources/vala/0.34/$PRGNAM-$VERSION.tar.xz CWD=$(pwd) TMP=${TMP:-/tmp/msb} @@ -73,6 +73,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Patch to support older GTK+3 +patch -p1 < $CWD/patch_support-gtk318.diff + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \