summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-04-22 14:09:09 +0000
committerobache <obache@pkgsrc.org>2012-04-22 14:09:09 +0000
commitcd5ba4a17fd641071d11a88a653954d0cf47863d (patch)
tree8c09c6df4e9b9c2903905e5cab3eac1978707130 /inputmethod
parent11642d4e564f0373f61dccd6e2a0fefb72fbb39b (diff)
downloadpkgsrc-cd5ba4a17fd641071d11a88a653954d0cf47863d.tar.gz
Bump PKGREVISION from ibus shlib name change, with some ibus-1.4 compatibility
fix patches.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/ibus-array/Makefile4
-rw-r--r--inputmethod/ibus-array/distinfo3
-rw-r--r--inputmethod/ibus-array/patches/patch-src_engine.c79
-rw-r--r--inputmethod/ibus-chewing/Makefile11
-rw-r--r--inputmethod/ibus-chewing/distinfo4
-rw-r--r--inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine-input-events.c28
-rw-r--r--inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine.gob30
-rw-r--r--inputmethod/ibus-handwrite/Makefile4
-rw-r--r--inputmethod/ibus-m17n/Makefile4
-rw-r--r--inputmethod/ibus-qt/Makefile4
-rw-r--r--inputmethod/ibus-t9/Makefile4
11 files changed, 161 insertions, 14 deletions
diff --git a/inputmethod/ibus-array/Makefile b/inputmethod/ibus-array/Makefile
index 3b71d24d33d..dfecf04d5ea 100644
--- a/inputmethod/ibus-array/Makefile
+++ b/inputmethod/ibus-array/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2012/03/10 10:56:13 obache Exp $
+# $NetBSD: Makefile,v 1.6 2012/04/22 14:09:09 obache Exp $
#
DISTNAME= ibus-array-0.0.2
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= inputmethod chinese
MASTER_SITES= http://ibus-array.googlecode.com/files/
diff --git a/inputmethod/ibus-array/distinfo b/inputmethod/ibus-array/distinfo
index d68d633fef4..6cb872c3ca2 100644
--- a/inputmethod/ibus-array/distinfo
+++ b/inputmethod/ibus-array/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2010/08/07 01:53:41 obache Exp $
+$NetBSD: distinfo,v 1.2 2012/04/22 14:09:09 obache Exp $
SHA1 (ibus-array-0.0.2.tar.gz) = 1b2c65b0a5d45f858014d892ec9036918ce85a54
RMD160 (ibus-array-0.0.2.tar.gz) = 40dbed9c00cc83855af05350da244f668fddb751
Size (ibus-array-0.0.2.tar.gz) = 2759103 bytes
+SHA1 (patch-src_engine.c) = 35c7a1783dddeea99f40d319b6584b8b4f42c36e
diff --git a/inputmethod/ibus-array/patches/patch-src_engine.c b/inputmethod/ibus-array/patches/patch-src_engine.c
new file mode 100644
index 00000000000..b62296ae785
--- /dev/null
+++ b/inputmethod/ibus-array/patches/patch-src_engine.c
@@ -0,0 +1,79 @@
+$NetBSD: patch-src_engine.c,v 1.1 2012/04/22 14:09:10 obache Exp $
+
+* for ibus-1.4
+
+--- src/engine.c.orig 2009-10-18 17:06:12.000000000 +0000
++++ src/engine.c
+@@ -79,7 +79,7 @@ static void ibus_array_engine_show_speci
+ static void ibus_config_value_changed (IBusConfig *config,
+ const gchar *section,
+ const gchar *name,
+- GValue *value,
++ GVariant *value,
+ gpointer user_data);
+
+ static IBusEngineClass *parent_class = NULL;
+@@ -120,7 +120,7 @@ void
+ ibus_array_init (IBusBus *bus)
+ {
+ gboolean res;
+- GValue value = { 0, };
++ GVariant *value = NULL;
+
+ array_context = array_create_context();
+
+@@ -129,20 +129,22 @@ ibus_array_init (IBusBus *bus)
+ is_special_notify = FALSE;
+ is_special_only = FALSE;
+
+- res = ibus_config_get_value (config, "engine/Array",
+- "SpecialNotify", &value);
++ res = ((value = ibus_config_get_value (config, "engine/Array",
++ "SpecialNotify")) != NULL);
+ if (res) {
+- const gchar* str = g_value_get_string(&value);
++ const gchar* str = g_variant_get_string(value, NULL);
+ if (g_strcmp0(str, "1") == 0)
+ is_special_notify = TRUE;
++ g_variant_unref(value);
+ }
+
+- res = ibus_config_get_value (config, "engine/Array",
+- "SpecialOnly", &value);
++ res = ((value = ibus_config_get_value (config, "engine/Array",
++ "SpecialOnly")) != NULL);
+ if (res) {
+- const gchar* str = g_value_get_string(&value);
++ const gchar* str = g_variant_get_string(value, NULL);
+ if (g_strcmp0(str, "1") == 0)
+ is_special_only = TRUE;
++ g_variant_unref(value);
+ }
+ }
+
+@@ -754,14 +756,14 @@ static void ibus_array_engine_property_a
+ static void ibus_config_value_changed (IBusConfig *config,
+ const gchar *section,
+ const gchar *name,
+- GValue *value,
++ GVariant *value,
+ gpointer user_data)
+ {
+ IBusArrayEngine *arrayeng = (IBusArrayEngine*)user_data;
+
+ if (g_strcmp0(section, "engine/Array") == 0) {
+ if (g_strcmp0(name, "SpecialNotify") == 0) {
+- const gchar* str = g_value_get_string(value);
++ const gchar* str = g_variant_get_string(value, NULL);
+ if (g_strcmp0(str, "1") == 0) {
+ is_special_notify = TRUE;
+ }
+@@ -770,7 +772,7 @@ static void ibus_config_value_changed (I
+ }
+ }
+ else if (g_strcmp0(name, "SpecialOnly") == 0) {
+- const gchar* str = g_value_get_string(value);
++ const gchar* str = g_variant_get_string(value, NULL);
+ if (g_strcmp0(str, "1") == 0) {
+ is_special_only = TRUE;
+ }
diff --git a/inputmethod/ibus-chewing/Makefile b/inputmethod/ibus-chewing/Makefile
index 5fb68262b9b..9900b5b43a4 100644
--- a/inputmethod/ibus-chewing/Makefile
+++ b/inputmethod/ibus-chewing/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.12 2012/03/03 00:13:21 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2012/04/22 14:09:10 obache Exp $
#
DISTNAME= ibus-chewing-1.3.10-Source
PKGNAME= ${DISTNAME:S/-Source//}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= inputmethod chinese
MASTER_SITES= http://ibus.googlecode.com/files/
@@ -35,6 +35,13 @@ CMAKE_ARGS+= -DGCONF_SCHEMAS_INSTALLED_DIR=${GCONF_SCHEMAS_DIR}
post-extract:
find ${WRKDIR} -type d -name PaxHeader | xargs rm -rf
+# avoid regen files
+post-patch:
+ touch -r ${WRKSRC}/src/IBusChewingEngine-input-events.c.orig \
+ ${WRKSRC}/src/IBusChewingEngine-input-events.c
+ touch -r ${WRKSRC}/src/IBusChewingEngine.gob.orig \
+ ${WRKSRC}/src/IBusChewingEngine.gob
+
.include "../../devel/GConf/schemas.mk"
.include "../../inputmethod/ibus/buildlink3.mk"
.include "../../inputmethod/libchewing/buildlink3.mk"
diff --git a/inputmethod/ibus-chewing/distinfo b/inputmethod/ibus-chewing/distinfo
index d5d98a92f1e..b70967c9889 100644
--- a/inputmethod/ibus-chewing/distinfo
+++ b/inputmethod/ibus-chewing/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.5 2011/12/04 12:40:42 obache Exp $
+$NetBSD: distinfo,v 1.6 2012/04/22 14:09:10 obache Exp $
SHA1 (ibus-chewing-1.3.10-Source.tar.gz) = e9f92370c1ad99d5076b4e288704fadb759928be
RMD160 (ibus-chewing-1.3.10-Source.tar.gz) = 84d4167a0d2c4019f165280cabea2afeaaee4464
Size (ibus-chewing-1.3.10-Source.tar.gz) = 75365 bytes
+SHA1 (patch-src_IBusChewingEngine-input-events.c) = 7ebb4869bee3068814bb3fa6c195a6f88e481ed3
+SHA1 (patch-src_IBusChewingEngine.gob) = 5b92bbdb7e79252eb5b166f2d5eccc5c076e06e1
diff --git a/inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine-input-events.c b/inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine-input-events.c
new file mode 100644
index 00000000000..85dbaf95a35
--- /dev/null
+++ b/inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine-input-events.c
@@ -0,0 +1,28 @@
+$NetBSD: patch-src_IBusChewingEngine-input-events.c,v 1.1 2012/04/22 14:09:10 obache Exp $
+
+* for ibus-1.4
+ https://github.com/definite/ibus-chewing/pull/16
+
+--- src/IBusChewingEngine-input-events.c.orig 2011-10-12 11:50:51.000000000 +0000
++++ src/IBusChewingEngine-input-events.c
+@@ -291,12 +291,20 @@ void ibus_chewing_engine_property_activa
+ /* Toggle Full <-> Half */
+ chewing_set_ShapeMode(self->context, !chewing_get_ShapeMode(self->context));
+ }else if (strcmp(prop_name,"chewing_settings_prop")==0){
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ if (ibus_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED){
++#else
+ if (self->settings_prop->state==PROP_STATE_UNCHECKED){
++#endif
+ if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){
+ self_save_config_all(self);
+ }
+ gtk_widget_hide(self->setting_dialog);
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ ibus_property_set_state(self->settings_prop,PROP_STATE_UNCHECKED);
++#else
+ self->settings_prop->state=PROP_STATE_UNCHECKED;
++#endif
+ }
+ }else{
+ G_DEBUG_MSG(3,"[I3] property_activate(-, %s, %u) not recognized",prop_name, prop_state);
diff --git a/inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine.gob b/inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine.gob
new file mode 100644
index 00000000000..3a94dc56db3
--- /dev/null
+++ b/inputmethod/ibus-chewing/patches/patch-src_IBusChewingEngine.gob
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_IBusChewingEngine.gob,v 1.1 2012/04/22 14:09:10 obache Exp $
+
+* for ibus-1.4
+ https://github.com/definite/ibus-chewing/pull/16
+
+--- src/IBusChewingEngine.gob.orig 2011-10-12 11:50:51.000000000 +0000
++++ src/IBusChewingEngine.gob
+@@ -1041,12 +1041,21 @@ class IBus:Chewing:Engine from IBus:Engi
+ /* Toggle Full <-> Half */
+ chewing_set_ShapeMode(self->context, !chewing_get_ShapeMode(self->context));
+ }else if (strcmp(prop_name,"chewing_settings_prop")==0){
+- if (self->settings_prop->state==PROP_STATE_UNCHECKED){
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ if (ibus_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED)
++#else
++ if (self->settings_prop->state==PROP_STATE_UNCHECKED)
++#endif
++ {
+ if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){
+ self_save_config_all(self);
+ }
+ gtk_widget_hide(self->setting_dialog);
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ ibus_property_set_state(self->settings_prop,PROP_STATE_UNCHECKED);
++#else
+ self->settings_prop->state=PROP_STATE_UNCHECKED;
++#endif
+ }
+ }else{
+ G_DEBUG_MSG(3,"[I3] property_activate(-, %s, %u) not recognized",prop_name, prop_state);
diff --git a/inputmethod/ibus-handwrite/Makefile b/inputmethod/ibus-handwrite/Makefile
index 4321465c8b3..1394538d404 100644
--- a/inputmethod/ibus-handwrite/Makefile
+++ b/inputmethod/ibus-handwrite/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2012/03/03 00:13:21 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2012/04/22 14:09:10 obache Exp $
#
DISTNAME= ibus-handwrite-2.1.4
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= inputmethod
MASTER_SITES= http://ibus-handwrite.googlecode.com/files/
EXTRACT_SUFX= .tar.bz2
diff --git a/inputmethod/ibus-m17n/Makefile b/inputmethod/ibus-m17n/Makefile
index 93b1824333b..8edddaddfc1 100644
--- a/inputmethod/ibus-m17n/Makefile
+++ b/inputmethod/ibus-m17n/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2012/03/03 00:13:21 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2012/04/22 14:09:10 obache Exp $
#
DISTNAME= ibus-m17n-1.3.3
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= inputmethod
MASTER_SITES= http://ibus.googlecode.com/files/
diff --git a/inputmethod/ibus-qt/Makefile b/inputmethod/ibus-qt/Makefile
index 91857525ac4..b937878ef61 100644
--- a/inputmethod/ibus-qt/Makefile
+++ b/inputmethod/ibus-qt/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2012/03/03 00:13:21 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2012/04/22 14:09:10 obache Exp $
#
DISTNAME= ibus-qt-1.3.1-Source
PKGNAME= ${DISTNAME:S/-Source//}
-PKGREVISION= 10
+PKGREVISION= 11
CATEGORIES= inputmethod
MASTER_SITES= http://ibus.googlecode.com/files/
diff --git a/inputmethod/ibus-t9/Makefile b/inputmethod/ibus-t9/Makefile
index 327df1be969..cebec68d2a7 100644
--- a/inputmethod/ibus-t9/Makefile
+++ b/inputmethod/ibus-t9/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2012/03/03 00:13:21 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2012/04/22 14:09:10 obache Exp $
#
DISTNAME= ibus-t9-2.1.0.20100601
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= inputmethod chinese
MASTER_SITES= http://ibus-t9.googlecode.com/files/