From f0ddbfff4e196cc83b86b6695ce80a2f3b764905 Mon Sep 17 00:00:00 2001 From: kevlo Date: Wed, 29 Oct 2008 02:23:07 +0000 Subject: [PATCH] Initial import of scim-chewing 0.3.2 scim-chewing is an scim IMEngine module for chewing. ok ajacoutot@ --- inputmethods/scim-chewing/Makefile | 49 +++++++++++++++++++ inputmethods/scim-chewing/distinfo | 5 ++ .../patch-src_scim_chewing_imengine_cpp | 30 ++++++++++++ inputmethods/scim-chewing/pkg/DESCR | 1 + inputmethods/scim-chewing/pkg/PLIST | 7 +++ 5 files changed, 92 insertions(+) create mode 100644 inputmethods/scim-chewing/Makefile create mode 100644 inputmethods/scim-chewing/distinfo create mode 100644 inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp create mode 100644 inputmethods/scim-chewing/pkg/DESCR create mode 100644 inputmethods/scim-chewing/pkg/PLIST diff --git a/inputmethods/scim-chewing/Makefile b/inputmethods/scim-chewing/Makefile new file mode 100644 index 00000000000..9e96c3e12fe --- /dev/null +++ b/inputmethods/scim-chewing/Makefile @@ -0,0 +1,49 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/10/29 02:23:07 kevlo Exp $ + +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 + +# 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 diff --git a/inputmethods/scim-chewing/distinfo b/inputmethods/scim-chewing/distinfo new file mode 100644 index 00000000000..0e470bfe410 --- /dev/null +++ b/inputmethods/scim-chewing/distinfo @@ -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 --git a/inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp b/inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp new file mode 100644 index 00000000000..c7398508030 --- /dev/null +++ b/inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp @@ -0,0 +1,30 @@ +$OpenBSD: patch-src_scim_chewing_imengine_cpp,v 1.1.1.1 2008/10/29 02:23:07 kevlo Exp $ +--- 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 --git a/inputmethods/scim-chewing/pkg/DESCR b/inputmethods/scim-chewing/pkg/DESCR new file mode 100644 index 00000000000..c9b14b18bd7 --- /dev/null +++ b/inputmethods/scim-chewing/pkg/DESCR @@ -0,0 +1 @@ +scim-chewing is an scim IMEngine module for chewing. diff --git a/inputmethods/scim-chewing/pkg/PLIST b/inputmethods/scim-chewing/pkg/PLIST new file mode 100644 index 00000000000..ee3aa2202be --- /dev/null +++ b/inputmethods/scim-chewing/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/29 02:23:07 kevlo Exp $ +@comment lib/scim-1.0/1.4.0/IMEngine/chewing.la +lib/scim-1.0/1.4.0/IMEngine/chewing.so +@comment 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