aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UPDATING15
-rw-r--r--japanese/kinput2/Makefile2
-rw-r--r--japanese/kinput2/files/patch-lib-CcWnn.c22
3 files changed, 38 insertions, 1 deletions
diff --git a/UPDATING b/UPDATING
index 043fe2824ed1..99154ebf4b08 100644
--- a/UPDATING
+++ b/UPDATING
@@ -6,6 +6,21 @@ You should get into the habit of checking this file for changes each
time you update your ports collection, before attempting any port
upgrades.
+20081228:
+ AFFECTS: users of japanese/kinput2
+ AUTHOR: hrs@FreeBSD.org
+
+ The Wnn backend of japanese/kinput2 port now uses unix domain socket
+ to communicate the server by default. If $JSERVER environment
+ variable is defined, the value is used as the server host name. In
+ In short, the server name is determined in the following way:
+
+ $JSERVER --(if null)--> CcWnn.Jserver --(if null)--> "localhost"
+
+ If the server host name is null or matches "^unix$", unix domain
+ socket is used. Note that the default server name in CcWnn.Jserver
+ is "unix" now.
+
20081226:
AFFECTS: users of www/rt*
AUTHOR: pgollucci@FreeBSD.org
diff --git a/japanese/kinput2/Makefile b/japanese/kinput2/Makefile
index aa7992f3f3b3..64cd6db0b376 100644
--- a/japanese/kinput2/Makefile
+++ b/japanese/kinput2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= kinput2
PORTVERSION= 3.1
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= japanese x11
MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
DISTNAME= ${PORTNAME}-v${PORTVERSION}
diff --git a/japanese/kinput2/files/patch-lib-CcWnn.c b/japanese/kinput2/files/patch-lib-CcWnn.c
new file mode 100644
index 000000000000..e1a27e3d9f00
--- /dev/null
+++ b/japanese/kinput2/files/patch-lib-CcWnn.c
@@ -0,0 +1,22 @@
+--- lib/CcWnn.c.orig 2002-10-03 18:35:27.000000000 +0900
++++ lib/CcWnn.c 2008-12-28 13:32:01.000000000 +0900
+@@ -18,6 +18,8 @@
+ * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
+ */
+
++#include <stdlib.h>
++
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include <X11/Xmu/Atoms.h>
+@@ -854,6 +856,10 @@
+ * で、覚えておく。
+ */
+ current_obj = obj;
++ /* Use JSERVER if defined instead of any other configurations */
++ if (getenv("JSERVER") != NULL) {
++ obj->ccWnn.jservername = getenv("JSERVER");
++ }
+ obj->ccWnn.wnnbuf = jcOpen2(obj->ccWnn.jservername,
+ obj->ccWnn.wnnenvname,
+ obj->ccWnn.wnnoverrideenv,