NetBSD Problem Report #47573

From tsutsui@ceres.dti.ne.jp  Sun Feb 17 07:56:12 2013
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id E16AC63E500
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 17 Feb 2013 07:56:11 +0000 (UTC)
Message-Id: <201302170756.r1H7u7cn004458@mirage.localdomain>
Date: Sun, 17 Feb 2013 16:56:07 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: new package inputmethod/mozc-elisp for mozc on emacs
X-Send-Pr-Version: 3.95

>Number:         47573
>Category:       pkg
>Synopsis:       new package inputmethod/mozc-elisp for mozc on emacs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ryoon
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 17 08:00:00 +0000 2013
>Closed-Date:    Wed Mar 13 15:46:33 +0000 2013
>Last-Modified:  Wed Mar 13 15:46:33 +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

>Release-Note:

>Audit-Trail:
From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47573 CVS commit: pkgsrc/inputmethod/mozc-elisp
Date: Wed, 13 Mar 2013 15:07:39 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Wed Mar 13 15:07:38 UTC 2013

 Added Files:
 	pkgsrc/inputmethod/mozc-elisp: DESCR MESSAGE Makefile PLIST

 Log Message:
 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.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/inputmethod/mozc-elisp/DESCR \
     pkgsrc/inputmethod/mozc-elisp/MESSAGE \
     pkgsrc/inputmethod/mozc-elisp/Makefile \
     pkgsrc/inputmethod/mozc-elisp/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Wed, 13 Mar 2013 15:45:51 +0000
Responsible-Changed-Why:
mine.


State-Changed-From-To: open->closed
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Wed, 13 Mar 2013 15:46:33 +0000
State-Changed-Why:
Added. Thank you.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.