From 2ea672b75fbcc2956472f7298421421166b150c6 Mon Sep 17 00:00:00 2001 From: kevlo Date: Wed, 29 Oct 2008 02:24:17 +0000 Subject: [PATCH] Initial import of scim-fcitx 3.1.1 scim-fcitx is an scim IMEngine module for fcitx. ok ajacoutot@ --- inputmethods/scim-fcitx/Makefile | 42 ++++++++++++++++++ inputmethods/scim-fcitx/distinfo | 5 +++ .../scim-fcitx/patches/patch-configure | 32 ++++++++++++++ .../scim-fcitx/patches/patch-src_sp_cpp | 11 +++++ .../scim-fcitx/patches/patch-src_tools_cpp | 11 +++++ inputmethods/scim-fcitx/pkg/DESCR | 1 + inputmethods/scim-fcitx/pkg/PLIST | 43 +++++++++++++++++++ 7 files changed, 145 insertions(+) create mode 100644 inputmethods/scim-fcitx/Makefile create mode 100644 inputmethods/scim-fcitx/distinfo create mode 100644 inputmethods/scim-fcitx/patches/patch-configure create mode 100644 inputmethods/scim-fcitx/patches/patch-src_sp_cpp create mode 100644 inputmethods/scim-fcitx/patches/patch-src_tools_cpp create mode 100644 inputmethods/scim-fcitx/pkg/DESCR create mode 100644 inputmethods/scim-fcitx/pkg/PLIST diff --git a/inputmethods/scim-fcitx/Makefile b/inputmethods/scim-fcitx/Makefile new file mode 100644 index 00000000000..e838744323f --- /dev/null +++ b/inputmethods/scim-fcitx/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/10/29 02:24:17 kevlo Exp $ + +SHARED_ONLY= Yes + +COMMENT= scim input method module for fcitx + +V= 3.1.1 +DISTNAME= scim-fcitx.$V +PKGNAME= scim-fcitx-$V + +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= c m stdc++ + +MODULES= devel/gettext + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scim/} +EXTRACT_SUFX= .tar.bz2 + +LIB_DEPENDS= scim-1.0::inputmethods/scim + +WRKDIST= ${WRKDIR}/fcitx +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-fcitx/distinfo b/inputmethods/scim-fcitx/distinfo new file mode 100644 index 00000000000..1cca16ddcf8 --- /dev/null +++ b/inputmethods/scim-fcitx/distinfo @@ -0,0 +1,5 @@ +MD5 (scim-fcitx.3.1.1.tar.bz2) = eB3JbrzjHilJ7LDDwcdp9g== +RMD160 (scim-fcitx.3.1.1.tar.bz2) = fAZK9LjIR8qsGuJ9Y1bpuSW7ZSg= +SHA1 (scim-fcitx.3.1.1.tar.bz2) = kA1MTeAbyHofm1Q6/BXozLGud3U= +SHA256 (scim-fcitx.3.1.1.tar.bz2) = Q0AMAMd3vlqcp/NphW6JgZzYMvG7P/JkFmDf+oh98qU= +SIZE (scim-fcitx.3.1.1.tar.bz2) = 1612134 diff --git a/inputmethods/scim-fcitx/patches/patch-configure b/inputmethods/scim-fcitx/patches/patch-configure new file mode 100644 index 00000000000..4dd57b6bac4 --- /dev/null +++ b/inputmethods/scim-fcitx/patches/patch-configure @@ -0,0 +1,32 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2008/10/29 02:24:17 kevlo Exp $ +--- configure.orig Sat Oct 25 15:48:33 2008 ++++ configure Sat Oct 25 15:50:24 2008 +@@ -465,7 +465,7 @@ ac_includes_default="\ + # include + #endif" + +-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SCIM_FCITX_MAJOR_VERSION SCIM_FCITX_MINOR_VERSION SCIM_FCITX_MICRO_VERSION SCIM_FCITX_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBTOOL_DEPS PKG_CONFIG ac_pt_PKG_CONFIG SCIM_CFLAGS SCIM_LIBS ac_aux_dir SCIM_DEBUG_FLAGS SCIM_ICONDIR SCIM_DATADIR SCIM_MODULEDIR SCIM_FCITXDATADIR LIBOBJS LTLIBOBJS' ++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SCIM_FCITX_MAJOR_VERSION SCIM_FCITX_MINOR_VERSION SCIM_FCITX_MICRO_VERSION SCIM_FCITX_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBTOOL_DEPS LIBTOOL_EXPORT_OPTIONS PKG_CONFIG ac_pt_PKG_CONFIG SCIM_CFLAGS SCIM_LIBS ac_aux_dir SCIM_DEBUG_FLAGS SCIM_ICONDIR SCIM_DATADIR SCIM_MODULEDIR SCIM_FCITXDATADIR LIBOBJS LTLIBOBJS' + ac_subst_files='' + + # Initialize some variables set by options. +@@ -19017,6 +19017,11 @@ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' + ++# libtool option to control which symbols are exported ++# right now, symbols starting with _ are not exported ++# !!! DO NOT USE IT !!! ++LIBTOOL_EXPORT_OPTIONS='' ++ + # Prevent multiple expansion + + +@@ -24486,6 +24491,7 @@ s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t + s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t + s,@LIBADD_DL@,$LIBADD_DL,;t t + s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t ++s,@LIBTOOL_EXPORT_OPTIONS@,$LIBTOOL_EXPORT_OPTIONS,;t t + s,@PKG_CONFIG@,$PKG_CONFIG,;t t + s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t + s,@SCIM_CFLAGS@,$SCIM_CFLAGS,;t t diff --git a/inputmethods/scim-fcitx/patches/patch-src_sp_cpp b/inputmethods/scim-fcitx/patches/patch-src_sp_cpp new file mode 100644 index 00000000000..56c7dd1c94d --- /dev/null +++ b/inputmethods/scim-fcitx/patches/patch-src_sp_cpp @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_sp_cpp,v 1.1.1.1 2008/10/29 02:24:17 kevlo Exp $ +--- src/sp.cpp.orig Sat Oct 25 15:36:52 2008 ++++ src/sp.cpp Sat Oct 25 15:37:30 2008 +@@ -11,6 +11,7 @@ using namespace scim; + #include + #include + #include ++#include + + #include "main.h" + #include "sp.h" diff --git a/inputmethods/scim-fcitx/patches/patch-src_tools_cpp b/inputmethods/scim-fcitx/patches/patch-src_tools_cpp new file mode 100644 index 00000000000..a19cdddff17 --- /dev/null +++ b/inputmethods/scim-fcitx/patches/patch-src_tools_cpp @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_tools_cpp,v 1.1.1.1 2008/10/29 02:24:17 kevlo Exp $ +--- src/tools.cpp.orig Sat Oct 25 15:34:40 2008 ++++ src/tools.cpp Sat Oct 25 15:35:41 2008 +@@ -14,6 +14,7 @@ using namespace scim; + #include + #include + #include ++#include + + #include "version.h" + #include "PYFA.h" diff --git a/inputmethods/scim-fcitx/pkg/DESCR b/inputmethods/scim-fcitx/pkg/DESCR new file mode 100644 index 00000000000..2acd701973c --- /dev/null +++ b/inputmethods/scim-fcitx/pkg/DESCR @@ -0,0 +1 @@ +scim-fcitx is an scim IMEngine module for fcitx. diff --git a/inputmethods/scim-fcitx/pkg/PLIST b/inputmethods/scim-fcitx/pkg/PLIST new file mode 100644 index 00000000000..a0aa9df3b49 --- /dev/null +++ b/inputmethods/scim-fcitx/pkg/PLIST @@ -0,0 +1,43 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/29 02:24:17 kevlo Exp $ +@bin bin/createPYMB +@bin bin/mb2txt +@bin bin/txt2mb +@comment lib/scim-1.0/1.4.0/IMEngine/fcitx.la +lib/scim-1.0/1.4.0/IMEngine/fcitx.so +share/scim/fcitx/ +share/scim/fcitx/cj.mb +share/scim/fcitx/erbi.mb +share/scim/fcitx/punc.mb +share/scim/fcitx/pySym.mb +share/scim/fcitx/pybase.mb +share/scim/fcitx/pyphrase.mb +share/scim/fcitx/sp.dat +share/scim/fcitx/tables.conf +share/scim/fcitx/wbx.mb +share/scim/icons/fcitx/ +share/scim/icons/fcitx/cangjie.png +share/scim/icons/fcitx/erbi.png +share/scim/icons/fcitx/fcitx.png +share/scim/icons/fcitx/full-letter.png +share/scim/icons/fcitx/full-punct.png +share/scim/icons/fcitx/gbk.png +share/scim/icons/fcitx/half-letter.png +share/scim/icons/fcitx/half-punct.png +share/scim/icons/fcitx/legend.png +share/scim/icons/fcitx/lock.png +share/scim/icons/fcitx/nocangjie.png +share/scim/icons/fcitx/noerbi.png +share/scim/icons/fcitx/nofcitx.png +share/scim/icons/fcitx/nogbk.png +share/scim/icons/fcitx/nolegend.png +share/scim/icons/fcitx/nolock.png +share/scim/icons/fcitx/nopinyin.png +share/scim/icons/fcitx/noquwei.png +share/scim/icons/fcitx/noshuangpin.png +share/scim/icons/fcitx/nowubi86.png +share/scim/icons/fcitx/nowubi98.png +share/scim/icons/fcitx/pinyin.png +share/scim/icons/fcitx/quwei.png +share/scim/icons/fcitx/shuangpin.png +share/scim/icons/fcitx/wubi86.png +share/scim/icons/fcitx/wubi98.png