pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/47573: new package inputmethod/mozc-elisp for mozc on emacs
>Number: 47573
>Category: pkg
>Synopsis: new package inputmethod/mozc-elisp for mozc on emacs
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Feb 17 08:00:00 +0000 2013
>Originator: Izumi Tsutsui
>Release: NetBSD 6.0.1 and pkgsrc HEAD
>Organization:
>Environment:
System: NetBSD 6.0.1
Architecture: i386
Machine: i386
>Description:
mozc packages (mozc-server, mozc-tool, and ibus-mozc) have been added,
but mozc.el file and a helper program for emacs in mozc distribution
are not handled by these current packages.
>How-To-Repeat:
Try to use mozc on emacs.
>Fix:
shar file for new inputmethod/mozc-elisp is attached.
This is based on FreeBSD ports and several pkgsrc elisp packages,
and confirmed working on NetBSD/i386 6.0.1 with emacs-23.4nb10.
(but probably needs more confirmation since I'm not a heavy emacs user)
---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# inputmethod/mozc-elisp
# inputmethod/mozc-elisp/DESCR
# inputmethod/mozc-elisp/MESSAGE
# inputmethod/mozc-elisp/Makefile
# inputmethod/mozc-elisp/PLIST
#
echo c - inputmethod/mozc-elisp
mkdir -p inputmethod/mozc-elisp > /dev/null 2>&1
echo x - inputmethod/mozc-elisp/DESCR
sed 's/^X//' >inputmethod/mozc-elisp/DESCR <<
'END-of-inputmethod/mozc-elisp/DESCR'
XMozc is a Japanese Input Method Editor (IME) designed for multi-platform
Xsuch as Chromium OS, Windows, Mac and Linux. This open-source
Xproject originates from Google Japanese Input.
X
XThis package includes Emacs LISP and helper program to use mozc on emacs.
END-of-inputmethod/mozc-elisp/DESCR
echo x - inputmethod/mozc-elisp/MESSAGE
sed 's/^X//' >inputmethod/mozc-elisp/MESSAGE <<
'END-of-inputmethod/mozc-elisp/MESSAGE'
X===========================================================================
X$NetBSD$
X
XTo activate mozc on emacs, you will need to add the following lines to
Xyour .emacs or ${EMACS_LISPPREFIX}/site-start.el:
X
X (set-language-environment "Japanese")
X (require 'mozc)
X (setq default-input-method "japanese-mozc")
X
X===========================================================================
END-of-inputmethod/mozc-elisp/MESSAGE
echo x - inputmethod/mozc-elisp/Makefile
sed 's/^X//' >inputmethod/mozc-elisp/Makefile <<
'END-of-inputmethod/mozc-elisp/Makefile'
X# $NetBSD$
X#
X
XPKGNAME= ${DISTNAME:S/mozc-/mozc-elisp-/}
XCATEGORIES= inputmethod editors
X
XEMACS_MODULES= base leim
X
X.include "../../editors/emacs/modules.mk"
X
Xdo-build:
X cd ${WRKSRC} && env ${MAKE_ENV} \
X ${PYTHONBIN} build_mozc.py build -c Release ${_MAKE_JOBS} \
X unix/emacs/emacs.gyp:mozc_emacs_helper
X cd ${WRKSRC}/unix/emacs && \
X ${EMACS_BIN} -q -batch -no-site-file -no-init-file \
X -f batch-byte-compile mozc.el
X
Xdo-install:
X ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
X ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/Release/mozc_emacs_helper \
X ${DESTDIR}${PREFIX}/bin
X ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}
X ${INSTALL_DATA} ${WRKSRC}/unix/emacs/mozc.el \
X ${DESTDIR}${EMACS_LISPPREFIX}
X ${INSTALL_DATA} ${WRKSRC}/unix/emacs/mozc.elc \
X ${DESTDIR}${EMACS_LISPPREFIX}
X
X.include "../../inputmethod/ibus-mozc/Makefile.common"
END-of-inputmethod/mozc-elisp/Makefile
echo x - inputmethod/mozc-elisp/PLIST
sed 's/^X//' >inputmethod/mozc-elisp/PLIST <<
'END-of-inputmethod/mozc-elisp/PLIST'
X@comment $NetBSD$
Xbin/mozc_emacs_helper
X${EMACS_LISPPREFIX}/mozc.el
X${EMACS_LISPPREFIX}/mozc.elc
END-of-inputmethod/mozc-elisp/PLIST
exit
Home |
Main Index |
Thread Index |
Old Index