summaryrefslogtreecommitdiffstats
path: root/japanese/scim-anthy
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/scim-anthy')
-rw-r--r--japanese/scim-anthy/Makefile50
-rw-r--r--japanese/scim-anthy/distinfo3
-rw-r--r--japanese/scim-anthy/files/patch-configure21
-rw-r--r--japanese/scim-anthy/files/patch-src::scim_anthy_key2kana.cpp13
-rw-r--r--japanese/scim-anthy/files/patch-src::scim_anthy_utils.cpp12
-rw-r--r--japanese/scim-anthy/pkg-descr3
-rw-r--r--japanese/scim-anthy/pkg-message11
-rw-r--r--japanese/scim-anthy/pkg-plist32
8 files changed, 145 insertions, 0 deletions
diff --git a/japanese/scim-anthy/Makefile b/japanese/scim-anthy/Makefile
new file mode 100644
index 000000000..15af63937
--- /dev/null
+++ b/japanese/scim-anthy/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: ja-scim-anthy
+# Date created: 2 Mar 2005
+# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= scim-anthy
+PORTVERSION= 1.2.0
+PORTREVISION= 1
+CATEGORIES= japanese
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
+MASTER_SITE_SUBDIR=scim-imengine/21166
+
+MAINTAINER= ume@FreeBSD.org
+COMMENT= SCIM IMEngine module using Anthy
+
+BUILD_DEPENDS= scim:${PORTSDIR}/textproc/scim
+LIB_DEPENDS= anthy.1:${PORTSDIR}/japanese/anthy
+RUN_DEPENDS= ${BUILD_DEPENDS} \
+ kasumi:${PORTSDIR}/japanese/kasumi
+
+USE_GNOME= lthack
+USE_XLIB= yes
+USE_ICONV= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/stlport" \
+ LDFLAGS="-L${LOCALBASE}/lib -lstlport_gcc ${PTHREAD_LIBS}"
+.else
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO}
+ @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
+ @${ECHO}
+
+.include <bsd.port.post.mk>
diff --git a/japanese/scim-anthy/distinfo b/japanese/scim-anthy/distinfo
new file mode 100644
index 000000000..b7c937a8d
--- /dev/null
+++ b/japanese/scim-anthy/distinfo
@@ -0,0 +1,3 @@
+MD5 (scim-anthy-1.2.0.tar.gz) = ce8d4ff0c8e96413d343e2d80daba3ee
+SHA256 (scim-anthy-1.2.0.tar.gz) = 786eece2d342ab8b66575c927d8741e202d3091daa1947c3bd2e14a02745d228
+SIZE (scim-anthy-1.2.0.tar.gz) = 643320
diff --git a/japanese/scim-anthy/files/patch-configure b/japanese/scim-anthy/files/patch-configure
new file mode 100644
index 000000000..e682e4936
--- /dev/null
+++ b/japanese/scim-anthy/files/patch-configure
@@ -0,0 +1,21 @@
+Index: configure
+diff -u configure.orig configure
+--- configure.orig Wed Dec 28 19:20:36 2005
++++ configure Wed Dec 28 19:23:38 2005
+@@ -465,7 +465,7 @@
+ # include <unistd.h>
+ #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_ANTHY_MAJOR_VERSION SCIM_ANTHY_MINOR_VERSION SCIM_ANTHY_MICRO_VERSION SCIM_ANTHY_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB GETTEXT_PACKAGE LN_S ECHO AR ac_ct_AR 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 SCIM_GTKUTILS_CFLAGS SCIM_GTKUTILS_LIBS SCIM_VERSION SCIM_BUILD_SETUP_TRUE SCIM_BUILD_SETUP_FALSE SCIM_BUILD_SETUP ac_aux_dir ANTHY_LIBS ANTHY_CFLAGS GTK2_CFLAGS GTK2_LIBS SCIM_BUILD_HELPER_TRUE SCIM_BUILD_HELPER_FALSE SCIM_BUILD_HELPER SCIM_DEBUG_FLAGS SCIM_DATADIR SCIM_ICONDIR SCIM_MODULEDIR SCIM_ANTHY_DATADIR 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_ANTHY_MAJOR_VERSION SCIM_ANTHY_MINOR_VERSION SCIM_ANTHY_MICRO_VERSION SCIM_ANTHY_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB GETTEXT_PACKAGE LN_S ECHO AR ac_ct_AR 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 SCIM_GTKUTILS_CFLAGS SCIM_GTKUTILS_LIBS SCIM_VERSION SCIM_BUILD_SETUP_TRUE SCIM_BUILD_SETUP_FALSE SCIM_BUILD_SETUP ac_aux_dir ANTHY_LIBS ANTHY_CFLAGS GTK2_CFLAGS GTK2_LIBS SCIM_BUILD_HELPER_TRUE SCIM_BUILD_HELPER_FALSE SCIM_BUILD_HELPER SCIM_DEBUG_FLAGS SCIM_DATADIR SCIM_ICONDIR SCIM_MODULEDIR SCIM_ANTHY_DATADIR LIBOBJS LTLIBOBJS'
+ ac_subst_files=''
+
+ # Initialize some variables set by options.
+@@ -31723,6 +31723,7 @@
+ 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/japanese/scim-anthy/files/patch-src::scim_anthy_key2kana.cpp b/japanese/scim-anthy/files/patch-src::scim_anthy_key2kana.cpp
new file mode 100644
index 000000000..5a324cd82
--- /dev/null
+++ b/japanese/scim-anthy/files/patch-src::scim_anthy_key2kana.cpp
@@ -0,0 +1,13 @@
+Index: src/scim_anthy_key2kana.cpp
+diff -u src/scim_anthy_key2kana.cpp.orig src/scim_anthy_key2kana.cpp
+--- src/scim_anthy_key2kana.cpp.orig Tue Jul 11 11:22:08 2006
++++ src/scim_anthy_key2kana.cpp Mon Sep 4 01:45:58 2006
+@@ -23,6 +23,8 @@
+ #include "scim_anthy_imengine.h"
+ #include "scim_anthy_utils.h"
+
++#include <wctype.h>
++
+ using namespace scim_anthy;
+
+ Key2KanaConvertor::Key2KanaConvertor (AnthyInstance & anthy,
diff --git a/japanese/scim-anthy/files/patch-src::scim_anthy_utils.cpp b/japanese/scim-anthy/files/patch-src::scim_anthy_utils.cpp
new file mode 100644
index 000000000..489d1e2bd
--- /dev/null
+++ b/japanese/scim-anthy/files/patch-src::scim_anthy_utils.cpp
@@ -0,0 +1,12 @@
+Index: src/scim_anthy_utils.cpp
+diff -u src/scim_anthy_utils.cpp.orig src/scim_anthy_utils.cpp
+--- src/scim_anthy_utils.cpp.orig Thu Jul 7 17:24:45 2005
++++ src/scim_anthy_utils.cpp Thu Jul 21 16:54:04 2005
+@@ -17,6 +17,7 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
++#include <unistd.h>
+ #include <sys/wait.h>
+
+ #include "scim_anthy_utils.h"
diff --git a/japanese/scim-anthy/pkg-descr b/japanese/scim-anthy/pkg-descr
new file mode 100644
index 000000000..1f5d9806d
--- /dev/null
+++ b/japanese/scim-anthy/pkg-descr
@@ -0,0 +1,3 @@
+scim-anthy is the SCIM IMEngine module using the Anthy input method.
+
+WWW: http://sourceforge.jp/projects/scim-imengine/
diff --git a/japanese/scim-anthy/pkg-message b/japanese/scim-anthy/pkg-message
new file mode 100644
index 000000000..316515697
--- /dev/null
+++ b/japanese/scim-anthy/pkg-message
@@ -0,0 +1,11 @@
+--------------------------------------------------------------------
+Remember to set environment variables XMODIFIERS and LANG:
+
+ csh/tcsh: setenv XMODIFIERS @im=SCIM ; setenv LANG ja_JP.eucJP
+ sh/bash: export XMODIFIERS='@im=SCIM'; export LANG=ja_JP.eucJP
+
+To start the SCIM input method daemon, use command:
+
+ scim -d
+
+--------------------------------------------------------------------
diff --git a/japanese/scim-anthy/pkg-plist b/japanese/scim-anthy/pkg-plist
new file mode 100644
index 000000000..61bcf165d
--- /dev/null
+++ b/japanese/scim-anthy/pkg-plist
@@ -0,0 +1,32 @@
+lib/scim-1.0/1.4.0/Helper/anthy-imengine-helper.a
+lib/scim-1.0/1.4.0/Helper/anthy-imengine-helper.la
+lib/scim-1.0/1.4.0/Helper/anthy-imengine-helper.so
+lib/scim-1.0/IMEngine/anthy.a
+lib/scim-1.0/IMEngine/anthy.la
+lib/scim-1.0/IMEngine/anthy.so
+lib/scim-1.0/SetupUI/anthy-imengine-setup.a
+lib/scim-1.0/SetupUI/anthy-imengine-setup.la
+lib/scim-1.0/SetupUI/anthy-imengine-setup.so
+share/locale/ja/LC_MESSAGES/scim-anthy.mo
+share/scim/Anthy/style/101kana.sty
+share/scim/Anthy/style/atok.sty
+share/scim/Anthy/style/azik.sty
+share/scim/Anthy/style/canna.sty
+share/scim/Anthy/style/msime.sty
+share/scim/Anthy/style/nicola-a.sty
+share/scim/Anthy/style/nicola-j.sty
+share/scim/Anthy/style/oasys100j.sty
+share/scim/Anthy/style/tron-dvorak.sty
+share/scim/Anthy/style/tron-qwerty-jp.sty
+share/scim/Anthy/style/tsuki-2-203-101.sty
+share/scim/Anthy/style/tsuki-2-203-106.sty
+share/scim/Anthy/style/vje-delta.sty
+share/scim/Anthy/style/wnn.sty
+@dirrm share/scim/Anthy/style
+@dirrm share/scim/Anthy
+share/scim/icons/scim-anthy.png
+share/scim/icons/scim-anthy-dict.png
+share/scim/icons/scim-anthy-swap-colors.png
+@dirrmtry lib/scim-1.0/IMEngine
+@dirrmtry lib/scim-1.0/SetupUI
+@dirrmtry lib/scim-1.0/icons