Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
ibus-array is desined to implement a full-functional Array 30 input method
engine for iBus. Array 30 is a traditional Chinese input method used in Taiwan.

View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.8 2012/10/06 14:25:11 asau Exp $
#
DISTNAME= ibus-array-0.0.2
PKGREVISION= 6
CATEGORIES= inputmethod chinese
MASTER_SITES= http://ibus-array.googlecode.com/files/
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://code.google.com/p/ibus-array/
COMMENT= Array 30 Input Method for iBus
LICENSE= gnu-gpl-v3
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
SUBST_CLASSES+= epython
SUBST_STAGE.epython= pre-configure
SUBST_FILES.epython= setup/ibus-setup-array.in
SUBST_SED.epython= -e 's;exec python;exec ${PYTHONBIN};g'
.include "../../inputmethod/ibus/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,12 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/08/07 01:53:41 obache Exp $
libexec/ibus-engine-array
libexec/ibus-setup-array
share/ibus-array/icons/ibus-array.png
share/ibus-array/setup/config.py
share/ibus-array/setup/config.pyc
share/ibus-array/setup/config.pyo
share/ibus-array/setup/main.py
share/ibus-array/setup/main.pyc
share/ibus-array/setup/main.pyo
share/ibus-array/tables/array.db
share/ibus/component/array.xml

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.3 2012/11/19 23:15:52 joerg 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) = fcd75da6cb349a7dd2f2caa8dae4b9ebb23668c7

View File

@@ -0,0 +1,103 @@
$NetBSD: patch-src_engine.c,v 1.2 2012/11/19 23:15:53 joerg 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);
}
}
@@ -349,7 +351,7 @@ ibus_array_engine_update_symbol_lookup_t
if (arrayeng->preedit->len == 0) {
ibus_engine_hide_lookup_table ((IBusEngine *) arrayeng);
- return;
+ return FALSE;
}
ibus_lookup_table_clear (arrayeng->table);
@@ -360,12 +362,12 @@ ibus_array_engine_update_symbol_lookup_t
if (candidates == NULL) {
ibus_engine_hide_lookup_table ((IBusEngine *) arrayeng);
- return;
+ return FALSE;
}
else if (candidates->len == 0) {
array_release_candidates(candidates);
ibus_engine_hide_lookup_table ((IBusEngine *) arrayeng);
- return;
+ return FALSE;
}
for (i = 0; i < candidates->len; i++) {
@@ -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;
}