ports/94956: [NEW PORT] chinese/oxim: Open X Input Method server
Rong-En Fan
rafan at infor.org
Sun Mar 26 14:30:25 UTC 2006
>Number: 94956
>Category: ports
>Synopsis: [NEW PORT] chinese/oxim: Open X Input Method server
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 26 14:30:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Rong-En Fan
>Release: FreeBSD 6.0-RELEASE
>Organization:
NTU CSIE
>Environment:
>Description:
oxim is a common input method server, which focuses mainly on Chinese.
It is mainly developed by Firefly <firefly at ossii.com.tw>, and is a
fork from xcin 2.5.3 (pre-release version). In addition to the
original Root and OverTheSpot input style inherited from xcin, it
also supports OnTheSpot and OnTheSpotQT. You can easily use oxim in
GTK and QT based software.
WWW: http://opendesktop.org.tw/
Generated with FreeBSD Port Tools 0.63
Also thanks Joe Marcus Clarke's tinderbox (misc/tinderbox) to provide
an easy enviroment to test build everything :)
>How-To-Repeat:
>Fix:
--- oxim-1.0.1.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# oxim
# oxim/files
# oxim/files/patch-configure
# oxim/files/patch-gtk-immodule-gtkintl.h
# oxim/Makefile
# oxim/distinfo
# oxim/pkg-descr
# oxim/pkg-plist
# oxim/pkg-message
#
echo c - oxim
mkdir -p oxim > /dev/null 2>&1
echo c - oxim/files
mkdir -p oxim/files > /dev/null 2>&1
echo x - oxim/files/patch-configure
sed 's/^X//' >oxim/files/patch-configure << 'END-of-oxim/files/patch-configure'
X--- configure.orig Sat Mar 18 10:57:51 2006
X+++ configure Sat Mar 18 11:02:32 2006
X@@ -29642,6 +29642,7 @@
X test $found = y && break
X done
X fi
X+if test "$enable_bimsphone_module" = "yes" ; then
X if test $found = n; then
X echo "$as_me:$LINENO: result: You need Berkeley DB to compile bimsphone module." >&5
X echo "${ECHO_T}You need Berkeley DB to compile bimsphone module." >&6
X@@ -29652,6 +29653,10 @@
X DB_INC=${db_include}
X
X DB_LIBS=${db_lib}
X+else
X+DB_INC=
X+DB_LIBS=
X+fi
X
X
X #-----------------------------------------------------------------------
END-of-oxim/files/patch-configure
echo x - oxim/files/patch-gtk-immodule-gtkintl.h
sed 's/^X//' >oxim/files/patch-gtk-immodule-gtkintl.h << 'END-of-oxim/files/patch-gtk-immodule-gtkintl.h'
X--- src/gtk-immodule/gtkintl.h.orig Thu Mar 23 08:43:55 2006
X+++ src/gtk-immodule/gtkintl.h Thu Mar 23 08:46:33 2006
X@@ -1,7 +1,7 @@
X #ifndef __GTKINTL_H__
X #define __GTKINTL_H__
X #define ENABLE_NLS 1
X-#define GTK_LOCALEDIR "/usr/share/locale"
X+#define GTK_LOCALEDIR "%%PREFIX%%/share/locale"
X #define GETTEXT_PACKAGE "gtk20"
X
X #ifdef ENABLE_NLS
END-of-oxim/files/patch-gtk-immodule-gtkintl.h
echo x - oxim/Makefile
sed 's/^X//' >oxim/Makefile << 'END-of-oxim/Makefile'
X# New ports collection makefile for: oxim
X# Date created: Mar 19 2005da
X# Whom: Rong-En Fan <rafan at infor.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= oxim
XPORTVERSION= 1.0.1
XCATEGORIES= chinese textproc
XMASTER_SITES= ftp://140.111.128.66/odp/OXIM/Source/
X
XMAINTAINER= rafan at infor.org
XCOMMENT= Open X Input Method server
X
X# make sure we have the required libchewing
XLIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
XBUILD_DEPENDS= zh-libchewing>=0.2.7:${PORTSDIR}/chinese/libchewing
XRUN_DEPENDS= zh-libchewing>=0.2.7:${PORTSDIR}/chinese/libchewing \
X zh-fireflyttf>=0:${PORTSDIR}/chinese/fireflyttf
X
XOPTIONS= GTK2 "Enable GTK2 input method module" On
X
XUSE_ICONV= yes
XUSE_X_PREFIX= yes
XUSE_GNOME=
X
XGNU_CONFIGURE= yes
XINSTALLS_SHLIB= yes
XCPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
XLDFLAGS+= -L${LOCALBASE}/lib -liconv
XCONFIGURE_ENV+= CONFIG_SHELL=${SH} \
X CHEWING_CFLAGS=-I${LOCALBASE}/include \
X CPPFLAGS="${CPPFLAGS}" \
X LDFLAGS="${LDFLAGS}"
XCONFIGURE_ARGS+=--disable-bimsphone-module \
X --disable-static \
X --with-conf-dir=${PREFIX}/etc/${PORTNAME}
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITHOUT_GTK2)
XCONFIGURE_ARGS+= --disable-gtk-immodule
XPLIST_SUB+= GTK2="@comment "
X.else
XUSE_GNOME+= gtk20
XCONFIGURE_ARGS+= --enable-gtk-immodule
XPLIST_SUB+= GTK2=""
X.endif
X
X# TODO WITHOUT_NLS knob
X#.if !defined(WITHOUT_NLS)
XUSE_GETTEXT= yes
XPLIST_SUB+= NLS=""
XLDFLAGS+= -lintl
XCONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
X#.else
X#CONFIGURE_ARGS+=--disable-nls
X#PLIST_SUB+= NLS="@comment "
X#.endif
X
Xpost-patch:
X ${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' \
X ${WRKSRC}/src/gtk-immodule/gtkintl.h
Xpost-install:
X.if !defined(WITHOUT_GTK2)
X @gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
X.endif
X @${CAT} ${PKGMESSAGE}
X @${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
X
X.include <bsd.port.post.mk>
END-of-oxim/Makefile
echo x - oxim/distinfo
sed 's/^X//' >oxim/distinfo << 'END-of-oxim/distinfo'
XMD5 (oxim-1.0.1.tar.gz) = c884153c122e4110a85184141de53aca
XSHA256 (oxim-1.0.1.tar.gz) = 2099c98f8b0aa9830b92f0dff42fc461cce92ce48d43d81b4d8036bdb4d019a2
XSIZE (oxim-1.0.1.tar.gz) = 3023499
END-of-oxim/distinfo
echo x - oxim/pkg-descr
sed 's/^X//' >oxim/pkg-descr << 'END-of-oxim/pkg-descr'
Xoxim is a common input method server, which focuses mainly on Chinese.
XIt is mainly developed by Firefly <firefly at ossii.com.tw>, and is a
Xfork from xcin 2.5.3 (pre-release version). In addition to the
Xoriginal Root and OverTheSpot input style inherited from xcin, it
Xalso supports OnTheSpot and OnTheSpotQT. You can easily use oxim in
XGTK and QT based software.
X
XWWW: http://opendesktop.org.tw/
END-of-oxim/pkg-descr
echo x - oxim/pkg-plist
sed 's/^X//' >oxim/pkg-plist << 'END-of-oxim/pkg-plist'
Xbin/oxim
Xbin/oxim2tab
Xetc/oxim/locale.list
Xetc/oxim/oxim.conf
Xlib/liboxim.la
Xlib/liboxim.so
Xlib/liboxim.so.0
X%%GTK2%%lib/gtk-2.0/immodules/gtk-im-oxim.la
X%%GTK2%%lib/gtk-2.0/immodules/gtk-im-oxim.so
Xlib/oxim/modules/chewing.la
Xlib/oxim/modules/chewing.so
Xlib/oxim/modules/gen-inp.la
Xlib/oxim/modules/gen-inp.so
Xlib/oxim/modules/unicode.la
Xlib/oxim/modules/unicode.so
Xlib/oxim/tables/array30.tab
Xlib/oxim/tables/cns11643.tab
Xlib/oxim/tables/cnscj.tab
Xlib/oxim/tables/cnsimplex.tab
Xlib/oxim/tables/cnsphone.tab
Xlib/oxim/tables/default.phr
Xlib/oxim/tables/ez.tab
Xlib/oxim/tables/sys.tab
X at dirrm etc/oxim
X at dirrm lib/oxim/tables
X at dirrm lib/oxim/modules
X at dirrm lib/oxim
X%%GTK2%%@dirrmtry lib/gtk-2.0/immodules
X%%GTK2%%@dirrmtry lib/gtk-2.0
X%%GTK2%%@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
X%%GTK2%%@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
END-of-oxim/pkg-plist
echo x - oxim/pkg-message
sed 's/^X//' >oxim/pkg-message << 'END-of-oxim/pkg-message'
X--------------------------------------------------------------------
XRemember to set environment variables:
X
X (csh/tcsh) (sh/bash)
X setenv XMODIFIERS @im=oxim export XMODIFIERS='@im=xcin'
X setenv GTK_IM_MODULE oxim export GTK_IM_MODULE=oxim
X setenv QT_IM_MODULE xim export QT_IM_MODULE=xim
X
XIf you have disabled GTK2 support, you may want to use ``xim'' for
XGTK_IM_MODULE (GTK2 support is enabled by default).
X
XFinally, to start the oxim input method daemon, use command:
X
X exec oxim &
X
X--------------------------------------------------------------------
END-of-oxim/pkg-message
exit
--- oxim-1.0.1.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list