summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2014-05-26 18:56:37 +0000
committerPacho Ramos <pacho@gentoo.org>2014-05-26 18:56:37 +0000
commit7fb6699ac4bc82417bec531a440b425946b33498 (patch)
tree448c52fa1820fd529c69371327044b7141cca714 /dev-lang/vala
parentConvert to gnome-python-common-r1. (diff)
downloadgentoo-2-7fb6699ac4bc82417bec531a440b425946b33498.tar.gz
gentoo-2-7fb6699ac4bc82417bec531a440b425946b33498.tar.bz2
gentoo-2-7fb6699ac4bc82417bec531a440b425946b33498.zip
Backport upstream patch to fix gucharmap-3.12 building (#508704 by nE0sIghT)
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'dev-lang/vala')
-rw-r--r--dev-lang/vala/ChangeLog8
-rw-r--r--dev-lang/vala/files/vala-0.24.0-atk-metadata.patch248
-rw-r--r--dev-lang/vala/vala-0.24.0-r1.ebuild44
3 files changed, 299 insertions, 1 deletions
diff --git a/dev-lang/vala/ChangeLog b/dev-lang/vala/ChangeLog
index 4d7ceafb72e8..55775fee02fc 100644
--- a/dev-lang/vala/ChangeLog
+++ b/dev-lang/vala/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/vala
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/vala/ChangeLog,v 1.174 2014/05/17 15:31:05 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/vala/ChangeLog,v 1.175 2014/05/26 18:56:37 pacho Exp $
+
+*vala-0.24.0-r1 (26 May 2014)
+
+ 26 May 2014; Pacho Ramos <pacho@gentoo.org>
+ +files/vala-0.24.0-atk-metadata.patch, +vala-0.24.0-r1.ebuild:
+ Backport upstream patch to fix gucharmap-3.12 building (#508704 by nE0sIghT)
17 May 2014; Agostino Sarubbo <ago@gentoo.org> vala-0.20.1.ebuild:
Stable for alpha, wrt bug #508862
diff --git a/dev-lang/vala/files/vala-0.24.0-atk-metadata.patch b/dev-lang/vala/files/vala-0.24.0-atk-metadata.patch
new file mode 100644
index 000000000000..1863e8e370d6
--- /dev/null
+++ b/dev-lang/vala/files/vala-0.24.0-atk-metadata.patch
@@ -0,0 +1,248 @@
+From: Luca Bruno <lucabru@src.gnome.org>
+Date: Sun, 30 Mar 2014 13:47:08 +0200
+Subject: atk: Update and fix metadata
+
+Fixes bug 727029
+
+Conflicts:
+ vapi/metadata/Atk-1.0-custom.vala
+ vapi/metadata/Atk-1.0.metadata
+---
+ vapi/atk.vapi | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
+ 1 file changed, 81 insertions(+), 4 deletions(-)
+
+diff --git a/vapi/atk.vapi b/vapi/atk.vapi
+index 55db067..cc17cfb 100644
+--- a/vapi/atk.vapi
++++ b/vapi/atk.vapi
+@@ -41,12 +41,15 @@ namespace Atk {
+ public class Misc : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Misc ();
++ [Deprecated]
+ public static unowned Atk.Misc get_instance ();
++ [Deprecated]
+ public virtual void threads_enter ();
++ [Deprecated]
+ public virtual void threads_leave ();
+ }
+ [CCode (cheader_filename = "atk/atk.h", type_id = "atk_no_op_object_get_type ()")]
+- public class NoOpObject : Atk.Object, Atk.Action, Atk.Component, Atk.Document, Atk.EditableText, Atk.Hypertext, Atk.Image, Atk.Selection, Atk.Table, Atk.Text, Atk.Value, Atk.Window {
++ public class NoOpObject : Atk.Object, Atk.Action, Atk.Component, Atk.Document, Atk.EditableText, Atk.Hypertext, Atk.Image, Atk.Selection, Atk.Table, Atk.TableCell, Atk.Text, Atk.Value, Atk.Window {
+ [CCode (has_construct_function = false, type = "AtkObject*")]
+ public NoOpObject (GLib.Object obj);
+ }
+@@ -65,6 +68,7 @@ namespace Atk {
+ [CCode (has_construct_function = false)]
+ protected Object ();
+ public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
++ [Deprecated]
+ public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
+ public virtual Atk.AttributeSet get_attributes ();
+ public virtual unowned string get_description ();
+@@ -82,9 +86,11 @@ namespace Atk {
+ public virtual Atk.Role get_role ();
+ public virtual void initialize (void* data);
+ public void notify_state_change (Atk.State state, bool value);
++ public unowned Atk.Object peek_parent ();
+ public Atk.Object ref_accessible_child (int i);
+ public virtual Atk.RelationSet ref_relation_set ();
+ public virtual Atk.StateSet ref_state_set ();
++ [Deprecated]
+ public virtual void remove_property_change_handler (uint handler_id);
+ public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
+ public virtual void set_description (string description);
+@@ -105,27 +111,33 @@ namespace Atk {
+ public Atk.Object accessible_parent { owned get; set; }
+ [NoAccessorMethod]
+ public int accessible_role { get; set; }
++ [Deprecated]
+ [NoAccessorMethod]
+ public string accessible_table_caption { owned get; set; }
+ [NoAccessorMethod]
+ public Atk.Object accessible_table_caption_object { owned get; set; }
++ [Deprecated]
+ [NoAccessorMethod]
+ public string accessible_table_column_description { owned get; set; }
++ [Deprecated]
+ [NoAccessorMethod]
+ public Atk.Object accessible_table_column_header { owned get; set; }
++ [Deprecated]
+ [NoAccessorMethod]
+ public string accessible_table_row_description { owned get; set; }
++ [Deprecated]
+ [NoAccessorMethod]
+ public Atk.Object accessible_table_row_header { owned get; set; }
+ [NoAccessorMethod]
+ public Atk.Object accessible_table_summary { owned get; set; }
++ [Deprecated]
+ [NoAccessorMethod]
+ public double accessible_value { get; set; }
+ public virtual signal void active_descendant_changed (void* child);
+ public virtual signal void children_changed (uint change_index, void* changed_child);
+ [Deprecated]
+ public virtual signal void focus_event (bool focus_in);
+- public signal void property_change (void* arg1);
++ public virtual signal void property_change (void* values);
+ public virtual signal void state_change (string name, bool state_set);
+ public virtual signal void visible_data_changed ();
+ }
+@@ -145,6 +157,17 @@ namespace Atk {
+ [NoWrapper]
+ public virtual string get_object_id ();
+ }
++ [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_range_get_type ()")]
++ [Compact]
++ public class Range {
++ [CCode (has_construct_function = false)]
++ public Range (double lower_limit, double upper_limit, string description);
++ public Atk.Range copy ();
++ public void free ();
++ public unowned string get_description ();
++ public double get_lower_limit ();
++ public double get_upper_limit ();
++ }
+ [CCode (cheader_filename = "atk/atk.h")]
+ public class Registry : GLib.Object {
+ [Deprecated]
+@@ -280,7 +303,9 @@ namespace Atk {
+ public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
+ public abstract Atk.Layer get_layer ();
+ public abstract int get_mdi_zorder ();
++ [Deprecated]
+ public abstract void get_position (int x, int y, Atk.CoordType coord_type);
++ [Deprecated]
+ public abstract void get_size (int width, int height);
+ public abstract bool grab_focus ();
+ public abstract Atk.Object ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
+@@ -371,13 +396,16 @@ namespace Atk {
+ public abstract bool add_column_selection (int column);
+ public abstract bool add_row_selection (int row);
+ public abstract unowned Atk.Object get_caption ();
++ [Deprecated]
+ public abstract int get_column_at_index (int index_);
+ public abstract unowned string get_column_description (int column);
+ public abstract int get_column_extent_at (int row, int column);
+ public abstract unowned Atk.Object get_column_header (int column);
++ [Deprecated]
+ public abstract int get_index_at (int row, int column);
+ public abstract int get_n_columns ();
+ public abstract int get_n_rows ();
++ [Deprecated]
+ public abstract int get_row_at_index (int index_);
+ public abstract unowned string get_row_description (int row);
+ public abstract int get_row_extent_at (int row, int column);
+@@ -405,6 +433,16 @@ namespace Atk {
+ public virtual signal void row_inserted (int row, int num_inserted);
+ public virtual signal void row_reordered ();
+ }
++ [CCode (cheader_filename = "atk/atk.h", type_id = "atk_table_cell_get_type ()")]
++ public interface TableCell : Atk.Object {
++ public abstract GLib.GenericArray<Atk.Object> get_column_header_cells ();
++ public abstract int get_column_span ();
++ public abstract bool get_position (out int row, out int column);
++ public abstract bool get_row_column_span (out int row, out int column, out int row_span, out int column_span);
++ public abstract GLib.GenericArray<Atk.Object> get_row_header_cells ();
++ public abstract int get_row_span ();
++ public abstract Atk.Object get_table ();
++ }
+ [CCode (cheader_filename = "atk/atk.h")]
+ public interface Text : GLib.Object {
+ public abstract bool add_selection (int start_offset, int end_offset);
+@@ -418,6 +456,7 @@ namespace Atk {
+ public static Atk.TextAttribute attribute_register (string name);
+ public static void free_ranges ([CCode (array_length = false)] Atk.TextRange[] ranges);
+ [CCode (array_length = false, array_null_terminated = true)]
++ [NoWrapper]
+ public virtual Atk.TextRange[] get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
+ public abstract int get_caret_offset ();
+ public abstract unichar get_character_at_offset (int offset);
+@@ -450,11 +489,22 @@ namespace Atk {
+ }
+ [CCode (cheader_filename = "atk/atk.h", type_id = "atk_value_get_type ()")]
+ public interface Value : GLib.Object {
++ [Deprecated]
+ public abstract void get_current_value (GLib.Value value);
++ public abstract double get_increment ();
++ [Deprecated]
+ public abstract void get_maximum_value (GLib.Value value);
++ [Deprecated]
+ public abstract void get_minimum_increment (GLib.Value value);
++ [Deprecated]
+ public abstract void get_minimum_value (GLib.Value value);
++ public abstract Atk.Range get_range ();
++ public abstract GLib.SList<Atk.Range> get_sub_ranges ();
++ public abstract void get_value_and_text (out double value, out string text);
++ [Deprecated]
+ public abstract bool set_current_value (GLib.Value value);
++ public abstract void set_value (double new_value);
++ public signal void value_changed (double value, string text);
+ }
+ [CCode (cheader_filename = "atk/atk.h", type_id = "atk_window_get_type ()")]
+ public interface Window : Atk.Object {
+@@ -484,8 +534,7 @@ namespace Atk {
+ public uint16 keycode;
+ public uint32 timestamp;
+ }
+- [CCode (cheader_filename = "atk/atk.h", cname = "_AtkPropertyValues", has_type_id = false)]
+- [GIR (name = "_PropertyValues")]
++ [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
+ public struct PropertyValues {
+ public weak string property_name;
+ public GLib.Value old_value;
+@@ -688,6 +737,9 @@ namespace Atk {
+ MATH,
+ RATING,
+ TIMER,
++ DESCRIPTION_LIST,
++ DESCRIPTION_TERM,
++ DESCRIPTION_VALUE,
+ LAST_DEFINED;
+ [CCode (cheader_filename = "atk/atk.h")]
+ public static Atk.Role for_name (string name);
+@@ -696,6 +748,7 @@ namespace Atk {
+ [CCode (cheader_filename = "atk/atk.h")]
+ public static unowned string get_name (Atk.Role role);
+ [CCode (cheader_filename = "atk/atk.h")]
++ [Deprecated]
+ public static Atk.Role register (string name);
+ }
+ [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_STATE_", type_id = "atk_state_type_get_type ()")]
+@@ -814,6 +867,29 @@ namespace Atk {
+ LINE,
+ PARAGRAPH
+ }
++ [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_VALUE_", type_id = "atk_value_type_get_type ()")]
++ public enum ValueType {
++ VERY_WEAK,
++ WEAK,
++ ACCEPTABLE,
++ STRONG,
++ VERY_STRONG,
++ VERY_LOW,
++ LOW,
++ MEDIUM,
++ HIGH,
++ VERY_HIGH,
++ VERY_BAD,
++ BAD,
++ GOOD,
++ VERY_GOOD,
++ BEST,
++ LAST_DEFINED;
++ [CCode (cheader_filename = "atk/atk.h")]
++ public static unowned string get_localized_name (Atk.ValueType value_type);
++ [CCode (cheader_filename = "atk/atk.h")]
++ public static unowned string get_name (Atk.ValueType value_type);
++ }
+ [CCode (cheader_filename = "atk/atk.h", has_target = false)]
+ public delegate void EventListener (Atk.Object obj);
+ [CCode (cheader_filename = "atk/atk.h", has_target = false)]
+@@ -826,6 +902,7 @@ namespace Atk {
+ [CCode (cheader_filename = "atk/atk.h", instance_pos = 1.9)]
+ public delegate int KeySnoopFunc (Atk.KeyEventStruct event);
+ [CCode (cheader_filename = "atk/atk.h", has_target = false)]
++ [Deprecated]
+ public delegate void PropertyChangeHandler (Atk.Object obj, Atk.PropertyValues vals);
+ [CCode (cheader_filename = "atk/atk.h", cname = "GSignalEmissionHook", has_target = false)]
+ public delegate bool SignalEmissionHook (GLib.SignalInvocationHint ihint, [CCode (array_length_pos = 1.9)] Atk.Value[] param_values, void* data);
diff --git a/dev-lang/vala/vala-0.24.0-r1.ebuild b/dev-lang/vala/vala-0.24.0-r1.ebuild
new file mode 100644
index 000000000000..fc6a7e8e71d2
--- /dev/null
+++ b/dev-lang/vala/vala-0.24.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/vala/vala-0.24.0-r1.ebuild,v 1.1 2014/05/26 18:56:37 pacho Exp $
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2 eutils
+
+DESCRIPTION="Compiler for the GObject type system"
+HOMEPAGE="https://wiki.gnome.org/Vala"
+
+LICENSE="LGPL-2.1"
+SLOT="0.24"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
+IUSE="test +vapigen"
+
+RDEPEND="
+ >=dev-libs/glib-2.18:2
+ >=dev-libs/vala-common-${PV}
+"
+DEPEND="${RDEPEND}
+ !${CATEGORY}/${PN}:0
+ dev-libs/libxslt
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc
+ test? (
+ dev-libs/dbus-glib
+ >=dev-libs/glib-2.26:2 )
+"
+
+src_prepare() {
+ # atk: Update and fix metadata (from 'master', backport from Debian), bug #508704
+ epatch "${FILESDIR}/${PN}-0.24.0-atk-metadata.patch"
+ gnome2_src_prepare
+}
+
+src_configure() {
+ DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README"
+ gnome2_src_configure \
+ --disable-unversioned \
+ $(use_enable vapigen)
+}