summaryrefslogtreecommitdiff
path: root/chinese/iiimf-le-newpy
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-12-28 11:43:36 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-12-28 11:43:36 +0000
commit7874f190136393a609799dc33e0ed757e6ad48de (patch)
treeadd00dd6595a7919a80c46dccbf026a85370387d /chinese/iiimf-le-newpy
parentNew port: iiimf-* (diff)
New port: iiimf-*
IIIMF stands for Internet/Intranet Input Method Framework. IIIMF is designed to be the next generation of input method framework which provides the following capabilities; * Multiplatform, platform independent. * Multlingual and Full UNICODE support, but satisfactory for native speakers. * Windowing System Independent. * Multiple language engines concurrently run. * Multiuser. * Distributed, lightweight clients and scalable server. * Extensible in multiple means. * Input method protocol efficient enough to be used over low-speed modem connection. * Easy input method engine development with plugin API. * Easy input method enabling with libiiimcf, even on console apps. * Small core part to start from. WWW: http://www.openi18n.org/subgroups/im/IIIMF/ - Kuang-che Wu kcwu@csie.org PR: ports/60087 Submitted by: Kuang-che Wu <kcwu@csie.org>
Diffstat (limited to 'chinese/iiimf-le-newpy')
-rw-r--r--chinese/iiimf-le-newpy/Makefile55
-rw-r--r--chinese/iiimf-le-newpy/distinfo1
-rw-r--r--chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h10
-rw-r--r--chinese/iiimf-le-newpy/pkg-descr21
-rw-r--r--chinese/iiimf-le-newpy/pkg-plist20
5 files changed, 107 insertions, 0 deletions
diff --git a/chinese/iiimf-le-newpy/Makefile b/chinese/iiimf-le-newpy/Makefile
new file mode 100644
index 000000000000..6edbe37a7b75
--- /dev/null
+++ b/chinese/iiimf-le-newpy/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: iiimf-le-newpy
+# Date created: 6 Dec 2003
+# Whom: Kuang-che Wu <kcwu@csie.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= iiimf-le-newpy
+PORTVERSION= ${IIIMF_VER:S/_/./:C/-.*//}
+CATEGORIES= chinese textproc
+MASTER_SITES= http://www.openi18n.org/download/docs/im-sdk/
+DISTNAME= im-sdk
+DISTFILES= ${DISTNAME}.${IIIMF_VER:S/-/./}${EXTRACT_SUFX}
+
+MAINTAINER= kcwu@csie.org
+COMMENT= Internet/Intranet Input Method Framework language engine newpy
+
+IIIMF_VER= r11_4-1467
+WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}/leif
+BUILD_WRKSRC= ${WRKSRC}/newpy
+INSTALL_WRKSRC= ${WRKSRC}/newpy
+USE_BZIP2= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX}
+.if defined(WANT_XAUX)
+USE_MOTIF= yes
+PLIST_SUB+= WANT_XAUX=""
+.else
+CONFIGURE_ARGS+=--without-x
+PLIST_SUB+= WANT_XAUX="@comment "
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e "s,-lpthread,-pthread,g" \
+ -e "s,-D_POSIX_C_SOURCE=199506L,,g" \
+ -e "s,has_xiccallback=no,has_xiccallback=yes,g" \
+ -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
+ ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
+ ${WRKSRC}/newpy/NewPY.c \
+ ${WRKSRC}/newpy/xaux/aux_so.c \
+ ${WRKSRC}/newpy/xaux/aux_win.c
+
+.if defined(WANT_XAUX)
+post-build:
+ cd ${BUILD_WRKSRC}/xaux && ${GMAKE} all
+
+post-install:
+ cd ${INSTALL_WRKSRC}/xaux && ${GMAKE} install
+.endif
+
+.include <bsd.port.mk>
diff --git a/chinese/iiimf-le-newpy/distinfo b/chinese/iiimf-le-newpy/distinfo
new file mode 100644
index 000000000000..4ec913af341f
--- /dev/null
+++ b/chinese/iiimf-le-newpy/distinfo
@@ -0,0 +1 @@
+MD5 (im-sdk.r11_4.1467.tar.bz2) = ca6b6ac7c41641db6eaa0fa395748f90
diff --git a/chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h b/chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h
new file mode 100644
index 000000000000..0425516db180
--- /dev/null
+++ b/chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h
@@ -0,0 +1,10 @@
+--- newpy/PYIM.h.orig Sat Dec 6 02:51:17 2003
++++ newpy/PYIM.h Sat Dec 6 02:51:23 2003
+@@ -47,7 +47,6 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+ #include <string.h>
+ /*
+ #include <sys/types.h>
diff --git a/chinese/iiimf-le-newpy/pkg-descr b/chinese/iiimf-le-newpy/pkg-descr
new file mode 100644
index 000000000000..ac72b20e8941
--- /dev/null
+++ b/chinese/iiimf-le-newpy/pkg-descr
@@ -0,0 +1,21 @@
+IIIMF stands for Internet/Intranet Input Method Framework.
+IIIMF is designed to be the next generation of input method framework
+which provides the following capabilities;
+
+* Multiplatform, platform independent.
+* Multlingual and Full UNICODE support, but satisfactory for native speakers.
+* Windowing System Independent.
+* Multiple language engines concurrently run.
+* Multiuser.
+* Distributed, lightweight clients and scalable server.
+* Extensible in multiple means.
+* Input method protocol efficient enough to be used over low-speed modem
+ connection.
+* Easy input method engine development with plugin API.
+* Easy input method enabling with libiiimcf, even on console apps.
+* Small core part to start from.
+
+WWW: http://www.openi18n.org/subgroups/im/IIIMF/
+
+- Kuang-che Wu
+ kcwu@csie.org
diff --git a/chinese/iiimf-le-newpy/pkg-plist b/chinese/iiimf-le-newpy/pkg-plist
new file mode 100644
index 000000000000..41e35a38c178
--- /dev/null
+++ b/chinese/iiimf-le-newpy/pkg-plist
@@ -0,0 +1,20 @@
+lib/im/leif/newpy.so
+lib/im/locale/zh_CN/newpy/data/PyCiku.dat
+lib/im/locale/zh_CN/newpy/data/UdCiku.dat
+lib/im/locale/zh_CN/newpy/newpy_obj.jar
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.so.0
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.so
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.la
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.a
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux_win
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/full.gif
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/gb.gif
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/gbk.gif
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/half.gif
+%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/help.gif
+@dirrm lib/im/locale/zh_CN/newpy/data
+@dirrm lib/im/locale/zh_CN/newpy
+@dirrm lib/im/locale/zh_CN
+@dirrm lib/im/locale
+@dirrm lib/im/leif
+@unexec rmdir %D/lib/im 2>/dev/null || true