From owner-svn-ports-head@FreeBSD.ORG Wed Feb 18 19:16:47 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 020DAEE5; Wed, 18 Feb 2015 19:16:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DF90395D; Wed, 18 Feb 2015 19:16:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1IJGktC050964; Wed, 18 Feb 2015 19:16:46 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1IJGiOs050950; Wed, 18 Feb 2015 19:16:44 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201502181916.t1IJGiOs050950@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Wed, 18 Feb 2015 19:16:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r379309 - in head/japanese/mozc-server: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2015 19:16:47 -0000 Author: hrs Date: Wed Feb 18 19:16:43 2015 New Revision: 379309 URL: https://svnweb.freebsd.org/changeset/ports/379309 QAT: https://qat.redports.org/buildarchive/r379309/ Log: - Fix pathname of mozc_renderer, mozc_tool, and mozc_emacs_helper. - Fix mozc_tool script to accept options regardless --mode= is specified. - Fix leim-list.el to load mozc.elc. Added: head/japanese/mozc-server/files/patch-base_base.gyp (contents, props changed) head/japanese/mozc-server/files/patch-base_system_util.cc (contents, props changed) head/japanese/mozc-server/files/patch-unix_ibus_gen_mozc_xml.py (contents, props changed) head/japanese/mozc-server/files/patch-unix_ibus_ibus.gyp (contents, props changed) Modified: head/japanese/mozc-server/Makefile head/japanese/mozc-server/files/leim-list.el head/japanese/mozc-server/files/mozc.in head/japanese/mozc-server/files/mozc_tool.in head/japanese/mozc-server/files/patch-build_mozc.py head/japanese/mozc-server/files/patch-gyp_common.gypi head/japanese/mozc-server/files/patch-unix_emacs_mozc.el Modified: head/japanese/mozc-server/Makefile ============================================================================== --- head/japanese/mozc-server/Makefile Wed Feb 18 18:52:20 2015 (r379308) +++ head/japanese/mozc-server/Makefile Wed Feb 18 19:16:43 2015 (r379309) @@ -3,6 +3,7 @@ PORTNAME= mozc PORTVERSION= 2.16.2051.102 +PORTREVISION= 1 CATEGORIES= japanese MASTER_SITES= LOCAL/hrs DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -116,6 +117,8 @@ post-configure: ${WRKSRC}/mozcmake ${BUILD_MOZC_CMD} gyp \ --gypdir=${WRKSRC}/third_party/gyp \ --server_dir="${PREFIX}/bin" \ + --tool_dir="${PREFIX}/libexec" \ + --renderer_dir="${PREFIX}/libexec" \ --localbase="${LOCALBASE}" \ --ldflags="${LDFLAGS} -fstack-protector -L${LOCALBASE}/lib" \ --cflags="${CFLAGS:Q}" \ @@ -207,7 +210,7 @@ RUN_DEPENDS+= mozc_server:${PORTSDIR}/ja mozc_tool:${PORTSDIR}/japanese/mozc-tool \ ${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:${PORTSDIR}/devel/py-notify -PLIST_FILES+= bin/mozc_renderer \ +PLIST_FILES+= libexec/mozc_renderer \ libexec/ibus-engine-mozc \ %%DATADIR%%/icons/alpha_full.png \ %%DATADIR%%/icons/alpha_half.png \ @@ -230,7 +233,7 @@ do-build-ibus_mozc: do-install-ibus_mozc: ${INSTALL_PROGRAM} \ ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_renderer \ - ${STAGEDIR}${PREFIX}/bin/mozc_renderer + ${STAGEDIR}${PREFIX}/libexec/mozc_renderer ${INSTALL_PROGRAM} \ ${WRKSRC}/out_linux/${BUILD_MODE}/ibus_mozc \ ${STAGEDIR}${PREFIX}/libexec/ibus-engine-mozc @@ -331,11 +334,16 @@ do-install-fcitx_mozc: CATEGORIES+= elisp RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server -PLIST_FILES+= ${EMACS_VERSION_SITE_LISPDIR}/mozc/mozc.el \ - ${EMACS_VERSION_SITE_LISPDIR}/mozc/mozc.elc \ +PLIST_FILES+= ${EMACS_VERSION_SITE_LISPDIR}/mozc/mozc.elc \ ${EMACS_VERSION_SITE_LISPDIR}/mozc/leim-list.el PLIST_DIRS+= ${EMACS_VERSION_SITE_LISPDIR}/mozc +post-patch-mozc_el: + ${REINPLACE_CMD} "s,%%PREFIX%%,${PREFIX}," \ + ${WRKSRC}/unix/emacs/mozc.el + +post-patch: post-patch-mozc_el + do-build-mozc_el: cd ${WRKSRC}/unix/emacs && \ ${EMACS_CMD} -batch -q -no-site-file -no-init-file \ @@ -344,7 +352,6 @@ do-build-mozc_el: do-install-mozc_el: @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc ${INSTALL_DATA} \ - ${WRKSRC}/unix/emacs/mozc.el \ ${WRKSRC}/unix/emacs/mozc.elc \ ${FILESDIR}/leim-list.el \ ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc/ Modified: head/japanese/mozc-server/files/leim-list.el ============================================================================== --- head/japanese/mozc-server/files/leim-list.el Wed Feb 18 18:52:20 2015 (r379308) +++ head/japanese/mozc-server/files/leim-list.el Wed Feb 18 19:16:43 2015 (r379309) @@ -13,8 +13,8 @@ ;; documentation and/or other materials provided with the distribution. ;; -(autoload 'mozc-mode "mozc.el" "Activate Mozc." t) -(autoload 'mozc-leim-activate "mozc.el" "Activate Mozc." t) +(autoload 'mozc-mode "mozc" "Activate Mozc." t) +(autoload 'mozc-leim-activate "mozc" "Activate Mozc." t) (defcustom mozc-leim-title "[Mozc]" "Mode line string shown when mozc-mode is enabled. Modified: head/japanese/mozc-server/files/mozc.in ============================================================================== --- head/japanese/mozc-server/files/mozc.in Wed Feb 18 18:52:20 2015 (r379308) +++ head/japanese/mozc-server/files/mozc.in Wed Feb 18 19:16:43 2015 (r379309) @@ -19,8 +19,11 @@ cleanup_lock() check_lock() { if [ -r "${MOZCDIR}/.server.lock" ]; then - pid=$(cat "${MOZCDIR}/mozc_server.pid") - printf "mozc_server is running (PID=%s).\n" "$pid" \ + if [ -r "${MOZCDIR}/mozc_server.pid" ]; then + pid=$(cat "${MOZCDIR}/mozc_server.pid") + pid=" (PID=$pid)" + fi + printf "mozc_server is running%s.\n" "$pid" \ > /dev/stderr false fi Modified: head/japanese/mozc-server/files/mozc_tool.in ============================================================================== --- head/japanese/mozc-server/files/mozc_tool.in Wed Feb 18 18:52:20 2015 (r379308) +++ head/japanese/mozc-server/files/mozc_tool.in Wed Feb 18 19:16:43 2015 (r379309) @@ -1,20 +1,17 @@ #!/bin/sh # $FreeBSD$ -case $# in -0) - echo "Specify one of the following keyword in --mode= option:" - cat <