summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2013-03-13 15:07:38 +0000
committerryoon <ryoon@pkgsrc.org>2013-03-13 15:07:38 +0000
commit86e4aa607422f38dc034f9a8d4c9dabbea0a99fd (patch)
treefbddc1d7edbb640803a1760637b5d59a7222558e /inputmethod
parent06b7760d99a244cfbbcdfe793971190523d84031 (diff)
downloadpkgsrc-86e4aa607422f38dc034f9a8d4c9dabbea0a99fd.tar.gz
Import mozc-elisp-1.6.1187.102 as inputmethod/mozc-elisp.
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 includes Emacs LISP and helper program to use mozc on emacs. This package is based on PR pkg/47573.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/mozc-elisp/DESCR5
-rw-r--r--inputmethod/mozc-elisp/MESSAGE11
-rw-r--r--inputmethod/mozc-elisp/Makefile29
-rw-r--r--inputmethod/mozc-elisp/PLIST4
4 files changed, 49 insertions, 0 deletions
diff --git a/inputmethod/mozc-elisp/DESCR b/inputmethod/mozc-elisp/DESCR
new file mode 100644
index 00000000000..1b306bc1209
--- /dev/null
+++ b/inputmethod/mozc-elisp/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 includes Emacs LISP and helper program to use mozc on emacs.
diff --git a/inputmethod/mozc-elisp/MESSAGE b/inputmethod/mozc-elisp/MESSAGE
new file mode 100644
index 00000000000..55906fb64a9
--- /dev/null
+++ b/inputmethod/mozc-elisp/MESSAGE
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/03/13 15:07:38 ryoon Exp $
+
+To activate mozc on emacs, you will need to add the following lines to
+your .emacs or ${EMACS_LISPPREFIX}/site-start.el:
+
+ (set-language-environment "Japanese")
+ (require 'mozc)
+ (setq default-input-method "japanese-mozc")
+
+===========================================================================
diff --git a/inputmethod/mozc-elisp/Makefile b/inputmethod/mozc-elisp/Makefile
new file mode 100644
index 00000000000..e92676e615d
--- /dev/null
+++ b/inputmethod/mozc-elisp/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2013/03/13 15:07:38 ryoon Exp $
+#
+
+PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME:S/mozc-/mozc-elisp-/}
+CATEGORIES= inputmethod editors
+
+EMACS_MODULES= base leim
+
+.include "../../editors/emacs/modules.mk"
+
+INSTALLATION_DIRS= ${EMACS_LISPPREFIX} bin
+
+do-build:
+ cd ${WRKSRC} && env ${MAKE_ENV} \
+ ${PYTHONBIN} build_mozc.py build -c Release ${_MAKE_JOBS} \
+ unix/emacs/emacs.gyp:mozc_emacs_helper
+ cd ${WRKSRC}/unix/emacs && \
+ ${EMACS_BIN} -q -batch -no-site-file -no-init-file \
+ -f batch-byte-compile mozc.el
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/Release/mozc_emacs_helper \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/unix/emacs/mozc.el \
+ ${DESTDIR}${EMACS_LISPPREFIX}
+ ${INSTALL_DATA} ${WRKSRC}/unix/emacs/mozc.elc \
+ ${DESTDIR}${EMACS_LISPPREFIX}
+
+.include "../../inputmethod/ibus-mozc/Makefile.common"
diff --git a/inputmethod/mozc-elisp/PLIST b/inputmethod/mozc-elisp/PLIST
new file mode 100644
index 00000000000..2752b88ac51
--- /dev/null
+++ b/inputmethod/mozc-elisp/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2013/03/13 15:07:38 ryoon Exp $
+bin/mozc_emacs_helper
+${EMACS_LISPPREFIX}/mozc.el
+${EMACS_LISPPREFIX}/mozc.elc