Tested on amd64.

$ cat DESCR:
scim-chewing is an scim IMEngine module for chewing.

        Kevin
diff -ruN inputmethods.orig/scim-chewing/Makefile inputmethods/scim-chewing/Makefile
--- inputmethods.orig/scim-chewing/Makefile	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-chewing/Makefile	Mon Oct 27 18:36:05 2008
@@ -0,0 +1,49 @@
+# $OpenBSD$
+
+SHARED_ONLY=	Yes
+
+COMMENT=	scim input method module for chewing
+
+DISTNAME=	scim-chewing-0.3.2
+
+CATEGORIES=	inputmethods chinese
+
+HOMEPAGE=	http://www.scim-im.org/
+
+MAINTAINER=	Kevin Lo <[EMAIL PROTECTED]>
+
+# GPLv2
+PERMIT_PACKAGE_CDROM=	Yes
+PERMIT_DISTFILES_CDROM=	Yes
+PERMIT_PACKAGE_FTP=	Yes
+PERMIT_DISTFILES_FTP=	Yes
+
+WANTLIB=	X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
+		Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
+		freetype gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0 glitz \
+		gmodule-2.0 gobject-2.0 gtk-x11-2.0 m pango-1.0 \
+		pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png stdc++ z
+
+
+MODULES=	devel/gettext \
+		textproc/intltool
+
+MASTER_SITES=	http://chewing.csie.net/download/scim/
+EXTRACT_SUFX=	.tar.bz2
+
+BUILD_DEPENDS=	::textproc/p5-XML-Parser
+LIB_DEPENDS=	gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2 \
+		chewing::chinese/libchewing \
+		scim-1.0,scim-gtkutils-1.0,scim-x11utils-1.0::inputmethods/scim
+
+USE_X11=	Yes
+USE_LIBTOOL=	Yes
+LIBTOOL_FLAGS=	--tag=disable-static
+
+CONFIGURE_STYLE=gnu
+CONFIGURE_ARGS=	${CONFIGURE_SHARED} \
+		--disable-static
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
diff -ruN inputmethods.orig/scim-chewing/distinfo inputmethods/scim-chewing/distinfo
--- inputmethods.orig/scim-chewing/distinfo	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-chewing/distinfo	Mon Oct 27 18:36:05 2008
@@ -0,0 +1,5 @@
+MD5 (scim-chewing-0.3.2.tar.bz2) = RTzlJvDogJg2lIX2Ui6dQA==
+RMD160 (scim-chewing-0.3.2.tar.bz2) = jiPAZQhHTB8yLiSfK80FxdArLwM=
+SHA1 (scim-chewing-0.3.2.tar.bz2) = Ol4ErU5B9szFLmS1RPbTcxdewHY=
+SHA256 (scim-chewing-0.3.2.tar.bz2) = b09OqqK+jPscBkyCs1LyylIm8mtyEw1EZRGYGcgftGs=
+SIZE (scim-chewing-0.3.2.tar.bz2) = 318744
diff -ruN inputmethods.orig/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp
--- inputmethods.orig/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp	Mon Oct 27 18:36:05 2008
@@ -0,0 +1,30 @@
+$OpenBSD$
+--- src/scim_chewing_imengine.cpp.orig	Wed Oct  1 17:53:55 2008
++++ src/scim_chewing_imengine.cpp	Sat Oct 25 16:48:55 2008
+@@ -591,7 +591,7 @@ bool ChewingIMEngineInstance::commit( ChewingOutput *p
+     SCIM_DEBUG_IMENGINE( 2 ) <<
+         "IMEngine Instance Commit\n";
+ 	// commit string
+-	m_commit_string = L"";
++	m_commit_string = WideString ();
+ 	if ( pgo->keystrokeRtn & KEYSTROKE_COMMIT ) {
+ 		for ( int i = 0; i < pgo->nCommitStr; i++ ) {
+ 			m_commit_string += utf8_mbstowcs((char *)pgo->commitStr[ i ].s, 
+@@ -601,7 +601,7 @@ bool ChewingIMEngineInstance::commit( ChewingOutput *p
+ 		}
+ 		commit_string( m_commit_string );
+ 	}
+-	m_preedit_string = L"";
++	m_preedit_string = WideString ();
+ 	// preedit string
+ 	// XXX show Interval
+ 	for ( int i = 0; i < pgo->chiSymbolCursor; i++ ) {
+@@ -684,7 +684,7 @@ bool ChewingIMEngineInstance::commit( ChewingOutput *p
+ 	}
+ 	
+ 	// show aux string
+-	m_aux_string = L"";
++	m_aux_string = WideString ();
+ 	if ( pgo->bShowMsg ) {
+ 		for ( int i = 0; i < pgo->showMsgLen; i++ ) {
+             m_aux_string += utf8_mbstowcs((char *)pgo->showMsg[ i ].s, MAX_UTF8_SIZE);
diff -ruN inputmethods.orig/scim-chewing/pkg/DESCR inputmethods/scim-chewing/pkg/DESCR
--- inputmethods.orig/scim-chewing/pkg/DESCR	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-chewing/pkg/DESCR	Mon Oct 27 18:36:05 2008
@@ -0,0 +1 @@
+scim-chewing is an scim IMEngine module for chewing.
diff -ruN inputmethods.orig/scim-chewing/pkg/PLIST inputmethods/scim-chewing/pkg/PLIST
--- inputmethods.orig/scim-chewing/pkg/PLIST	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-chewing/pkg/PLIST	Mon Oct 27 18:36:05 2008
@@ -0,0 +1,7 @@
[EMAIL PROTECTED] $OpenBSD$
+lib/scim-1.0/1.4.0/IMEngine/chewing.la
+lib/scim-1.0/1.4.0/IMEngine/chewing.so
+lib/scim-1.0/1.4.0/SetupUI/chewing-imengine-setup.la
+lib/scim-1.0/1.4.0/SetupUI/chewing-imengine-setup.so
+share/scim/icons/scim-chewing-swap-colors.png
+share/scim/icons/scim-chewing.png

Reply via email to