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 @@
ibus-handwrite is a handwrite recgnizer for IBus.

View File

@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.26 2013/06/06 12:54:37 wiz Exp $
#
DISTNAME= ibus-handwrite-2.1.4
PKGREVISION= 15
CATEGORIES= inputmethod
MASTER_SITES= http://ibus-handwrite.googlecode.com/files/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://code.google.com/p/ibus-handwrite/
COMMENT= Handwrite recognizer for ibus
LICENSE= gnu-gpl-v3
DEPENDS+= zinnia-tomoe-[0-9]*:../../inputmethod/zinnia-tomoe
FIND_PREFIX:= ZINNIA_TOMOE_DIR=zinnia-tomoe
.include "../../mk/find-prefix.mk"
GNU_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config
CONFIGURE_ARGS+= --enable-zinnia
CONFIGURE_ARGS+= --with-zinnia-tomoe=${ZINNIA_TOMOE_DIR}/lib/zinnia/model/tomoe
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/gtkglext/buildlink3.mk"
.include "../../inputmethod/ibus/buildlink3.mk"
.include "../../inputmethod/zinnia/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.2 2010/11/23 01:10:36 obache Exp $
libexec/ibus-engine-handwrite
share/ibus-handwrite/data/table.txt
share/ibus-handwrite/icons/ibus-handwrite.svg
share/ibus-handwrite/icons/switch.svg
share/ibus/component/handwrite-jp.xml
share/ibus/component/handwrite-zh.xml
share/locale/ja/LC_MESSAGES/ibus-handwrite.mo
share/locale/zh_CN/LC_MESSAGES/ibus-handwrite.mo

View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.7 2012/11/19 23:16:40 joerg Exp $
SHA1 (ibus-handwrite-2.1.4.tar.bz2) = 2798728c628dfa60a7c1c45c8a59882962c91b1e
RMD160 (ibus-handwrite-2.1.4.tar.bz2) = 35e7288d5efcd98a01138d075b0455874730a4ea
Size (ibus-handwrite-2.1.4.tar.bz2) = 237980 bytes
SHA1 (patch-configure) = 66d3e86c3ac5de1bbd466bfca1fc1d709b2d1da6
SHA1 (patch-configure.ac) = 0730abb2210c60b2feb1e9a3055568f4fbb11e2a
SHA1 (patch-src_UI__gtk.c) = 1225bb4effdf4bf7e0de57ebfc9edc65134f9a61

View File

@@ -0,0 +1,70 @@
$NetBSD: patch-configure,v 1.1 2011/12/16 10:51:18 obache Exp $
* regen with patched configure.ac.
--- configure.orig 2011-03-25 05:28:36.000000000 +0000
+++ configure
@@ -5153,6 +5153,63 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5
+$as_echo_n "checking for library containing atan2... " >&6; }
+if ${ac_cv_search_atan2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char atan2 ();
+int
+main ()
+{
+return atan2 ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' m; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_atan2=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_atan2+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_atan2+:} false; then :
+
+else
+ ac_cv_search_atan2=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5
+$as_echo "$ac_cv_search_atan2" >&6; }
+ac_res=$ac_cv_search_atan2
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
if test "x${enable_zinnia}" = "xyes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zinnia_recognizer_open in -lzinnia" >&5

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-configure.ac,v 1.1 2011/12/16 10:51:18 obache Exp $
* Need to requirement of math library for atan2(3).
http://code.google.com/p/ibus-handwrite/issues/detail?id=19
--- configure.ac.orig 2011-03-25 05:28:26.000000000 +0000
+++ configure.ac
@@ -66,6 +66,8 @@ GETTEXT_PACKAGE="$PACKAGE_NAME"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only architecture-independent data directory.])
+AC_SEARCH_LIBS([atan2], [m])
+
AS_IF([test "x${enable_zinnia}" = "xyes"],
[
AC_CHECK_LIB(zinnia,[zinnia_recognizer_open],[],[have_zinnia=no])

View File

@@ -0,0 +1,28 @@
$NetBSD: patch-src_UI__gtk.c,v 1.1 2012/11/19 23:16:41 joerg Exp $
--- src/UI_gtk.c.orig 2012-11-19 16:23:52.000000000 +0000
+++ src/UI_gtk.c
@@ -173,6 +173,11 @@ static void glwidget_realize(GtkWidget *
}
}
+static void clicked(GtkButton *button, IBusHandwriteEngine *engine)
+{
+ ibus_handwrite_engine_commit_text(engine,GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button),"order")));
+}
+
static void regen_loopuptable(GtkWidget * widget, IBusHandwriteEngine * engine)
{
int i;
@@ -195,11 +200,6 @@ static void regen_loopuptable(GtkWidget
gtk_widget_show(bt);
- void clicked(GtkButton *button, IBusHandwriteEngine *engine)
- {
- ibus_handwrite_engine_commit_text(engine,GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button),"order")));
- }
-
g_object_set_data(G_OBJECT(bt),"order",GINT_TO_POINTER(i));
g_signal_connect(bt,"clicked",G_CALLBACK(clicked),engine);