diff options
author | obache <obache> | 2010-08-31 08:25:20 +0000 |
---|---|---|
committer | obache <obache> | 2010-08-31 08:25:20 +0000 |
commit | e1903c1fe743e29d258f00f708788621fbb98512 (patch) | |
tree | 3361acb806266935544efcc651f065f2eaabb0ee | |
parent | 1fbca9573f618478050655c2954b3d3b39690c5f (diff) | |
download | pkgsrc-e1903c1fe743e29d258f00f708788621fbb98512.tar.gz |
Import input-pad-0.1.1 as inputmethod/input-pad.
The input pad is a tool to send a character on button to text applications.
-rw-r--r-- | inputmethod/input-pad/DESCR | 1 | ||||
-rw-r--r-- | inputmethod/input-pad/Makefile | 30 | ||||
-rw-r--r-- | inputmethod/input-pad/Makefile.common | 14 | ||||
-rw-r--r-- | inputmethod/input-pad/PLIST | 20 | ||||
-rw-r--r-- | inputmethod/input-pad/buildlink3.mk | 21 | ||||
-rw-r--r-- | inputmethod/input-pad/distinfo | 6 | ||||
-rw-r--r-- | inputmethod/input-pad/options.mk | 28 | ||||
-rw-r--r-- | inputmethod/input-pad/patches/patch-aa | 74 |
8 files changed, 194 insertions, 0 deletions
diff --git a/inputmethod/input-pad/DESCR b/inputmethod/input-pad/DESCR new file mode 100644 index 00000000000..5905af6123d --- /dev/null +++ b/inputmethod/input-pad/DESCR @@ -0,0 +1 @@ +The input pad is a tool to send a character on button to text applications. diff --git a/inputmethod/input-pad/Makefile b/inputmethod/input-pad/Makefile new file mode 100644 index 00000000000..571ab6d488d --- /dev/null +++ b/inputmethod/input-pad/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ +# + +.include "Makefile.common" + +MAINTAINER= obache@NetBSD.org +COMMENT= On-screen Input Pad to Send Characters with Mouse + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_PKGLOCALEDIR= yes +USE_TOOLS+= gmake pkg-config intltool + +PKGCONFIG_OVERRIDE+= input-pad.pc.in + +CONFIGURE_ARGS+= --enable-python=no + +.include "options.mk" + +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../textproc/libxml2/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/libxkbfile/buildlink3.mk" +BUILDLINK_API_DEPENDS.libxklavier+= libxklavier>=4.0 +.include "../../x11/libxklavier/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/input-pad/Makefile.common b/inputmethod/input-pad/Makefile.common new file mode 100644 index 00000000000..ec5ca7bf885 --- /dev/null +++ b/inputmethod/input-pad/Makefile.common @@ -0,0 +1,14 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ +# +# used by inputmethod/input-pad/Makefile +# used by inputmethod/py-input-pad/Makefile + +DISTNAME= input-pad-0.1.1 +CATEGORIES= inputmethod +MASTER_SITES= http://input-pad.googlecode.com/files/ + +HOMEPAGE= http://code.google.com/p/input-pad/ +LICENSE= gnu-lgpl-v2.1 + +DISTINFO_FILE= ${.CURDIR}/../../inputmethod/input-pad/distinfo +PATCHDIR= ${.CURDIR}/../../inputmethod/input-pad/patches diff --git a/inputmethod/input-pad/PLIST b/inputmethod/input-pad/PLIST new file mode 100644 index 00000000000..9d7838fecdc --- /dev/null +++ b/inputmethod/input-pad/PLIST @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ +bin/input-pad +include/input-pad-0.1/input-pad-group.h +include/input-pad-0.1/input-pad-kbdui-gtk.h +include/input-pad-0.1/input-pad-window-gtk.h +include/input-pad-0.1/input-pad.h +${PLIST.eek}lib/input-pad-0.1/modules/kbdui/libinput-pad-eek-gtk.la +${PLIST.xtest}lib/input-pad-0.1/modules/xkeysend/libinput-pad-xtest-gdk.la +lib/libinput-pad.la +lib/pkgconfig/input-pad.pc +share/input-pad/pad/group01-base.xml +share/input-pad/pad/group02-ja.xml +share/input-pad/pad/group02-zh.xml +share/input-pad/pad/group50-str.xml +share/input-pad/pad/group60-w3c.xml +share/input-pad/pad/group70-cmd.xml +share/input-pad/ui/gtk/input-pad.ui +share/locale/fr/LC_MESSAGES/input-pad.mo +share/locale/ja/LC_MESSAGES/input-pad.mo +share/pixmaps/input-pad.png diff --git a/inputmethod/input-pad/buildlink3.mk b/inputmethod/input-pad/buildlink3.mk new file mode 100644 index 00000000000..ccebfa29e7d --- /dev/null +++ b/inputmethod/input-pad/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ +# + +BUILDLINK_TREE+= input-pad + +.if !defined(INPUT_PAD_BUILDLINK3_MK) +INPUT_PAD_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.input-pad+= input-pad>=0.1.1 +BUILDLINK_PKGSRCDIR.input-pad?= ../../inputmethod/input-pad + +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../textproc/libxml2/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/libxkbfile/buildlink3.mk" +.include "../../x11/libxklavier/buildlink3.mk" +.endif # INPUT_PAD_BUILDLINK3_MK + +BUILDLINK_TREE+= -input-pad diff --git a/inputmethod/input-pad/distinfo b/inputmethod/input-pad/distinfo new file mode 100644 index 00000000000..c1325e4a655 --- /dev/null +++ b/inputmethod/input-pad/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ + +SHA1 (input-pad-0.1.1.tar.gz) = 98a612d16be9df83369be29b4f678fea19fa7ffe +RMD160 (input-pad-0.1.1.tar.gz) = 9a2f64da4261eb5f94279f2ca57f594032a59036 +Size (input-pad-0.1.1.tar.gz) = 475626 bytes +SHA1 (patch-aa) = 82a379c927631d8861bec677636ec0e348293be9 diff --git a/inputmethod/input-pad/options.mk b/inputmethod/input-pad/options.mk new file mode 100644 index 00000000000..9e0f1ecf343 --- /dev/null +++ b/inputmethod/input-pad/options.mk @@ -0,0 +1,28 @@ +# $NetBSD: options.mk,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.input-pad +PKG_SUPPORTED_OPTIONS= eekboard xtest +PKG_SUGGESTED_OPTIONS= eekboard + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= eek python xtest + +# +# Draw keyboard using libeek +# +.if !empty(PKG_OPTIONS:Meek) +.include "../../x11/eekboard/buildlink3.mk" +CONFIGURE_ARGS+= --enable-eek +PLIST.eek= yes +.endif + +# +# Send keyboard event with xtest +# +.if !empty(PKG_OPTIONS:Mxtest) +.include "../../x11/libXtst/buildlink3.mk" +CONFIGURE_ARGS+= --enable-xtest=yes +PLIST.xtest= yes +.endif diff --git a/inputmethod/input-pad/patches/patch-aa b/inputmethod/input-pad/patches/patch-aa new file mode 100644 index 00000000000..39c10840bea --- /dev/null +++ b/inputmethod/input-pad/patches/patch-aa @@ -0,0 +1,74 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/08/31 08:25:20 obache Exp $ + +Don't load kbdui/foo.so in addition to kbdui/foo.la. +http://github.com/fujiwarat/input-pad/commit/ed250b079e0a64a4780b821a37f285e5c35f866e + +--- input-pad/window-gtk.c.orig 2010-07-08 10:07:08.000000000 +0000 ++++ input-pad/window-gtk.c +@@ -3508,6 +3508,27 @@ input_pad_gtk_window_xtest_gdk_setup (In + + #endif /* MODULE_XTEST_GDK_BASE */ + ++static gboolean ++check_module_filename (const gchar *filename) ++{ ++ if (!g_str_has_prefix (filename, "lib") || ++ !g_str_has_prefix (filename + 3, MODULE_NAME_PREFIX)) { ++ g_warning ("File prefix is not input-pad library: %s", filename); ++ return FALSE; ++ } ++#ifdef G_MODULE_SUFFIX ++ /* G_MODULE_SUFFIX is defined in glibconfig.h */ ++ g_assert (G_MODULE_SUFFIX != NULL); ++ if (!g_str_has_suffix (filename, "." G_MODULE_SUFFIX)) { ++ /* filename is ignored due to no suffix G_MODULE_SUFFIX. */ ++ return FALSE; ++ } ++#else ++ g_debug ("Recommend to have G_MODULE_SUFFIX to avoid '.la' file.\n"); ++#endif ++ return TRUE; ++} ++ + static GModule * + kbdui_module_open (const gchar *filepath) + { +@@ -3774,9 +3795,7 @@ input_pad_gtk_window_parse_kbdui_modules + } + + while ((filename = g_dir_read_name (dir)) != NULL) { +- if (!g_str_has_prefix (filename, "lib") || +- !g_str_has_prefix (filename + 3, MODULE_NAME_PREFIX)) { +- g_warning ("File prefix is not input-pad library: %s", filename); ++ if (!check_module_filename (filename)) { + continue; + } + filepath = g_build_filename (dirname, filename, NULL); +@@ -4295,9 +4314,7 @@ input_pad_gtk_window_get_kbdui_name_list + const gchar *subname = NULL; + gchar *name = NULL; + +- if (!g_str_has_prefix (filename, "lib") || +- !g_str_has_prefix (filename + 3, MODULE_NAME_PREFIX)) { +- g_warning ("File prefix is not input-pad library: %s", filename); ++ if (!check_module_filename (filename)) { + continue; + } + filepath = g_build_filename (dirname, filename, NULL); +@@ -4315,11 +4332,11 @@ input_pad_gtk_window_get_kbdui_name_list + g_warning ("Filename is invalid %s", filename); + continue; + } +- if (g_str_has_suffix (subname, ".so")) { +- name = g_strndup (subname, strlen (subname) - 3); +- } else { +- name = g_strdup (subname); +- } ++#ifdef G_MODULE_SUFFIX ++ name = g_strndup (subname, strlen (subname) - strlen (G_MODULE_SUFFIX) - 1); ++#else ++ name = g_strdup (subname); ++#endif + if (name == NULL || *name == '\0') { + g_warning ("Filename is invalid %s", filename); + g_free (name); |