summaryrefslogtreecommitdiff
path: root/chinese/fcitx
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2003-03-26 10:29:08 +0000
committerKevin Lo <kevlo@FreeBSD.org>2003-03-26 10:29:08 +0000
commitbd9a60a647fdebb22bbbef33c62a75c622e59f67 (patch)
tree3a03dcd7ce1db68afe359b66e6171b7532a9913d /chinese/fcitx
parentAssume maintainership of this port. (diff)
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>
Notes
Notes: svn path=/head/; revision=77479
Diffstat (limited to 'chinese/fcitx')
-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
6 files changed, 68 insertions, 0 deletions
diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile
new file mode 100644
index 000000000000..372af7061c3d
--- /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 000000000000..e479771bd421
--- /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 000000000000..f9b0ee8e460b
--- /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 000000000000..c820202e8016
--- /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 000000000000..541c5ff2a1bf
--- /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 000000000000..ccecd328acc9
--- /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