aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2003-03-27 09:39:53 +0800
committerijliao <ijliao@FreeBSD.org>2003-03-27 09:39:53 +0800
commit7f50097b183ce5e12cffd68b3e8bcea81ca2c904 (patch)
tree7a211a8781b22a2a8b44f9f8699f3167d5ceb454 /chinese
parent8420b1f4cf7647b40e46eef07630b46573ed9629 (diff)
downloadfreebsd-ports-gnome-7f50097b183ce5e12cffd68b3e8bcea81ca2c904.tar.gz
freebsd-ports-gnome-7f50097b183ce5e12cffd68b3e8bcea81ca2c904.tar.zst
freebsd-ports-gnome-7f50097b183ce5e12cffd68b3e8bcea81ca2c904.zip
add xsim 0.3.9.4
A simple and fast GBK Chinese XIM server PR: 48968 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/xsim/Makefile37
-rw-r--r--chinese/xsim/distinfo1
-rw-r--r--chinese/xsim/pkg-descr4
-rw-r--r--chinese/xsim/pkg-message16
-rw-r--r--chinese/xsim/pkg-plist20
6 files changed, 79 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 772fc4303d19..e5d103c3e90c 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -103,6 +103,7 @@
SUBDIR += xemacs21
SUBDIR += xmms
SUBDIR += xpdf
+ SUBDIR += xsim
SUBDIR += zhcon
.include <bsd.port.subdir.mk>
diff --git a/chinese/xsim/Makefile b/chinese/xsim/Makefile
new file mode 100644
index 000000000000..7ed7de4e2b05
--- /dev/null
+++ b/chinese/xsim/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: xsim
+# Date created: 30 Dec 2002
+# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xsim
+PORTVERSION= 0.3.9.4
+CATEGORIES= chinese
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= statue@freebsd.sinica.edu.tw
+COMMENT= A simple and fast GBK Chinese XIM server
+
+LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
+
+USE_REINPLACE= yes
+USE_XLIB= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-cn-locale=EUC
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,'
+ ${WRKSRC}/xsim/IMdkit/IMConn.c
+ @${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} \
+ ${REINPLACE_CMD} -e 's,@prefix@/plugins,${DATADIR}/plugins,g' \
+ -e 's,@prefix@/dat,${DATADIR}/dat,g' \
+ -e 's,@prefix@/bin,${DATADIR}/bin,g'
+
+post-install:
+ @${LN} -s ${PREFIX}/share/xsim/bin/xsim ${PREFIX}/bin/xsim
+ @cd ${WRKSRC} && make install-data
+ @${SED} -e 's,%%X11BASE%%,${X11BASE},g' < ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/chinese/xsim/distinfo b/chinese/xsim/distinfo
new file mode 100644
index 000000000000..2f6d0872a2ef
--- /dev/null
+++ b/chinese/xsim/distinfo
@@ -0,0 +1 @@
+MD5 (xsim-0.3.9.4.tar.gz) = a0b430eeff8bf8beccedfe5f4f1668e7
diff --git a/chinese/xsim/pkg-descr b/chinese/xsim/pkg-descr
new file mode 100644
index 000000000000..53b10e4a5343
--- /dev/null
+++ b/chinese/xsim/pkg-descr
@@ -0,0 +1,4 @@
+Using XSIM(X Simple Input Method) u can input chinese with pinyin,
+wubi and any input method added by you in X window.
+
+WWW: https://sourceforge.net/projects/xsim/
diff --git a/chinese/xsim/pkg-message b/chinese/xsim/pkg-message
new file mode 100644
index 000000000000..8057bbca0254
--- /dev/null
+++ b/chinese/xsim/pkg-message
@@ -0,0 +1,16 @@
+-------------------------------------------------------------------------------
+Please check the following files:
+ %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS
+If not exist, copy %%X11BASE%%/lib/X11/locale/zh/XI18N_OBJS to it.
+
+If you got the message:
+ XSIM: Failed opening share library function: Undefined symbol "__XlcEucLoader"
+Comment
+ XLC common/xlocale _XlcEucLoader # XLC_open
+in %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS
+
+Remember to set environment varible XMODIFIERS:
+ csh/tcsh: setenv XMODIFIERS @im=XSIM
+ sh/bash: export XMODIFIERS='@im=XSIM'
+and set LANG, LC_CTYPE to zh_CN.EUC.
+-------------------------------------------------------------------------------
diff --git a/chinese/xsim/pkg-plist b/chinese/xsim/pkg-plist
new file mode 100644
index 000000000000..85e19415aa0f
--- /dev/null
+++ b/chinese/xsim/pkg-plist
@@ -0,0 +1,20 @@
+bin/xsim
+etc/xsimrc
+%%DATADIR%%/plugins/jianpin.so
+%%DATADIR%%/plugins/wubi.so
+%%DATADIR%%/plugins/table.so
+%%DATADIR%%/plugins/panel_std.so
+%%DATADIR%%/plugins/statuspanel_std.so
+%%DATADIR%%/bin/char2db
+%%DATADIR%%/bin/word2db
+%%DATADIR%%/bin/word2db.wubi
+%%DATADIR%%/bin/word2db.table
+%%DATADIR%%/bin/xsim
+%%DATADIR%%/dat/chardb
+%%DATADIR%%/dat/worddb
+%%DATADIR%%/dat/worddb.cj
+%%DATADIR%%/dat/worddb.wubi
+@dirrm %%DATADIR%%/plugins
+@dirrm %%DATADIR%%/dat
+@dirrm %%DATADIR%%/bin
+@dirrm %%DATADIR%%