summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-01-20 10:45:57 +0000
committerryoon <ryoon@pkgsrc.org>2014-01-20 10:45:57 +0000
commitfa9dac4d261fde930af44c13a11db24261abb301 (patch)
tree59f8804b3396f0173032a672d92a3c0c0cf8425a /inputmethod
parent2670e98496b80e3e603e8fb153ae5732354c5e4f (diff)
downloadpkgsrc-fa9dac4d261fde930af44c13a11db24261abb301.tar.gz
Import uim-mozc-1.13.1651.102 as inputmethod/uim-mozc.
Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Chromium OS, Windows, Mac and Linux. This open-source project originates from Google Japanese Input. This package provides mozc module for uim inputmethod.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/uim-mozc/DEINSTALL6
-rw-r--r--inputmethod/uim-mozc/DESCR5
-rw-r--r--inputmethod/uim-mozc/INSTALL6
-rw-r--r--inputmethod/uim-mozc/Makefile52
-rw-r--r--inputmethod/uim-mozc/PLIST9
-rw-r--r--inputmethod/uim-mozc/distinfo8
6 files changed, 86 insertions, 0 deletions
diff --git a/inputmethod/uim-mozc/DEINSTALL b/inputmethod/uim-mozc/DEINSTALL
new file mode 100644
index 00000000000..1dae9765cf7
--- /dev/null
+++ b/inputmethod/uim-mozc/DEINSTALL
@@ -0,0 +1,6 @@
+# $NetBSD: DEINSTALL,v 1.1 2014/01/20 10:45:57 ryoon Exp $
+case ${STAGE} in
+POST-INSTALL)
+ ${PREFIX}/bin/uim-module-manager --unregister mozc
+ ;;
+esac
diff --git a/inputmethod/uim-mozc/DESCR b/inputmethod/uim-mozc/DESCR
new file mode 100644
index 00000000000..4a4a7f864df
--- /dev/null
+++ b/inputmethod/uim-mozc/DESCR
@@ -0,0 +1,5 @@
+Mozc is a Japanese Input Method Editor (IME) designed for multi-platform
+such as Chromium OS, Windows, Mac and Linux. This open-source
+project originates from Google Japanese Input.
+
+This package provides mozc module for uim inputmethod.
diff --git a/inputmethod/uim-mozc/INSTALL b/inputmethod/uim-mozc/INSTALL
new file mode 100644
index 00000000000..20597195d1c
--- /dev/null
+++ b/inputmethod/uim-mozc/INSTALL
@@ -0,0 +1,6 @@
+# $NetBSD: INSTALL,v 1.1 2014/01/20 10:45:57 ryoon Exp $
+case ${STAGE} in
+POST-INSTALL)
+ ${PREFIX}/bin/uim-module-manager --register mozc
+ ;;
+esac
diff --git a/inputmethod/uim-mozc/Makefile b/inputmethod/uim-mozc/Makefile
new file mode 100644
index 00000000000..76a3198daac
--- /dev/null
+++ b/inputmethod/uim-mozc/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1 2014/01/20 10:45:57 ryoon Exp $
+
+PKGNAME= uim-${DISTNAME}
+
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} uim-mozc-331.tar.xz
+SITES.uim-mozc-331.tar.xz= ${MASTER_SITE_SOURCEFORGE:=pnsft-aur/}
+
+CONFLICTS+= ibus-mozc<=1.13.1651.102
+
+INSTALLATION_DIRS+= lib/uim/plugin share/uim/pixmaps
+
+DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
+DEPENDS+= mozc-renderer-[0-9]*:../../inputmethod/mozc-renderer
+DEPENDS+= mozc-server-[0-9]*:../../inputmethod/mozc-server
+DEPENDS+= mozc-tool-[0-9]*:../../inputmethod/mozc-tool
+
+SUBST_CLASSES+= mozc_tool
+SUBST_STAGE.mozc_tool= pre-configure
+SUBST_MESSAGE.mozc_tool= Fixing mozc_tool path
+SUBST_FILES.mozc_tool= scm/mozc-custom.scm
+SUBST_SED.mozc_tool= -e 's,/usr/lib/mozc/mozc_tool,${PREFIX}/libexec/mozc_tool,g'
+
+post-extract:
+ mv ${WRKDIR}/uim-mozc-331/uim ${WRKSRC}/unix
+ mv ${WRKDIR}/uim-mozc-331/scm ${WRKSRC}
+
+do-build:
+ cd ${WRKSRC} && env ${MAKE_ENV} \
+ ${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \
+ unix/uim/uim.gyp:uim-mozc \
+ renderer/renderer.gyp:mozc_renderer
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/libuim-mozc.so \
+ ${DESTDIR}${PREFIX}/lib/uim/plugin
+ ${INSTALL_DATA} ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \
+ ${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc.png
+ ${INSTALL_DATA} ${WRKSRC}/data/images/unix/ui-tool.png \
+ ${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc_tool_selector.png
+ ${INSTALL_DATA} ${WRKSRC}/data/images/unix/ui-properties.png \
+ ${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc_tool_config_dialog.png
+ ${INSTALL_DATA} ${WRKSRC}/data/images/unix/ui-dictionary.png \
+ ${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc_tool_dictionary_tool.png
+ ${INSTALL_DATA} ${WRKSRC}/scm/mozc-custom.scm \
+ ${DESTDIR}${PREFIX}/share/uim
+ ${INSTALL_DATA} ${WRKSRC}/scm/mozc-key-custom.scm \
+ ${DESTDIR}${PREFIX}/share/uim
+ ${INSTALL_DATA} ${WRKSRC}/scm/mozc.scm \
+ ${DESTDIR}${PREFIX}/share/uim
+
+.include "../../inputmethod/uim/buildlink3.mk"
+.include "../../inputmethod/mozc-server/Makefile.common"
diff --git a/inputmethod/uim-mozc/PLIST b/inputmethod/uim-mozc/PLIST
new file mode 100644
index 00000000000..007f60c1fef
--- /dev/null
+++ b/inputmethod/uim-mozc/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2014/01/20 10:45:57 ryoon Exp $
+lib/uim/plugin/libuim-mozc.so
+share/uim/mozc-custom.scm
+share/uim/mozc-key-custom.scm
+share/uim/mozc.scm
+share/uim/pixmaps/mozc.png
+share/uim/pixmaps/mozc_tool_config_dialog.png
+share/uim/pixmaps/mozc_tool_dictionary_tool.png
+share/uim/pixmaps/mozc_tool_selector.png
diff --git a/inputmethod/uim-mozc/distinfo b/inputmethod/uim-mozc/distinfo
new file mode 100644
index 00000000000..9c6e5d1416a
--- /dev/null
+++ b/inputmethod/uim-mozc/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2014/01/20 10:45:57 ryoon Exp $
+
+SHA1 (mozc-1.13.1651.102.tar.bz2) = 24680b3d350e5332f2235b9c1342127f6ef0fd63
+RMD160 (mozc-1.13.1651.102.tar.bz2) = 260a23c2f9f3b909aefe63c865f3b87013d2fb53
+Size (mozc-1.13.1651.102.tar.bz2) = 31635636 bytes
+SHA1 (uim-mozc-331.tar.xz) = 760d1deb5964358d1dc064e44d45eec38d94d9ec
+RMD160 (uim-mozc-331.tar.xz) = db4df92b8adc0e6202cf7f61c326b1503e157d9b
+Size (uim-mozc-331.tar.xz) = 30580 bytes