summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2003-03-26 10:29:08 +0000
committerkevlo <kevlo@FreeBSD.org>2003-03-26 10:29:08 +0000
commitdee03d51bf7940a882532a64c23b284a5154f3c1 (patch)
treeb7fb93180f49a47f65673091f794692d7e93679a /chinese
parent5071bb103104498c294af8f2170c0e2b702e72d5 (diff)
downloadFreeBSD-ports-dee03d51bf7940a882532a64c23b284a5154f3c1.zip
FreeBSD-ports-dee03d51bf7940a882532a64c23b284a5154f3c1.tar.gz
Initial import of fcitx 1.8.2
Fcitx is a simple and fast GBK Chinese XIM server. PR: 50311 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/fcitx/Makefile32
-rw-r--r--chinese/fcitx/distinfo1
-rw-r--r--chinese/fcitx/files/patch-Makefile18
-rw-r--r--chinese/fcitx/pkg-descr3
-rw-r--r--chinese/fcitx/pkg-message6
-rw-r--r--chinese/fcitx/pkg-plist8
7 files changed, 69 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 2c02ade..772fc430 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -39,6 +39,7 @@
SUBDIR += emacs20
SUBDIR += enscript
SUBDIR += eterm
+ SUBDIR += fcitx
SUBDIR += firebird
SUBDIR += fortunetw
SUBDIR += gb2jis
diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile
new file mode 100644
index 0000000..372af70
--- /dev/null
+++ b/chinese/fcitx/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: zh-fcitx
+# Date created: 26 March 2003
+# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fcitx
+PORTVERSION= 1.8.2
+CATEGORIES= chinese
+MASTER_SITES= http://www.linuxsir.com.cn/fcitx/
+
+MAINTAINER= statue@freebsd.sinica.edu.tw
+COMMENT= A simple and fast GBK Chinese XIM server
+
+LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
+
+USE_XLIB= yes
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's#usr/share#usr/local/share#g' ${WRKSRC}/Makefile ${WRKSRC}/ime.h
+ @${REINPLACE_CMD} -e 's#usr/bin#usr/local/bin#g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's#zh_CN.GB2312#zh_CN.EUC#g' ${WRKSRC}/window.c
+ @${REINPLACE_CMD} -e 's#zh_CN.gb2312#zh_CN.EUC#g' ${WRKSRC}/xim.c
+ @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/IMdkit/lib/IMConn.c
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/chinese/fcitx/distinfo b/chinese/fcitx/distinfo
new file mode 100644
index 0000000..e479771
--- /dev/null
+++ b/chinese/fcitx/distinfo
@@ -0,0 +1 @@
+MD5 (fcitx-1.8.2.tar.gz) = 6674c077741ffa073337d116852d0b39
diff --git a/chinese/fcitx/files/patch-Makefile b/chinese/fcitx/files/patch-Makefile
new file mode 100644
index 0000000..f9b0ee8
--- /dev/null
+++ b/chinese/fcitx/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig Wed Mar 26 02:29:39 2003
++++ Makefile Wed Mar 26 02:41:59 2003
+@@ -1,12 +1,12 @@
+ CC = gcc
+
+-CFLAGS= -O2 -fno-strength-reduce
++CFLAGS= -O2 -fno-strength-reduce -DSIGUNUSED=32
+
+-INC = -I/usr/X11R6/include -I.
++INC = -I/usr/local/include -I/usr/X11R6/include -I.
+
+ SRC = main.c ime.c AddPhraseWindow.c IC.c InputWindow.c MainWindow.c MyErrorsHandlers.c punc.c py.c PYFA.c pyParser.c pyMapTable.c SetLocale.c tools.c wbx.c window.c xim.c qw.c sp.c py-2.c
+
+-LIB = -L/usr/X11R6/lib -lX11
++LIB = -L/usr/local/lib -L/usr/X11R6/lib -lX11 -liconv
+
+ OBJ = $(SRC:.c=.o)
+
diff --git a/chinese/fcitx/pkg-descr b/chinese/fcitx/pkg-descr
new file mode 100644
index 0000000..c820202
--- /dev/null
+++ b/chinese/fcitx/pkg-descr
@@ -0,0 +1,3 @@
+A simple and fast GBK Chinese XIM server
+
+WWW: http://www.fcitx.org/
diff --git a/chinese/fcitx/pkg-message b/chinese/fcitx/pkg-message
new file mode 100644
index 0000000..541c5ff
--- /dev/null
+++ b/chinese/fcitx/pkg-message
@@ -0,0 +1,6 @@
+-----------------------------------------------
+Remember to set environment varible XMODIFIERS:
+ csh/tcsh: setenv XMODIFIERS @im=fcitx
+ sh/bash: export XMODIFIERS='@im=fcitx'
+and set LANG, LC_CTYPE to zh_CN.EUC.
+-----------------------------------------------
diff --git a/chinese/fcitx/pkg-plist b/chinese/fcitx/pkg-plist
new file mode 100644
index 0000000..ccecd32
--- /dev/null
+++ b/chinese/fcitx/pkg-plist
@@ -0,0 +1,8 @@
+bin/fcitx
+share/fcitx/punc.mb
+share/fcitx/pySym.mb
+share/fcitx/pybase.mb
+share/fcitx/pyphrase.mb
+share/fcitx/sp.dat
+share/fcitx/wbx.mb
+@dirrm share/fcitx
OpenPOWER on IntegriCloud