From d3d673d39eed6ede6f1d1b990b87ee010cdfa368 Mon Sep 17 00:00:00 2001 From: pav Date: Wed, 13 Oct 2004 22:36:16 +0000 Subject: Add iiimf-le-chewing, an Intelligent Chinese Phonetic Input Method for UNIX. PR: ports/72624 Submitted by: Kuang-che Wu --- chinese/Makefile | 1 + chinese/iiimf-le-chewing/Makefile | 34 ++++++++++++++++++++++++++ chinese/iiimf-le-chewing/distinfo | 2 ++ chinese/iiimf-le-chewing/files/patch-chewing.c | 19 ++++++++++++++ chinese/iiimf-le-chewing/pkg-descr | 9 +++++++ chinese/iiimf-le-chewing/pkg-plist | 2 ++ 6 files changed, 67 insertions(+) create mode 100644 chinese/iiimf-le-chewing/Makefile create mode 100644 chinese/iiimf-le-chewing/distinfo create mode 100644 chinese/iiimf-le-chewing/files/patch-chewing.c create mode 100644 chinese/iiimf-le-chewing/pkg-descr create mode 100644 chinese/iiimf-le-chewing/pkg-plist (limited to 'chinese') diff --git a/chinese/Makefile b/chinese/Makefile index 69fa863637f4..68d776e9e0c9 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -52,6 +52,7 @@ SUBDIR += hanzim SUBDIR += hc SUBDIR += hztty + SUBDIR += iiimf-le-chewing SUBDIR += iiimf-le-newpy SUBDIR += irssi SUBDIR += jis2gb diff --git a/chinese/iiimf-le-chewing/Makefile b/chinese/iiimf-le-chewing/Makefile new file mode 100644 index 000000000000..75175d00f5d2 --- /dev/null +++ b/chinese/iiimf-le-chewing/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: iiimf-le-chewing +# Date created: 8 Sep 2004 +# Whom: Kuang-che Wu +# +# $FreeBSD$ +# + +PORTNAME= iiimf-le-chewing +PORTVERSION= 0.01 +CATEGORIES= chinese textproc +MASTER_SITES= http://wagner.elixus.org/~clkao/ +DISTFILES= iiimf-chewing.tgz + +MAINTAINER= kcwu@csie.org +COMMENT= IIIMF Chewing engine, an intelligent Chinese phonetic input method + +LIB_DEPENDS= chewing.1:${PORTSDIR}/chinese/libchewing +BUILD_DEPENDS= ${LOCALBASE}/include/iiimf/iml/SunIM.h:${PORTSDIR}/textproc/iiimf-headers +RUN_DEPENDS= ${LOCALBASE}/lib/im/htt:${PORTSDIR}/textproc/iiimf-server + +WRKSRC= ${WRKDIR}/trunk +USE_ICONV= yes + +do-build: + cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -o chewing.so -shared -fPIC -DARCH=\"${MACHINE_ARCH}\" \ + -I${LOCALBASE}/include -I${LOCALBASE}/include/iiimf -I${LOCALBASE}/include/iiimf/iml -I${LOCALBASE}/include/chewing \ + chewing.c -L${LOCALBASE}/lib -lchewing -liconv + +do-install: + ${MKDIR} ${PREFIX}/lib/im/leif + ${INSTALL_DATA} ${WRKSRC}/chewing.so ${PREFIX}/lib/im/leif + +.include diff --git a/chinese/iiimf-le-chewing/distinfo b/chinese/iiimf-le-chewing/distinfo new file mode 100644 index 000000000000..ff3ef958267b --- /dev/null +++ b/chinese/iiimf-le-chewing/distinfo @@ -0,0 +1,2 @@ +MD5 (iiimf-chewing.tgz) = 349828bd3ff62621b9e924d696395edc +SIZE (iiimf-chewing.tgz) = 5256 diff --git a/chinese/iiimf-le-chewing/files/patch-chewing.c b/chinese/iiimf-le-chewing/files/patch-chewing.c new file mode 100644 index 000000000000..97ca0512729a --- /dev/null +++ b/chinese/iiimf-le-chewing/files/patch-chewing.c @@ -0,0 +1,19 @@ +--- chewing.c.orig Sat Jan 31 14:41:35 2004 ++++ chewing.c Wed Sep 8 04:33:13 2004 +@@ -40,7 +40,6 @@ + + #include "chewingio.h" + #include "hash.h" +-#include "console_chewing.h" + #include "dict.h" + #include "zuin.h" + +@@ -647,7 +646,7 @@ + case IM_VK_PAGE_DOWN: + break; + +- case KEY_TAB: ++ case '\t': + OnKeyTab(pgdata, op); + break; + diff --git a/chinese/iiimf-le-chewing/pkg-descr b/chinese/iiimf-le-chewing/pkg-descr new file mode 100644 index 000000000000..a01f6b9bab59 --- /dev/null +++ b/chinese/iiimf-le-chewing/pkg-descr @@ -0,0 +1,9 @@ +IIIMF stands for Internet/Intranet Input Method Framework. +IIIMF is designed to be the next generation of input method framework + +Chewing - An Intelligent Chinese Phonetic Input Method for UNIX + +WWW: http://chewing.good-man.org/ + +- Kuang-che Wu + kcwu@csie.org diff --git a/chinese/iiimf-le-chewing/pkg-plist b/chinese/iiimf-le-chewing/pkg-plist new file mode 100644 index 000000000000..c3d15ffdbce2 --- /dev/null +++ b/chinese/iiimf-le-chewing/pkg-plist @@ -0,0 +1,2 @@ +lib/im/leif/chewing.so +@unexec rmdir %D/lib/im/leif 2>/dev/null || true -- cgit