Index: head/japanese/mozc-server/Makefile =================================================================== --- head/japanese/mozc-server/Makefile (revision 391879) +++ head/japanese/mozc-server/Makefile (revision 391880) @@ -1,417 +1,428 @@ # Created by: Daichi GOTO # $FreeBSD$ PORTNAME= mozc -PORTVERSION= 2.16.2051.102 -PORTREVISION= 3 +PORTVERSION= 2.17.2106.102 CATEGORIES= japanese MASTER_SITES= LOCAL/hrs DISTFILES= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= hrs@FreeBSD.org COMMENT?= Mozc Japanese Input Method, Server LICENSE= BSD3CLAUSE -LICENSE_FILE= ${WRKSRC}/third_party/gyp/LICENSE +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ninja:${PORTSDIR}/devel/ninja \ python:${PORTSDIR}/lang/python EXTRACT_DEPENDS=${PYTHON_CMD}:${PYTHON_PORTSDIR} LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf \ libzinnia.so:${PORTSDIR}/japanese/zinnia RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils USES= compiler:c++11-lang pkgconfig iconv:wchar_t gmake \ tar:bzip2 python:build +BUILD_WRKSRC= ${WRKSRC}/src BUILD_MOZC_LIST?= mozc_server .if ${BUILD_MOZC_LIST:Mmozc_server} == "mozc_server" PKGNAMEPREFIX= ja- PKGNAMESUFFIX= -server LICENSE= BSD3CLAUSE NAISTL LICENSE_COMB= multi -LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/third_party/gyp/LICENSE +LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE LICENSE_DISTFILES_BSD3CLAUSE= ${DISTNAME}${EXTRACT_SUFX} LICENSE_NAME_NAISTL= Nara Institute of Science and Technology License LICENSE_PERMS_NAISTL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -LICENSE_FILE_NAISTL= ${WRKSRC}/data/dictionary_oss/README.txt +LICENSE_FILE_NAISTL= ${WRKSRC}/src/data/dictionary_oss/README.txt LICENSE_DISTFILES_NAISTL=${DISTNAME}${EXTRACT_SUFX} .elif ${BUILD_MOZC_LIST:Mmozc_tool} == "mozc_tool" USE_GNOME= glib20 gtk20 USE_QT4= corelib gui qmake_build moc_build rcc_build uic_build .elif ${BUILD_MOZC_LIST:Mibus_mozc} == "ibus_mozc" USE_XORG= xcb USE_GNOME= glib20 gtk20 .elif ${BUILD_MOZC_LIST:Mmozc_el} == "mozc_el" USE_EMACS= yes .elif ${BUILD_MOZC_LIST:Mfcitx_mozc} USES+= gettext-tools .endif # Use GCC only when the stock clang does not have libc++.so. .if exists(/usr/bin/clang) && exists(/usr/lib/libc++.so) _CCTYPE= clang .else USE_GCC= yes _CCTYPE= gcc .endif .include .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" BROKEN= Does not compile: segfault .endif GYP_DEFINES= use_libprotobuf=1 \ channel_dev=0 \ enable_unittest=0 \ compiler_host="${_CCTYPE}" \ compiler_target="${_CCTYPE}" \ zinnia_model_file="${LOCALBASE}/share/tegaki/models/zinnia/handwriting-ja.model" \ ibus_mozc_icon_path="${LOCALBASE}/share/ibus-mozc/icons/product_icon.png" \ ibus_mozc_path="${PREFIX}/libexec/ibus-engine-mozc" BUILD_MODE= Release BUILD_CMD= ${SETENV} ${MAKE_ENV} PATH=/bin:/usr/bin:${PATH} ${MAKE_CMD} BUILD_MOZC_CMD= cd ${BUILD_WRKSRC} && \ - ${SETENV} BUILD_COMMAND="${WRKSRC}/mozcmake" \ - PYTHONPATH=${WRKSRC}/third_party/gyp/pylib/gyp \ + ${SETENV} BUILD_COMMAND="${BUILD_WRKSRC}/mozcmake" \ + PYTHONPATH=${BUILD_WRKSRC}/third_party/gyp/pylib/gyp \ GYP_DEFINES="${GYP_DEFINES}" \ CC_host="${CC}" \ CC_target="${CC}" \ CXX_host="${CXX}" \ CXX_target="${CXX}" \ LD_host="${CXX}" \ AR_host="${AR}" \ ${PYTHON_CMD} build_mozc.py BUILD_MOZC_CMD_BUILD= ${BUILD_MOZC_CMD} build -c ${BUILD_MODE} ${_MAKE_JOBS} -BUILD_GYP_CMD= cd ${WRKSRC}/third_party/gyp && \ +BUILD_GYP_CMD= cd ${BUILD_WRKSRC}/third_party/gyp && \ ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} post-patch: - ${MKDIR} ${WRKSRC}/mozc_build_tools/linux - ${LN} -sf ${LOCALBASE}/bin/protoc ${WRKSRC}/mozc_build_tools/linux/ ${REINPLACE_CMD} 's,-liconv,${ICONV_LIB},g' \ - ${WRKSRC}/gui/qt_libraries.gypi - + ${BUILD_WRKSRC}/gui/qt_libraries.gypi .if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc" ${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \ - ${WRKSRC}/unix/fcitx/gen_fcitx_mozc_i18n.sh + ${BUILD_WRKSRC}/unix/fcitx/gen_fcitx_mozc_i18n.sh ${REINPLACE_CMD} "s,/usr,${LOCALBASE:Q}," \ - ${WRKSRC}/unix/fcitx/mozc.conf + ${BUILD_WRKSRC}/unix/fcitx/mozc.conf .endif .if !${BUILD_MOZC_LIST:Mmozc_el} -${WRKSRC}/mozcmake: +${BUILD_WRKSRC}/mozcmake: ${PRINTF} "%s\n%s\n" "#!/bin/sh" 'exec ${BUILD_CMD} $$@' \ - > ${WRKSRC}/mozcmake - ${CHMOD} +x ${WRKSRC}/mozcmake + > ${BUILD_WRKSRC}/mozcmake + ${CHMOD} +x ${BUILD_WRKSRC}/mozcmake -post-configure: ${WRKSRC}/mozcmake +post-configure: ${BUILD_WRKSRC}/mozcmake ${BUILD_MOZC_CMD} gyp \ - --gypdir=${WRKSRC}/third_party/gyp \ + --gypdir=${BUILD_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}" \ --cflags_cc="${CXXFLAGS:Q}" \ --include_dirs="${LOCALBASE}/include" \ ${GYP_OPTIONS} .endif # mozc_server .if ${BUILD_MOZC_LIST:Mmozc_server} == "mozc_server" || make(makesum) GYP_OPTIONS+= --noqt GYP_DEFINES+= use_libibus=0 \ enable_gtk_renderer=0 MASTER_SITES+= LOCAL/kuriyama:zipcode DISTFILES+= \ ken_all-20130628.lzh:zipcode \ jigyosyo-20130628.lzh:zipcode EXTRACT_DEPENDS+= lha:${PORTSDIR}/archivers/lha PLIST_FILES+= bin/mozc \ bin/mozc_server \ libexec/mozc_emacs_helper SUB_FILES+= mozc post-extract-mozc_server: @for F in jigyosyo-20130628.lzh ken_all-20130628.lzh; do \ - ${LHA_CMD} xfq2w=${WRKSRC}/data/dictionary_oss ${DISTDIR}/$$F; \ + ${LHA_CMD} xfq2w=${BUILD_WRKSRC}/data/dictionary_oss \ + ${DISTDIR}/$$F; \ done - @cd ${WRKSRC}/data/dictionary_oss && \ - ${PYTHON_CMD} ${WRKSRC}/dictionary/gen_zip_code_seed.py \ + @cd ${BUILD_WRKSRC}/data/dictionary_oss && \ + ${PYTHON_CMD} ${BUILD_WRKSRC}/dictionary/gen_zip_code_seed.py \ --zip_code=ken_all.csv --jigyosyo=jigyosyo.csv \ >> dictionary09.txt post-extract: post-extract-mozc_server do-build-mozc_server: ${BUILD_MOZC_CMD_BUILD} server/server.gyp:mozc_server ${BUILD_MOZC_CMD_BUILD} unix/emacs/emacs.gyp:mozc_emacs_helper do-install-mozc_server: ${INSTALL_PROGRAM} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_server \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/mozc_server \ ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_emacs_helper \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/mozc_emacs_helper \ ${STAGEDIR}${PREFIX}/libexec ${INSTALL_SCRIPT} \ ${WRKDIR}/mozc ${STAGEDIR}/${PREFIX}/bin .endif # mozc_tool .if ${BUILD_MOZC_LIST:Mmozc_tool} == "mozc_tool" GYP_DEFINES+= use_libibus=0 \ enable_gtk_renderer=1 RUN_DEPENDS+= ${LOCALBASE}/share/tegaki/models/zinnia/handwriting-ja.model:${PORTSDIR}/japanese/tegaki-zinnia-japanese PLIST_FILES+= libexec/mozc_tool \ bin/mozc_tool \ %%DATADIR%%/icons/product_logo.png \ %%DATADIR%%/icons/update_uptodate.png SUB_FILES+= mozc_tool do-build-mozc_tool: ${BUILD_MOZC_CMD_BUILD} gui/gui.gyp:mozc_tool do-install-mozc_tool: ${INSTALL_PROGRAM} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_tool \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/mozc_tool \ ${STAGEDIR}${PREFIX}/libexec ${INSTALL_SCRIPT} ${WRKDIR}/mozc_tool ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR}/icons ${INSTALL_DATA} \ - ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ + ${BUILD_WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ ${STAGEDIR}${DATADIR}/icons/product_logo.png ${INSTALL_DATA} \ - ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ + ${BUILD_WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ ${STAGEDIR}${DATADIR}/icons/update_uptodate.png .endif # ibus_mozc .if ${BUILD_MOZC_LIST:Mibus_mozc} == "ibus_mozc" GYP_OPTIONS+= --noqt GYP_DEFINES+= use_libibus=1 \ enable_gtk_renderer=1 LIB_DEPENDS+= libibus-1.0.so:${PORTSDIR}/textproc/ibus RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server \ mozc_tool:${PORTSDIR}/japanese/mozc-tool \ ${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:${PORTSDIR}/devel/py-notify PLIST_FILES+= libexec/mozc_renderer \ libexec/ibus-engine-mozc \ %%DATADIR%%/icons/alpha_full.png \ %%DATADIR%%/icons/alpha_half.png \ %%DATADIR%%/icons/dictionary.png \ %%DATADIR%%/icons/direct.png \ %%DATADIR%%/icons/hiragana.png \ %%DATADIR%%/icons/katakana_full.png \ %%DATADIR%%/icons/katakana_half.png \ %%DATADIR%%/icons/product_icon.png \ %%DATADIR%%/icons/properties.png \ %%DATADIR%%/icons/tool.png \ share/ibus/component/mozc.xml PLIST_DIRS+= %%DATADIR%%/icons ${DATADIR_REL} do-build-ibus_mozc: ${BUILD_MOZC_CMD_BUILD} \ unix/ibus/ibus.gyp:ibus_mozc \ renderer/renderer.gyp:mozc_renderer do-install-ibus_mozc: ${INSTALL_PROGRAM} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_renderer \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/mozc_renderer \ ${STAGEDIR}${PREFIX}/libexec/mozc_renderer ${INSTALL_PROGRAM} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/ibus_mozc \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/ibus_mozc \ ${STAGEDIR}${PREFIX}/libexec/ibus-engine-mozc ${MKDIR} ${STAGEDIR}${PREFIX}/share/ibus/component ${INSTALL_DATA} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/gen/unix/ibus/mozc.xml \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/gen/unix/ibus/mozc.xml \ ${STAGEDIR}${PREFIX}/share/ibus/component/mozc.xml @${MKDIR} ${STAGEDIR}${DATADIR}/icons .for F in ui-alpha_full ui-alpha_half ui-dictionary ui-direct \ ui-hiragana ui-katakana_full ui-katakana_half ui-properties ui-tool ${INSTALL_DATA} \ - ${WRKSRC}/data/images/unix/${F}.png \ + ${BUILD_WRKSRC}/data/images/unix/${F}.png \ ${STAGEDIR}${DATADIR}/icons/${F:S/^ui-//}.png .endfor ${INSTALL_DATA} \ - ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ + ${BUILD_WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ ${STAGEDIR}${DATADIR}/icons/product_icon.png .endif # uim_mozc .if ${BUILD_MOZC_LIST:Muim_mozc} == "uim_mozc" || make(makesum) #USE_GITHUB= yes # XXX GH_ACCOUNT= e-kato GH_PROJECT= macuim GH_TAGNAME= v0.6.16.2 DISTFILES+= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}_GH0${EXTRACT_SUFX}:gh EXTRACT_ONLY+= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}_GH0${EXTRACT_SUFX} MASTER_SITES+= https://codeload.github.com/${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/:gh WRKSRC_MU= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:C/^v//} LIB_DEPENDS+= libuim.so:${PORTSDIR}/textproc/uim RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server \ mozc_tool:${PORTSDIR}/japanese/mozc-tool -GYP_OPTIONS+= --noqt -GYP_DEFINES+= use_libibus=0 \ - enable_gtk_renderer=0 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src-unix-uim-key_translator.h \ + ${PATCHDIR}/extra-patch-src-unix-uim-mozc.cc \ + ${PATCHDIR}/extra-patch-src-unix-uim-uim.gyp PLIST_FILES+= lib/uim/plugin/libuim-mozc.so \ %%DATADIR%%/mozc.scm \ %%DATADIR%%/mozc-custom.scm \ %%DATADIR%%/mozc-key-custom.scm \ %%DATADIR%%/pixmaps/mozc.png \ "@exec ${LOCALBASE}/bin/uim-module-manager --register mozc" \ "@unexec ${LOCALBASE}/bin/uim-module-manager --unregister mozc" +GYP_OPTIONS+= --noqt +GYP_DEFINES+= use_libibus=0 \ + enable_gtk_renderer=0 + post-extract-uim_mozc: - ${LN} -s ${WRKSRC_MU}/Mozc/uim ${WRKSRC}/unix + ${MV} ${WRKSRC_MU}/Mozc/uim ${BUILD_WRKSRC}/unix ${REINPLACE_CMD} -e "s,/usr/lib/mozc,${LOCALBASE}/libexec," \ ${WRKSRC_MU}/Mozc/scm/mozc-custom.scm post-extract: post-extract-uim_mozc do-build-uim_mozc: ${BUILD_MOZC_CMD_BUILD} \ unix/uim/uim.gyp:uim-mozc do-install-uim_mozc: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/uim/plugin ${INSTALL_PROGRAM} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/libuim-mozc.so \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/libuim-mozc.so \ ${STAGEDIR}${PREFIX}/lib/uim/plugin ${MKDIR} ${STAGEDIR}${DATADIR} cd ${WRKSRC_MU}/Mozc/scm && \ ${INSTALL_DATA} mozc.scm mozc-custom.scm mozc-key-custom.scm \ ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${DATADIR}/pixmaps ${INSTALL_DATA} \ - ${WRKSRC}/data/images/product_icon_32bpp-128.png \ + ${BUILD_WRKSRC}/data/images/product_icon_32bpp-128.png \ ${STAGEDIR}${DATADIR}/pixmaps/mozc.png .endif # fcitx_mozc .if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc" || make(makesum) PATCH_SITES= http://download.fcitx-im.org/fcitx-mozc/ PATCHFILES= fcitx-mozc-2.16.2037.102.2.patch .endif .if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc" -PATCH_DIST_STRIP=-p2 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-unix-fcitx-eim.cc \ - ${PATCHDIR}/extra-patch-unix-fcitx-mozc_response_parser.cc \ - ${PATCHDIR}/extra-patch-unix-fcitx-surrounding_text_util.cc +PATCH_DIST_STRIP=-p1 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src-unix-fcitx-eim.cc \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-mozc_response_parser.cc \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-surrounding_text_util.cc + +POST_PATCHES= ${PATCHDIR}/extra-patch-src-unix_fcitx_fcitx_mozc.cc \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-fcitx.gyp \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-fcitx_key_event_handler.h \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-fcitx_key_translator.h \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-fcitx_mozc.h \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-mozc_connection.cc \ + ${PATCHDIR}/extra-patch-src-unix-fcitx-mozc_connection.h + GYP_OPTIONS+= --noqt GYP_DEFINES+= use_libibus=0 \ enable_gtk_renderer=0 LIB_DEPENDS+= libfcitx-core.so:${PORTSDIR}/chinese/fcitx RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server \ mozc_tool:${PORTSDIR}/japanese/mozc-tool PLIST_FILES+= lib/fcitx/fcitx-mozc.so \ share/fcitx/addon/fcitx-mozc.conf \ share/fcitx/inputmethod/mozc.conf \ %%DATADIR%%/icon/mozc.png \ %%DATADIR%%/icon/mozc-alpha_full.png \ %%DATADIR%%/icon/mozc-alpha_half.png \ %%DATADIR%%/icon/mozc-direct.png \ %%DATADIR%%/icon/mozc-hiragana.png \ %%DATADIR%%/icon/mozc-katakana_full.png \ %%DATADIR%%/icon/mozc-katakana_half.png \ %%DATADIR%%/icon/mozc-dictionary.png \ %%DATADIR%%/icon/mozc-properties.png \ %%DATADIR%%/icon/mozc-tool.png \ share/locale/ja/LC_MESSAGES/fcitx-mozc.mo \ share/locale/zh_CN/LC_MESSAGES/fcitx-mozc.mo \ share/locale/zh_TW/LC_MESSAGES/fcitx-mozc.mo PLIST_DIRS+= %%DATADIR%%/icon ${DATADIR_REL} post-extract-fcitx_mozc: - ${RM} ${WRKSRC}/unix/fcitx/fcitx.gyp + ${RM} ${BUILD_WRKSRC}/unix/fcitx/fcitx.gyp post-extract: post-extract-fcitx_mozc post-patch-fcitx_mozc: - cd ${PATCH_WRKSRC} && ${PATCH} < ${PATCHDIR}/extra-patch-unix_fcitx_fcitx_mozc.cc + cd ${PATCH_WRKSRC} && ${CAT} ${POST_PATCHES} | ${PATCH} post-patch: post-patch-fcitx_mozc do-build-fcitx_mozc: ${BUILD_MOZC_CMD_BUILD} unix/fcitx/fcitx.gyp:fcitx-mozc do-install-fcitx_mozc: @${MKDIR} \ ${STAGEDIR}${PREFIX}/lib/fcitx \ ${STAGEDIR}${PREFIX}/share/fcitx/addon \ ${STAGEDIR}${PREFIX}/share/fcitx/inputmethod ${INSTALL_LIB} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/fcitx-mozc.so \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/fcitx-mozc.so \ ${STAGEDIR}${PREFIX}/lib/fcitx/fcitx-mozc.so ${INSTALL_DATA} \ - ${WRKSRC}/unix/fcitx/fcitx-mozc.conf \ + ${BUILD_WRKSRC}/unix/fcitx/fcitx-mozc.conf \ ${STAGEDIR}${PREFIX}/share/fcitx/addon/fcitx-mozc.conf ${INSTALL_DATA} \ - ${WRKSRC}/unix/fcitx/mozc.conf \ + ${BUILD_WRKSRC}/unix/fcitx/mozc.conf \ ${STAGEDIR}${PREFIX}/share/fcitx/inputmethod/mozc.conf @${MKDIR} ${STAGEDIR}${DATADIR}/icon .for F in ui-alpha_full ui-alpha_half ui-dictionary ui-direct \ ui-hiragana ui-katakana_full ui-katakana_half ui-properties ui-tool ${INSTALL_DATA} \ - ${WRKSRC}/data/images/unix/${F}.png \ + ${BUILD_WRKSRC}/data/images/unix/${F}.png \ ${STAGEDIR}${DATADIR}/icon/${F:S,^ui-,mozc-,}.png .endfor ${INSTALL_DATA} \ - ${WRKSRC}/data/images/product_icon_32bpp-128.png \ + ${BUILD_WRKSRC}/data/images/product_icon_32bpp-128.png \ ${STAGEDIR}${DATADIR}/icon/mozc.png .for L in ja zh_CN zh_TW ${INSTALL_DATA} \ - ${WRKSRC}/out_linux/${BUILD_MODE}/gen/unix/fcitx/po/${L}.mo \ + ${BUILD_WRKSRC}/out_linux/${BUILD_MODE}/gen/unix/fcitx/po/${L}.mo \ ${STAGEDIR}${PREFIX}/share/locale/${L}/LC_MESSAGES/fcitx-mozc.mo .endfor .endif # mozc_el .if ${BUILD_MOZC_LIST:Mmozc_el} == "mozc_el" CATEGORIES+= elisp RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server 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 + ${BUILD_WRKSRC}/unix/emacs/mozc.el post-patch: post-patch-mozc_el do-build-mozc_el: - cd ${WRKSRC}/unix/emacs && \ + cd ${BUILD_WRKSRC}/unix/emacs && \ ${EMACS_CMD} -batch -q -no-site-file -no-init-file \ -f batch-byte-compile mozc.el do-install-mozc_el: @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc ${INSTALL_DATA} \ - ${WRKSRC}/unix/emacs/mozc.elc \ + ${BUILD_WRKSRC}/unix/emacs/mozc.elc \ ${FILESDIR}/leim-list.el \ ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc/ .endif do-build: ${BUILD_MOZC_LIST:S/^/do-build-/} do-install: ${BUILD_MOZC_LIST:S/^/do-install-/} .include Index: head/japanese/mozc-server/distinfo =================================================================== --- head/japanese/mozc-server/distinfo (revision 391879) +++ head/japanese/mozc-server/distinfo (revision 391880) @@ -1,10 +1,10 @@ -SHA256 (mozc-2.16.2051.102.tar.bz2) = 11877306031afee3bbe39e2208340d27df21c90605c1cf48fe788ffa5cf249aa -SIZE (mozc-2.16.2051.102.tar.bz2) = 36135991 +SHA256 (mozc-2.17.2106.102.tar.bz2) = 00d2a82a8c814a6787bdb1d77bdc5dea652eb16cfbf4ae20fe33a25b285d8f39 +SIZE (mozc-2.17.2106.102.tar.bz2) = 33452163 SHA256 (ken_all-20130628.lzh) = 78630e7f8b396603cde066c4a6d598c9af94bb97f415a68148dd3144dea18871 SIZE (ken_all-20130628.lzh) = 1735995 SHA256 (jigyosyo-20130628.lzh) = d7b796d8643457d883de4a33cb3edf7455f11d778ea74d07b450ea10f3339cf7 SIZE (jigyosyo-20130628.lzh) = 823590 -SHA256 (fcitx-mozc-2.16.2037.102.2.patch) = ff175f3e0301c33f750780765ea264887827d00bc7a59fc8b55ae514ba449a1e -SIZE (fcitx-mozc-2.16.2037.102.2.patch) = 140421 SHA256 (e-kato-macuim-v0.6.16.2_GH0.tar.bz2) = 25fca78d1d76cc5c6a49f3b2f6981791ad8275abb2726334d8d40bd49498194d SIZE (e-kato-macuim-v0.6.16.2_GH0.tar.bz2) = 324551 +SHA256 (fcitx-mozc-2.16.2037.102.2.patch) = ff175f3e0301c33f750780765ea264887827d00bc7a59fc8b55ae514ba449a1e +SIZE (fcitx-mozc-2.16.2037.102.2.patch) = 140421 Index: head/japanese/mozc-server/files/patch-base_mutex.cc =================================================================== --- head/japanese/mozc-server/files/patch-base_mutex.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-base_mutex.cc (nonexistent) @@ -1,11 +0,0 @@ ---- base/mutex.cc.orig 2013-03-29 13:33:43.000000000 +0900 -+++ base/mutex.cc 2013-04-27 15:37:37.000000000 +0900 -@@ -296,7 +296,7 @@ - // PTHREAD_MUTEX_RECURSIVE_NP but Mac OS X 10.5 does not - pthread_mutexattr_t attr; - pthread_mutexattr_init(&attr); --#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_FREEBSD) - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); - #elif defined(OS_LINUX) - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); Property changes on: head/japanese/mozc-server/files/patch-base_mutex.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc =================================================================== --- head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc (nonexistent) @@ -1,11 +0,0 @@ ---- unix/ibus/mozc_engine.cc.orig 2014-08-31 03:35:19.000000000 +0900 -+++ unix/ibus/mozc_engine.cc 2014-08-31 04:04:15.000000000 +0900 -@@ -224,7 +224,7 @@ - } - - const size_t selection_start = min(cursor_pos, anchor_pos); -- const size_t selection_length = abs(info->relative_selected_length); -+ const size_t selection_length = ::abs(info->relative_selected_length); - Util::SubStringPiece(surrounding_text, 0, selection_start) - .CopyToString(&info->preceding_text); - Util::SubStringPiece(surrounding_text, selection_start, selection_length) Property changes on: head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-base_system_util.cc =================================================================== --- head/japanese/mozc-server/files/patch-base_system_util.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-base_system_util.cc (nonexistent) @@ -1,26 +0,0 @@ ---- base/system_util.cc.orig 2015-02-17 17:59:05.000000000 +0900 -+++ base/system_util.cc 2015-02-17 18:01:50.000000000 +0900 -@@ -407,7 +407,11 @@ - if (server_path.empty()) { - return ""; - } -+#ifdef MOZC_RENDERER_DIRECTORY -+ return FileUtil::JoinPath(MOZC_RENDERER_DIRECTORY "/", kMozcRenderer); -+#else - return FileUtil::JoinPath(server_path, kMozcRenderer); -+#endif - } - - string SystemUtil::GetToolPath() { -@@ -416,7 +420,11 @@ - if (server_path.empty()) { - return ""; - } -+#ifdef MOZC_TOOL_DIRECTORY -+ return FileUtil::JoinPath(MOZC_TOOL_DIRECTORY "/", kMozcTool); -+#else - return FileUtil::JoinPath(server_path, kMozcTool); -+#endif - } - - string SystemUtil::GetDocumentDirectory() { Property changes on: head/japanese/mozc-server/files/patch-base_system_util.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-unix_fcitx_fcitx_mozc.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-unix_fcitx_fcitx_mozc.cc (revision 391879) +++ head/japanese/mozc-server/files/extra-patch-unix_fcitx_fcitx_mozc.cc (nonexistent) @@ -1,21 +0,0 @@ ---- unix/fcitx/fcitx_mozc.cc.orig 2015-02-19 10:48:37.000000000 +0900 -+++ unix/fcitx/fcitx_mozc.cc 2015-02-19 10:54:04.000000000 +0900 -@@ -439,6 +439,8 @@ - boolean ToolMenuAction(struct _FcitxUIMenu *menu, int index) - { - string args; -+ size_t pid = 0; -+ - switch(index) { - case 0: - args = "--mode=config_dialog"; -@@ -459,7 +461,8 @@ - args = "--mode=about_dialog"; - break; - } -- mozc::Process::SpawnMozcProcess("mozc_tool", args); -+ -+ mozc::Process::SpawnProcess(mozc::FileUtil::JoinPath(mozc::SystemUtil::GetToolPath(), "mozc_tool"), args, &pid); - return true; - } - Property changes on: head/japanese/mozc-server/files/extra-patch-unix_fcitx_fcitx_mozc.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc (revision 391879) +++ head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc (nonexistent) @@ -1,41 +0,0 @@ ---- unix/fcitx/mozc_response_parser.cc.orig 2014-08-31 07:00:01.000000000 +0900 -+++ unix/fcitx/mozc_response_parser.cc 2014-08-31 07:00:45.000000000 +0900 -@@ -235,11 +235,13 @@ - } - } - -+#if 0 - static boolean FcitxMozcPaging(void* arg, boolean prev) - { - FcitxMozc* mozc = static_cast(arg); - return mozc->paging(prev); - } -+#endif - - void MozcResponseParser::ParseCandidates( - const mozc::commands::Candidates &candidates, FcitxMozc *fcitx_mozc) const { -@@ -286,12 +288,14 @@ - FcitxCandidateWordList* candList = FcitxInputStateGetCandidateList(fcitx_mozc->GetInputState()); - FcitxCandidateWordReset(candList); - FcitxCandidateWordSetPageSize(candList, 9); -+#if 0 - if (candidates.has_direction() && - candidates.direction() == commands::Candidates::HORIZONTAL) { - FcitxCandidateWordSetLayoutHint(candList, CLH_Horizontal); - } else { - FcitxCandidateWordSetLayoutHint(candList, CLH_Vertical); - } -+#endif - - map > usage_map; - if (candidates.has_usages()) { -@@ -395,7 +399,9 @@ - else - FcitxCandidateWordSetChoose(candList, EMPTY_STR_CHOOSE); - FcitxCandidateWordSetFocus(candList, local_index); -+#if 0 - FcitxCandidateWordSetOverridePaging(candList, hasPrev, hasNext, FcitxMozcPaging, fcitx_mozc, NULL); -+#endif - } - - static int GetRawCursorPos(const char * str, int upos) Property changes on: head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-ipc_unix_ipc.cc =================================================================== --- head/japanese/mozc-server/files/patch-ipc_unix_ipc.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-ipc_unix_ipc.cc (nonexistent) @@ -1,89 +0,0 @@ ---- ipc/unix_ipc.cc.orig 2013-03-29 13:33:26.000000000 +0900 -+++ ipc/unix_ipc.cc 2013-04-27 15:23:08.000000000 +0900 -@@ -41,6 +41,9 @@ - #include - #include - #include -+#if defined(OS_MACOSX) || defined(OS_FREEBSD) -+#include -+#endif - #include - #include - -@@ -123,6 +126,29 @@ - bool IsPeerValid(int socket, pid_t *pid) { - *pid = 0; - -+#if defined(OS_MACOSX) || defined(OS_FREEBSD) -+ // If the OS is MAC, we should validate the peer by using LOCAL_PEERCRED. -+ struct xucred peer_cred; -+ socklen_t peer_cred_len = sizeof(struct xucred); -+ if (::getsockopt(socket, 0, LOCAL_PEERCRED, -+ &peer_cred, &peer_cred_len) < 0) { -+ LOG(ERROR) << "cannot get peer credential. NOT a Unix socket?"; -+ return false; -+ } -+ if (peer_cred.cr_version != XUCRED_VERSION) { -+ LOG(WARNING) << "credential version mismatch."; -+ return false; -+ } -+ if (peer_cred.cr_uid != ::geteuid()) { -+ LOG(WARNING) << "uid mismatch." << peer_cred.cr_uid << "!=" << ::geteuid(); -+ return false; -+ } -+ -+ // MacOS doesn't have cr_pid; -+ *pid = 0; -+#endif -+ -+#if defined(OS_LINUX) && !defined(OS_FREEBSD) - // On ARM Linux, we do nothing and just return true since the platform - // sometimes doesn't support the getsockopt(sock, SOL_SOCKET, SO_PEERCRED) - // system call. -@@ -144,6 +170,7 @@ - - *pid = peer_cred.pid; - #endif // __arm__ -+#endif - - return true; - } -@@ -278,7 +305,12 @@ - address.sun_family = AF_UNIX; - ::memcpy(address.sun_path, server_address.data(), server_address_length); - address.sun_path[server_address_length] = '\0'; -+#if defined(OS_MACOSX) || defined(OS_FREEBSD) -+ address.sun_len = SUN_LEN(&address); -+ const size_t sun_len = sizeof(address); -+#else - const size_t sun_len = sizeof(address.sun_family) + server_address_length; -+#endif - pid_t pid = 0; - if (::connect(socket_, - reinterpret_cast(&address), -@@ -398,16 +430,21 @@ - SO_REUSEADDR, - reinterpret_cast(&on), - sizeof(on)); -+#if defined(OS_MACOSX) || defined(OS_FREEBSD) -+ addr.sun_len = SUN_LEN(&addr); -+ const size_t sun_len = sizeof(addr); -+#else - const size_t sun_len = sizeof(addr.sun_family) + server_address_.size(); -- if (!IsAbstractSocket(server_address_)) { -- // Linux does not use files for IPC. -- ::chmod(server_address_.c_str(), 0600); -- } -+#endif - if (::bind(socket_, reinterpret_cast(&addr), sun_len) != 0) { - // The UNIX domain socket file (server_address_) already exists? - LOG(FATAL) << "bind() failed: " << strerror(errno); - return; - } -+ if (!IsAbstractSocket(server_address_)) { -+ // Linux does not use files for IPC. -+ ::chmod(server_address_.c_str(), 0600); -+ } - - if (::listen(socket_, num_connections) < 0) { - LOG(FATAL) << "listen() failed: " << strerror(errno); Property changes on: head/japanese/mozc-server/files/patch-ipc_unix_ipc.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-base_base.gyp =================================================================== --- head/japanese/mozc-server/files/patch-base_base.gyp (revision 391879) +++ head/japanese/mozc-server/files/patch-base_base.gyp (nonexistent) @@ -1,19 +0,0 @@ ---- base/base.gyp.orig 2015-02-17 18:02:46.000000000 +0900 -+++ base/base.gyp 2015-02-17 18:03:44.000000000 +0900 -@@ -154,6 +154,16 @@ - 'MOZC_SERVER_DIRECTORY="<(server_dir)"', - ], - }], -+ ['target_platform=="Linux" and tool_dir!=""', { -+ 'defines': [ -+ 'MOZC_TOOL_DIRECTORY="<(tool_dir)"', -+ ], -+ }], -+ ['target_platform=="Linux" and renderer_dir!=""', { -+ 'defines': [ -+ 'MOZC_RENDERER_DIRECTORY="<(renderer_dir)"', -+ ], -+ }], - ['target_platform=="Linux" and document_dir!=""', { - 'defines': [ - 'MOZC_DOCUMENT_DIRECTORY="<(document_dir)"', Property changes on: head/japanese/mozc-server/files/patch-base_base.gyp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-ipc_ipc_path_manager.cc =================================================================== --- head/japanese/mozc-server/files/patch-ipc_ipc_path_manager.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-ipc_ipc_path_manager.cc (nonexistent) @@ -1,11 +0,0 @@ ---- ipc/ipc_path_manager.cc.orig 2013-03-29 13:33:26.000000000 +0900 -+++ ipc/ipc_path_manager.cc 2013-04-27 15:21:52.000000000 +0900 -@@ -276,7 +276,7 @@ - *ipc_name = kIPCPrefix; - #endif // OS_WIN - --#ifdef OS_LINUX -+#if defined(OS_LINUX) && !defined(OS_FREEBSD) - // On Linux, use abstract namespace which is independent of the file system. - (*ipc_name)[0] = '\0'; - #endif Property changes on: head/japanese/mozc-server/files/patch-ipc_ipc_path_manager.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-unix_ibus_ibus.gyp =================================================================== --- head/japanese/mozc-server/files/patch-unix_ibus_ibus.gyp (revision 391879) +++ head/japanese/mozc-server/files/patch-unix_ibus_ibus.gyp (nonexistent) @@ -1,11 +0,0 @@ ---- unix/ibus/ibus.gyp.orig 2015-02-17 18:04:40.000000000 +0900 -+++ unix/ibus/ibus.gyp 2015-02-17 18:04:58.000000000 +0900 -@@ -83,6 +83,8 @@ - './gen_mozc_xml.py', - '--branding=Mozc', - '--server_dir=<(server_dir)', -+ '--renderer_dir=<(renderer_dir)', -+ '--tool_dir=<(tool_dir)', - '--pkg_config_command=<(pkg_config_command)', - '--ibus_mozc_path=<(ibus_mozc_path)', - '--ibus_mozc_icon_path=<(ibus_mozc_icon_path)', Property changes on: head/japanese/mozc-server/files/patch-unix_ibus_ibus.gyp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-gui_about_dialog_about_dialog.cc =================================================================== --- head/japanese/mozc-server/files/patch-gui_about_dialog_about_dialog.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-gui_about_dialog_about_dialog.cc (nonexistent) @@ -1,14 +0,0 @@ ---- gui/about_dialog/about_dialog.cc.orig 2013-03-29 13:33:58.000000000 +0900 -+++ gui/about_dialog/about_dialog.cc 2013-04-27 15:16:49.000000000 +0900 -@@ -121,7 +121,11 @@ - SetLabelText(label_terms); - SetLabelText(label_credits); - -+#ifdef OS_FREEBSD -+ product_image_.reset(new QImage(LOCALBASE "/share/mozc-tool/icons/product_logo.png")); -+#else - product_image_.reset(new QImage(":/product_logo.png")); -+#endif - } - - void AboutDialog::paintEvent(QPaintEvent *event) { Property changes on: head/japanese/mozc-server/files/patch-gui_about_dialog_about_dialog.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_generator_make.py =================================================================== --- head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_generator_make.py (revision 391879) +++ head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_generator_make.py (nonexistent) @@ -1,31 +0,0 @@ ---- third_party/gyp/pylib/gyp/generator/make.py.orig 2013-02-26 11:59:54.000000000 +0900 -+++ third_party/gyp/pylib/gyp/generator/make.py 2013-05-03 21:08:15.000000000 +0900 -@@ -259,7 +259,7 @@ - # export LINK=g++ - # - # This will allow make to invoke N linker processes as specified in -jN. --LINK ?= %(flock)s $(builddir)/linker.lock $(CXX.target) -+LINK ?= $(CXX.target) - - CC.target ?= %(CC.target)s - CFLAGS.target ?= $(CFLAGS) -@@ -1956,6 +1956,9 @@ - srcdir_prefix = '$(srcdir)/' - - flock_command= 'flock' -+ if os.uname()[0] == 'FreeBSD': -+ flock_command= 'lockf' -+ - header_params = { - 'default_target': default_target, - 'builddir': builddir_name, -@@ -2003,7 +2006,8 @@ - build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0]) - make_global_settings_array = data[build_file].get('make_global_settings', []) - wrappers = {} -- wrappers['LINK'] = '%s $(builddir)/linker.lock' % flock_command -+ # Disable flock for linking. -+ # wrappers['LINK'] = '%s $(builddir)/linker.lock' % flock_command - for key, value in make_global_settings_array: - if key.endswith('_wrapper'): - wrappers[key[:-len('_wrapper')]] = '$(abspath %s)' % value Property changes on: head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_generator_make.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-unix_emacs_mozc.el =================================================================== --- head/japanese/mozc-server/files/patch-unix_emacs_mozc.el (revision 391879) +++ head/japanese/mozc-server/files/patch-unix_emacs_mozc.el (nonexistent) @@ -1,43 +0,0 @@ ---- unix/emacs/mozc.el.orig 2015-02-15 04:18:31.000000000 +0900 -+++ unix/emacs/mozc.el 2015-02-19 04:01:46.000000000 +0900 -@@ -1538,7 +1538,7 @@ - - ;;;; Communication with Mozc server through the helper process - --(defvar mozc-helper-program-name "mozc_emacs_helper" -+(defvar mozc-helper-program-name "%%PREFIX%%/libexec/mozc_emacs_helper" - "Helper program's name or path to the helper program. - The helper program helps Emacs communicate with Mozc server, - which doesn't understand S-expression.") -@@ -1973,12 +1973,12 @@ - "Deactivate function `mozc-mode' via LEIM." - (mozc-mode nil)) - --(defcustom mozc-leim-title "[Mozc]" -- "Mode line string shown when function `mozc-mode' is enabled. --This indicator is not shown when you don't use LEIM." -- :type '(choice (const :tag "No indicator" nil) -- (string :tag "Show an indicator")) -- :group 'mozc) -+;;(defcustom mozc-leim-title "[Mozc]" -+;; "Mode line string shown when function `mozc-mode' is enabled. -+;;This indicator is not shown when you don't use LEIM." -+;; :type '(choice (const :tag "No indicator" nil) -+;; (string :tag "Show an indicator")) -+;; :group 'mozc) - - (defun mozc-leim-register-input-method () - "Register function `mozc-mode' as an input method of LEIM. -@@ -1994,10 +1994,10 @@ - ;; Register mozc-mode as an input method after the init file has been read - ;; so the user has a chance to specify `mozc-leim-title' in the init file - ;; after loading this file. --(add-hook 'emacs-startup-hook #'mozc-leim-register-input-method) -+;;(add-hook 'emacs-startup-hook #'mozc-leim-register-input-method) - ;; In the case that `emacs-startup-hook' has already been run, especially - ;; when the user loads this file interactively, register immediately. --(mozc-leim-register-input-method) -+;;(mozc-leim-register-input-method) - - - Property changes on: head/japanese/mozc-server/files/patch-unix_emacs_mozc.el ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-build_tools_util.py =================================================================== --- head/japanese/mozc-server/files/patch-build_tools_util.py (revision 391879) +++ head/japanese/mozc-server/files/patch-build_tools_util.py (nonexistent) @@ -1,11 +0,0 @@ ---- build_tools/util.py.orig 2013-04-21 03:48:52.147271754 +0900 -+++ build_tools/util.py 2013-04-21 04:07:17.415269142 +0900 -@@ -54,7 +54,7 @@ - - def IsLinux(): - """Returns true if the platform is Linux.""" -- return os.name == 'posix' and os.uname()[0] == 'Linux' -+ return os.name == 'posix' and ( os.uname()[0] == 'Linux' or os.uname()[0] == 'FreeBSD' ) - - - def GetNumberOfProcessors(): Property changes on: head/japanese/mozc-server/files/patch-build_tools_util.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-base_logging.cc =================================================================== --- head/japanese/mozc-server/files/patch-base_logging.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-base_logging.cc (nonexistent) @@ -1,11 +0,0 @@ ---- base/logging.cc.orig 2013-07-17 11:38:04.000000000 +0900 -+++ base/logging.cc 2013-07-19 22:24:20.000000000 +0900 -@@ -111,7 +111,7 @@ - #if defined(__native_client__) - "%p", - #elif defined(OS_LINUX) -- "%lu", -+ "%p", - #elif defined(OS_MACOSX) && defined(__LP64__) - "%llu", - #else // OS_WIN or OS_MACOSX(32bit) Property changes on: head/japanese/mozc-server/files/patch-base_logging.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-third_party_gyp_gyp =================================================================== --- head/japanese/mozc-server/files/patch-third_party_gyp_gyp (revision 391879) +++ head/japanese/mozc-server/files/patch-third_party_gyp_gyp (nonexistent) @@ -1,8 +0,0 @@ ---- third_party/gyp/gyp.orig 2014-08-31 04:28:46.000000000 +0900 -+++ third_party/gyp/gyp 2014-08-31 04:28:50.000000000 +0900 -@@ -1,4 +1,4 @@ --#!/bin/bash -+#!/bin/sh - # Copyright 2013 The Chromium Authors. All rights reserved. - # Use of this source code is governed by a BSD-style license that can be - # found in the LICENSE file. Property changes on: head/japanese/mozc-server/files/patch-third_party_gyp_gyp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-gui-qt_libraries.gypi =================================================================== --- head/japanese/mozc-server/files/patch-gui-qt_libraries.gypi (revision 391879) +++ head/japanese/mozc-server/files/patch-gui-qt_libraries.gypi (nonexistent) @@ -1,10 +0,0 @@ ---- gui/qt_libraries.gypi.orig 2013-07-17 11:38:03.000000000 +0900 -+++ gui/qt_libraries.gypi 2013-08-18 15:57:44.000000000 +0900 -@@ -105,6 +105,7 @@ - }, { - 'libraries': [ - ' part of mozc.xml for IBus 1.5 or later. - IBUS_1_5_ENGINE_COMMON_PROPS = { - 'description': '%(product_name)s (Japanese Input Method)', -- 'language': 'ja', -+ 'language': 'jpn', - 'icon': '%(ibus_mozc_icon_path)s', - 'rank': '80', - 'symbol': 'あ', -@@ -91,7 +91,7 @@ - # unix/ibus/mozc_engine.cc. - 'name': ['mozc-jp'], - 'longname': ['%(product_name)s'], -- 'layout': ['default'], -+ 'layout': ['jp'], - }, - } - -@@ -129,6 +129,7 @@ - engines: A dictionary from a property name to a list of property values of - engines. For example, {'name': ['mozc-jp', 'mozc', 'mozc-dv']}. - """ -+ print '' - print '' - for key in component: - OutputXmlElement(param_dict, key, component[key]) -@@ -203,13 +204,19 @@ - parser.add_option('--server_dir', dest='server_dir', default='', - help='The absolute directory path to be installed the ' - 'server executable.') -+ parser.add_option('--renderer_dir', dest='renderer_dir', default='', -+ help='The absolute directory path to be installed the ' -+ 'renderer executable.') -+ parser.add_option('--tool_dir', dest='tool_dir', default='', -+ help='The absolute directory path to be installed the ' -+ 'tool executable.') - parser.add_option('--pkg_config_command', dest='pkg_config_command', - default='pkg-config', - help='The path to pkg-config command.') - (options, unused_args) = parser.parse_args() - - setup_arg = [] -- setup_arg.append(os.path.join(options.server_dir, 'mozc_tool')) -+ setup_arg.append(os.path.join(options.tool_dir, 'mozc_tool')) - setup_arg.append('--mode=config_dialog') - if IsIBus15OrGreater(options): - # A tentative workaround against IBus 1.5 Property changes on: head/japanese/mozc-server/files/patch-unix_ibus_gen_mozc_xml.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc (revision 391879) +++ head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc (nonexistent) @@ -1,12 +0,0 @@ ---- unix/fcitx/eim.cc.orig 2014-08-31 06:48:00.000000000 +0900 -+++ unix/fcitx/eim.cc 2014-08-31 06:48:11.000000000 +0900 -@@ -176,7 +176,9 @@ - // clear candidate table - FcitxCandidateWordReset(candList); - FcitxCandidateWordSetPageSize(candList, 9); -+#if 0 - FcitxCandidateWordSetLayoutHint(candList, CLH_Vertical); -+#endif - FcitxCandidateWordSetChoose(candList, "\0\0\0\0\0\0\0\0\0\0"); - FcitxMessagesAddMessageAtLast(preedit, MSG_TIPS, "%s [%s]", usage.first.c_str(), _("Press Escape to go back")); - Property changes on: head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-base_process.cc =================================================================== --- head/japanese/mozc-server/files/patch-base_process.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-base_process.cc (nonexistent) @@ -1,11 +0,0 @@ ---- base/process.cc.orig 2013-03-29 13:33:43.000000000 +0900 -+++ base/process.cc 2013-04-24 00:17:03.000000000 +0900 -@@ -122,7 +122,7 @@ - #endif - - #ifdef OS_LINUX -- static const char kBrowserCommand[] = "/usr/bin/xdg-open"; -+ static const char kBrowserCommand[] = LOCALBASE "/bin/xdg-open"; - // xdg-open which uses kfmclient or gnome-open internally works both on KDE - // and GNOME environments. - return SpawnProcess(kBrowserCommand, url); Property changes on: head/japanese/mozc-server/files/patch-base_process.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_common.py =================================================================== --- head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_common.py (revision 391879) +++ head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_common.py (nonexistent) @@ -1,14 +0,0 @@ ---- third_party/gyp/pylib/gyp/common.py.orig 2013-04-21 03:48:44.556270889 +0900 -+++ third_party/gyp/pylib/gyp/common.py 2013-04-21 04:16:32.525269583 +0900 -@@ -382,6 +382,11 @@ - 'cygwin': 'win', - 'win32': 'win', - 'darwin': 'mac', -+ 'freebsd7': 'linux', -+ 'freebsd8': 'linux', -+ 'freebsd9': 'linux', -+ 'freebsd10': 'linux', -+ 'freebsd11': 'linux' - } - - if 'flavor' in params: Property changes on: head/japanese/mozc-server/files/patch-third_party_gyp_pylib_gyp_common.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-server_mozc_server.cc =================================================================== --- head/japanese/mozc-server/files/patch-server_mozc_server.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-server_mozc_server.cc (nonexistent) @@ -1,49 +0,0 @@ ---- server/mozc_server.cc.orig 2013-03-29 13:33:26.000000000 +0900 -+++ server/mozc_server.cc 2013-04-27 15:18:29.000000000 +0900 -@@ -32,6 +32,9 @@ - #ifdef OS_WIN - #include - #endif -+#ifdef OS_FREEBSD -+#include -+#endif - - #include - #include -@@ -51,6 +54,23 @@ - mozc::SessionServer *g_session_server = NULL; - } - -+#ifdef OS_FREEBSD -+static void sig_func(int num) -+{ -+ VLOG(1) << "signal " << num << " recieved."; -+ switch (num) { -+ case SIGINT: -+ case SIGHUP: -+ case SIGTERM: -+ if (g_session_server) -+ g_session_server->Terminate(); -+ break; -+ default: -+ break; -+ } -+} -+#endif -+ - namespace mozc { - namespace { - -@@ -132,6 +152,12 @@ - return -1; - } - -+#ifdef OS_FREEBSD -+ ::signal(SIGINT, sig_func); -+ ::signal(SIGHUP, sig_func); -+ ::signal(SIGTERM, sig_func); -+#endif -+ - #if defined(OS_WIN) - // On Windows, ShutdownSessionCallback is not called intentionally in order - // to avoid crashes oritinates from it. See b/2696087. Property changes on: head/japanese/mozc-server/files/patch-server_mozc_server.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-gyp_common.gypi =================================================================== --- head/japanese/mozc-server/files/patch-gyp_common.gypi (revision 391879) +++ head/japanese/mozc-server/files/patch-gyp_common.gypi (nonexistent) @@ -1,105 +0,0 @@ ---- gyp/common.gypi.orig 2015-02-15 04:18:51.000000000 +0900 -+++ gyp/common.gypi 2015-02-17 18:08:07.000000000 +0900 -@@ -161,9 +161,9 @@ - ['target_platform=="Linux"', { - # enable_gtk_renderer represents if mozc_renderer is supported on Linux - # or not. -- 'compiler_target': 'clang', -+ 'compiler_target': '<(compiler_target)', - 'compiler_target_version_int': 305, # Clang 3.5 or higher -- 'compiler_host': 'clang', -+ 'compiler_host': '<(compiler_host)', - 'compiler_host_version_int': 305, # Clang 3.5 or higher - 'enable_gtk_renderer%': 1, - }, { # else -@@ -208,6 +208,14 @@ - # installed. This option is only for Linux. - 'server_dir%': '/usr/lib/mozc', - -+ # renderer_dir represents the directory where mozc_renderer is -+ # installed. This option is only for Linux. -+ 'renderer_dir%': '/usr/lib/mozc', -+ -+ # tool_dir represents the directory where mozc_tool is -+ # installed. This option is only for Linux. -+ 'tool_dir%': '/usr/lib/mozc', -+ - # Represents the directory where the source code of protobuf is - # extracted. This value is ignored when 'use_libprotobuf' is 1. - 'protobuf_root': '<(third_party_dir)/protobuf', -@@ -621,17 +629,20 @@ - ['compiler_target=="clang"', { - 'cflags': [ - '-Wtype-limits', -+ '<@(cflags)', - ], - 'cflags_cc': [ - '-Wno-covered-switch-default', - '-Wno-unnamed-type-template-args', - '-Wno-c++11-narrowing', -- '-std=gnu++0x', -+ '-std=c++11', -+ '<@(cflags_cc)', - ], - }], -- ['compiler_target=="clang" or compiler_target=="gcc"', { -+ ['compiler_host=="gcc"', { - 'cflags_cc': [ -- '-std=gnu++0x', -+ '-std=gnu++11', -+ '<@(cflags_cc)', - ], - }], - ], -@@ -641,17 +652,20 @@ - ['compiler_host=="clang"', { - 'cflags': [ - '-Wtype-limits', -+ '<@(cflags)', - ], - 'cflags_cc': [ - '-Wno-covered-switch-default', - '-Wno-unnamed-type-template-args', - '-Wno-c++11-narrowing', -- '-std=gnu++0x', -+ '-std=c++11', -+ '<@(cflags_cc)', - ], - }], -- ['compiler_host=="clang" or compiler_host=="gcc"', { -+ ['compiler_host=="gcc"', { - 'cflags_cc': [ -- '-std=gnu++0x', -+ '-std=gnu++11', -+ '<@(cflags_cc)', - ], - }], - ], -@@ -744,16 +758,27 @@ - ['OS=="linux"', { - 'defines': [ - 'OS_LINUX', -+ 'OS_FREEBSD', -+ 'LOCALBASE="<@(localbase)"', - ], - 'cflags': [ - '<@(warning_cflags)', - '-fPIC', - '-fno-exceptions', -+ '<@(cflags)', - ], - 'cflags_cc': [ - # We use deprecated and instead of upcoming - # and . - '-Wno-deprecated', -+ '<@(cflags_cc)', -+ ], -+ 'include_dirs': [ -+ '<@(include_dirs)' -+ ], -+ 'ldflags': [ -+ '<@(ldflags)', -+ '-fstack-protector', - ], - 'conditions': [ - ['target_platform!="NaCl"', { Property changes on: head/japanese/mozc-server/files/patch-gyp_common.gypi ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-build_mozc.py =================================================================== --- head/japanese/mozc-server/files/patch-build_mozc.py (revision 391879) +++ head/japanese/mozc-server/files/patch-build_mozc.py (nonexistent) @@ -1,71 +0,0 @@ ---- build_mozc.py.orig 2015-02-15 04:18:52.000000000 +0900 -+++ build_mozc.py 2015-02-19 03:40:47.000000000 +0900 -@@ -357,6 +357,11 @@ - parser.add_option('--version_file', dest='version_file', - help='use the specified version template file', - default='mozc_version_template.txt') -+ parser.add_option('--localbase', dest='localbase') -+ parser.add_option('--ldflags', dest='ldflags') -+ parser.add_option('--cflags', dest='cflags') -+ parser.add_option('--cflags_cc', dest='cflags_cc') -+ parser.add_option('--include_dirs', dest='include_dirs') - AddTargetPlatformOption(parser) - - # Mac and Linux -@@ -377,6 +382,14 @@ - default='', - help='A path to the directory where the server executable' - 'is installed. This option is used only on Linux.') -+ parser.add_option('--renderer_dir', dest='renderer_dir', -+ default='', -+ help='A path to the directory where the renderer executable' -+ 'is installed. This option is used only on Linux.') -+ parser.add_option('--tool_dir', dest='tool_dir', -+ default='', -+ help='A path to the directory where the tool executable' -+ 'is installed. This option is used only on Linux.') - - # Android - parser.add_option('--android_arch', dest='android_arch', -@@ -548,7 +561,7 @@ - parser = optparse.OptionParser(usage='Usage: %prog build [options]') - AddCommonOptions(parser) - if IsLinux(): -- default_build_concurrency = GetNumberOfProcessors() * 2 -+ default_build_concurrency = 1; - parser.add_option('--jobs', '-j', dest='jobs', - default=('%d' % default_build_concurrency), - metavar='N', help='run build jobs in parallel') -@@ -707,6 +720,17 @@ - logging.info('Building GYP command line...') - gyp_options = ['--depth=.', '--include=%s/gyp/common.gypi' % SRC_DIR] - -+ localbase = options.localbase or '/usr' -+ gyp_options.extend(['-D', 'localbase=%s' % localbase]) -+ -+ ldflags = options.ldflags or '' -+ gyp_options.extend(['-D', 'ldflags=%s' % ldflags]) -+ cflags = options.cflags or '' -+ gyp_options.extend(['-D', 'cflags=%s' % cflags]) -+ cflags_cc = options.cflags_cc or '' -+ gyp_options.extend(['-D', 'cflags_cc=%s' % cflags_cc]) -+ include_dirs = options.include_dirs or '' -+ gyp_options.extend(['-D', 'include_dirs=%s' % include_dirs]) - - mozc_root = os.path.abspath(GetTopLevelSourceDirectoryName()) - gyp_options.extend(['-D', 'abs_depth=%s' % mozc_root]) -@@ -936,6 +960,14 @@ - if options.server_dir: - gyp_options.extend([ - '-D', 'server_dir=%s' % os.path.abspath(options.server_dir)]) -+ if options.tool_dir: -+ gyp_options.extend([ -+ '-D', 'tool_dir=%s' % os.path.abspath(options.tool_dir)]) -+ if options.renderer_dir: -+ gyp_options.extend([ -+ '-D', 'renderer_dir=%s' % os.path.abspath(options.renderer_dir)]) -+ -+ - - # TODO(yukawa): Use ninja on OSX. - if generator == 'ninja': Property changes on: head/japanese/mozc-server/files/patch-build_mozc.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc (revision 391879) +++ head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc (nonexistent) @@ -1,28 +0,0 @@ ---- unix/fcitx/surrounding_text_util.cc.orig 2014-08-31 07:02:14.000000000 +0900 -+++ unix/fcitx/surrounding_text_util.cc 2014-08-31 07:03:49.000000000 +0900 -@@ -32,7 +32,9 @@ - #include - #include - #include -+#if 0 - #include -+#endif - - #include "base/port.h" - #include "base/logging.h" -@@ -207,6 +209,7 @@ - const string surrounding_text(str); - free(str); - -+#if 0 - if (cursor_pos == anchor_pos) { - const char* primary = NULL; - -@@ -220,6 +223,7 @@ - } - } - } -+#endif - - if (!SurroundingTextUtil::GetSafeDelta(cursor_pos, anchor_pos, - &info->relative_selected_length)) { Property changes on: head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-unix_ibus_path_util.cc =================================================================== --- head/japanese/mozc-server/files/patch-unix_ibus_path_util.cc (revision 391879) +++ head/japanese/mozc-server/files/patch-unix_ibus_path_util.cc (nonexistent) @@ -1,11 +0,0 @@ ---- unix/ibus/path_util.cc.orig 2013-03-29 13:33:43.000000000 +0900 -+++ unix/ibus/path_util.cc 2013-04-27 15:42:28.000000000 +0900 -@@ -30,7 +30,7 @@ - #include "unix/ibus/path_util.h" - - namespace { --const char kInstalledDirectory[] = "/usr/share/ibus-mozc"; -+const char kInstalledDirectory[] = LOCALBASE "/share/ibus-mozc/icons"; - } - - namespace mozc { Property changes on: head/japanese/mozc-server/files/patch-unix_ibus_path_util.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-eim.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-eim.cc (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-eim.cc (revision 391880) @@ -0,0 +1,12 @@ +--- src/unix/fcitx/eim.cc.orig 2014-08-31 06:48:00.000000000 +0900 ++++ src/unix/fcitx/eim.cc 2014-08-31 06:48:11.000000000 +0900 +@@ -176,7 +176,9 @@ + // clear candidate table + FcitxCandidateWordReset(candList); + FcitxCandidateWordSetPageSize(candList, 9); ++#if 0 + FcitxCandidateWordSetLayoutHint(candList, CLH_Vertical); ++#endif + FcitxCandidateWordSetChoose(candList, "\0\0\0\0\0\0\0\0\0\0"); + FcitxMessagesAddMessageAtLast(preedit, MSG_TIPS, "%s [%s]", usage.first.c_str(), _("Press Escape to go back")); + Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-eim.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx.gyp =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx.gyp (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx.gyp (revision 391880) @@ -0,0 +1,10 @@ +--- src/unix/fcitx/fcitx.gyp.orig 2015-07-13 04:27:48.760816000 +0900 ++++ src/unix/fcitx/fcitx.gyp 2015-07-13 04:30:04.604724000 +0900 +@@ -44,7 +44,6 @@ + '../../client/client.gyp:client', + '../../ipc/ipc.gyp:ipc', + '../../session/session_base.gyp:ime_switch_util', +- '../../session/session_base.gyp:session_protocol', + ], + 'fcitx_defines': [ + 'LOCALEDIR=" + + #include "base/port.h" +-#include "config/config.pb.h" +-#include "session/commands.pb.h" ++#include "protocol/config.pb.h" ++#include "protocol/commands.pb.h" + #include "unix/fcitx/fcitx_key_translator.h" + + namespace mozc { Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_key_event_handler.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_key_translator.h =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_key_translator.h (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_key_translator.h (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/fcitx/fcitx_key_translator.h.bak 2015-07-13 04:37:03.714894000 +0900 ++++ src/unix/fcitx/fcitx_key_translator.h 2015-07-13 04:37:03.756571000 +0900 +@@ -38,7 +38,7 @@ + #include + + #include "base/port.h" +-#include "session/commands.pb.h" ++#include "protocol/commands.pb.h" + #include + + namespace mozc { Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_key_translator.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_mozc.h =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_mozc.h (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_mozc.h (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/fcitx/fcitx_mozc.h.bak 2015-07-13 04:37:03.716155000 +0900 ++++ src/unix/fcitx/fcitx_mozc.h 2015-07-13 04:37:03.758916000 +0900 +@@ -39,7 +39,7 @@ + + #include "base/port.h" + #include "base/run_level.h" +-#include "session/commands.pb.h" ++#include "protocol/commands.pb.h" + #include "client/client_interface.h" + #include "mozc_connection.h" + Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-fcitx_mozc.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.cc (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.cc (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/fcitx/mozc_connection.cc.bak 2015-07-13 04:37:03.716883000 +0900 ++++ src/unix/fcitx/mozc_connection.cc 2015-07-13 04:37:03.789664000 +0900 +@@ -36,7 +36,7 @@ + #include "base/util.h" + #include "client/client.h" + #include "ipc/ipc.h" +-#include "session/commands.pb.h" ++#include "protocol/commands.pb.h" + #include "session/ime_switch_util.h" + #include "unix/fcitx/fcitx_key_event_handler.h" + #include "unix/fcitx/surrounding_text_util.h" Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.h =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.h (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.h (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/fcitx/mozc_connection.h.bak 2015-07-13 04:37:03.717225000 +0900 ++++ src/unix/fcitx/mozc_connection.h 2015-07-13 04:37:03.761331000 +0900 +@@ -38,7 +38,7 @@ + #include + + #include "base/port.h" +-#include "session/commands.pb.h" ++#include "protocol/commands.pb.h" + #include "unix/fcitx/fcitx_key_event_handler.h" + + namespace mozc { Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_connection.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_response_parser.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_response_parser.cc (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_response_parser.cc (revision 391880) @@ -0,0 +1,50 @@ +--- src/unix/fcitx/mozc_response_parser.cc.orig 2015-07-13 04:56:54.572997000 +0900 ++++ src/unix/fcitx/mozc_response_parser.cc 2015-07-13 04:58:15.160661000 +0900 +@@ -36,7 +36,7 @@ + #include "base/logging.h" + #include "base/process.h" + #include "base/util.h" +-#include "session/commands.pb.h" ++#include "protocol/commands.pb.h" + #include "unix/fcitx/fcitx_mozc.h" + #include "unix/fcitx/surrounding_text_util.h" + #include +@@ -235,11 +235,13 @@ + } + } + ++#if 0 + static boolean FcitxMozcPaging(void* arg, boolean prev) + { + FcitxMozc* mozc = static_cast(arg); + return mozc->paging(prev); + } ++#endif + + void MozcResponseParser::ParseCandidates( + const mozc::commands::Candidates &candidates, FcitxMozc *fcitx_mozc) const { +@@ -286,12 +288,14 @@ + FcitxCandidateWordList* candList = FcitxInputStateGetCandidateList(fcitx_mozc->GetInputState()); + FcitxCandidateWordReset(candList); + FcitxCandidateWordSetPageSize(candList, 9); ++#if 0 + if (candidates.has_direction() && + candidates.direction() == commands::Candidates::HORIZONTAL) { + FcitxCandidateWordSetLayoutHint(candList, CLH_Horizontal); + } else { + FcitxCandidateWordSetLayoutHint(candList, CLH_Vertical); + } ++#endif + + map > usage_map; + if (candidates.has_usages()) { +@@ -395,7 +399,9 @@ + else + FcitxCandidateWordSetChoose(candList, EMPTY_STR_CHOOSE); + FcitxCandidateWordSetFocus(candList, local_index); ++#if 0 + FcitxCandidateWordSetOverridePaging(candList, hasPrev, hasNext, FcitxMozcPaging, fcitx_mozc, NULL); ++#endif + } + + static int GetRawCursorPos(const char * str, int upos) Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-mozc_response_parser.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-surrounding_text_util.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-surrounding_text_util.cc (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-surrounding_text_util.cc (revision 391880) @@ -0,0 +1,28 @@ +--- src/unix/fcitx/surrounding_text_util.cc.orig 2014-08-31 07:02:14.000000000 +0900 ++++ src/unix/fcitx/surrounding_text_util.cc 2014-08-31 07:03:49.000000000 +0900 +@@ -32,7 +32,9 @@ + #include + #include + #include ++#if 0 + #include ++#endif + + #include "base/port.h" + #include "base/logging.h" +@@ -207,6 +209,7 @@ + const string surrounding_text(str); + free(str); + ++#if 0 + if (cursor_pos == anchor_pos) { + const char* primary = NULL; + +@@ -220,6 +223,7 @@ + } + } + } ++#endif + + if (!SurroundingTextUtil::GetSafeDelta(cursor_pos, anchor_pos, + &info->relative_selected_length)) { Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-fcitx-surrounding_text_util.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-uim-key_translator.h =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-uim-key_translator.h (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-uim-key_translator.h (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/uim/key_translator.h.orig 2015-07-13 05:02:13.505621000 +0900 ++++ src/unix/uim/key_translator.h 2015-07-13 05:02:22.697125000 +0900 +@@ -38,7 +38,7 @@ + using __gnu_cxx::hash_map; + + #include "base/port.h" +-#include "session/commands.pb.h" ++#include "protocol/commands.pb.h" + + namespace mozc { + namespace uim { Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-uim-key_translator.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-uim-mozc.cc =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-uim-mozc.cc (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-uim-mozc.cc (revision 391880) @@ -0,0 +1,13 @@ +--- src/unix/uim/mozc.cc.orig 2015-07-13 05:03:12.431514000 +0900 ++++ src/unix/uim/mozc.cc 2015-07-13 05:03:30.340372000 +0900 +@@ -50,8 +50,8 @@ + + #include "base/port.h" + #include "base/util.h" +-#include "config/config.pb.h" +-#include "session/commands.pb.h" ++#include "protocol/config.pb.h" ++#include "protocol/commands.pb.h" + #include "client/client.h" + #include "unix/uim/key_translator.h" + Property changes on: head/japanese/mozc-server/files/extra-patch-src-unix-uim-mozc.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/extra-patch-src-unix-uim-uim.gyp =================================================================== --- head/japanese/mozc-server/files/extra-patch-src-unix-uim-uim.gyp (nonexistent) +++ head/japanese/mozc-server/files/extra-patch-src-unix-uim-uim.gyp (revision 391880) @@ -0,0 +1,28 @@ +--- src/unix/uim/uim.gyp.orig 2014-10-27 02:24:13.000000000 +0900 ++++ src/unix/uim/uim.gyp 2015-07-13 15:29:56.322735000 +0900 +@@ -31,6 +31,7 @@ + { + 'variables': { + 'relative_dir': 'unix/uim', ++ 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', + 'pkg_config_libs': [ + 'uim', + ], +@@ -39,6 +40,8 @@ + 'uim_dependencies': [ + '../../base/base.gyp:base', + '../../client/client.gyp:client', ++ '../../ipc/ipc.gyp:ipc', ++ '../../session/session_base.gyp:ime_switch_util', + ], + }, + 'targets': [ +@@ -49,7 +52,7 @@ + 'key_translator.cc', + ], + 'dependencies': [ +- '../../session/session_base.gyp:session_protocol', ++ '../../session/session_base.gyp:ime_switch_util', + ], + 'cflags': [ + ' and instead of upcoming + # and . + '-Wno-deprecated', ++ '<@(cflags_cc)', ++ ], ++ 'include_dirs': [ ++ '<@(include_dirs)' ++ ], ++ 'ldflags': [ ++ '<@(ldflags)', ++ '-fstack-protector', + ], + 'conditions': [ + ['target_platform!="NaCl"', { Property changes on: head/japanese/mozc-server/files/patch-src-gyp_common.gypi ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-ipc_ipc_path_manager.cc =================================================================== --- head/japanese/mozc-server/files/patch-src-ipc_ipc_path_manager.cc (nonexistent) +++ head/japanese/mozc-server/files/patch-src-ipc_ipc_path_manager.cc (revision 391880) @@ -0,0 +1,11 @@ +--- src/ipc/ipc_path_manager.cc.orig 2013-03-29 13:33:26.000000000 +0900 ++++ src/ipc/ipc_path_manager.cc 2013-04-27 15:21:52.000000000 +0900 +@@ -276,7 +276,7 @@ + *ipc_name = kIPCPrefix; + #endif // OS_WIN + +-#ifdef OS_LINUX ++#if defined(OS_LINUX) && !defined(OS_FREEBSD) + // On Linux, use abstract namespace which is independent of the file system. + (*ipc_name)[0] = '\0'; + #endif Property changes on: head/japanese/mozc-server/files/patch-src-ipc_ipc_path_manager.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-ipc_unix_ipc.cc =================================================================== --- head/japanese/mozc-server/files/patch-src-ipc_unix_ipc.cc (nonexistent) +++ head/japanese/mozc-server/files/patch-src-ipc_unix_ipc.cc (revision 391880) @@ -0,0 +1,89 @@ +--- src/ipc/unix_ipc.cc.orig 2013-03-29 13:33:26.000000000 +0900 ++++ src/ipc/unix_ipc.cc 2013-04-27 15:23:08.000000000 +0900 +@@ -41,6 +41,9 @@ + #include + #include + #include ++#if defined(OS_MACOSX) || defined(OS_FREEBSD) ++#include ++#endif + #include + #include + +@@ -123,6 +126,29 @@ + bool IsPeerValid(int socket, pid_t *pid) { + *pid = 0; + ++#if defined(OS_MACOSX) || defined(OS_FREEBSD) ++ // If the OS is MAC, we should validate the peer by using LOCAL_PEERCRED. ++ struct xucred peer_cred; ++ socklen_t peer_cred_len = sizeof(struct xucred); ++ if (::getsockopt(socket, 0, LOCAL_PEERCRED, ++ &peer_cred, &peer_cred_len) < 0) { ++ LOG(ERROR) << "cannot get peer credential. NOT a Unix socket?"; ++ return false; ++ } ++ if (peer_cred.cr_version != XUCRED_VERSION) { ++ LOG(WARNING) << "credential version mismatch."; ++ return false; ++ } ++ if (peer_cred.cr_uid != ::geteuid()) { ++ LOG(WARNING) << "uid mismatch." << peer_cred.cr_uid << "!=" << ::geteuid(); ++ return false; ++ } ++ ++ // MacOS doesn't have cr_pid; ++ *pid = 0; ++#endif ++ ++#if defined(OS_LINUX) && !defined(OS_FREEBSD) + // On ARM Linux, we do nothing and just return true since the platform + // sometimes doesn't support the getsockopt(sock, SOL_SOCKET, SO_PEERCRED) + // system call. +@@ -144,6 +170,7 @@ + + *pid = peer_cred.pid; + #endif // __arm__ ++#endif + + return true; + } +@@ -278,7 +305,12 @@ + address.sun_family = AF_UNIX; + ::memcpy(address.sun_path, server_address.data(), server_address_length); + address.sun_path[server_address_length] = '\0'; ++#if defined(OS_MACOSX) || defined(OS_FREEBSD) ++ address.sun_len = SUN_LEN(&address); ++ const size_t sun_len = sizeof(address); ++#else + const size_t sun_len = sizeof(address.sun_family) + server_address_length; ++#endif + pid_t pid = 0; + if (::connect(socket_, + reinterpret_cast(&address), +@@ -398,16 +430,21 @@ + SO_REUSEADDR, + reinterpret_cast(&on), + sizeof(on)); ++#if defined(OS_MACOSX) || defined(OS_FREEBSD) ++ addr.sun_len = SUN_LEN(&addr); ++ const size_t sun_len = sizeof(addr); ++#else + const size_t sun_len = sizeof(addr.sun_family) + server_address_.size(); +- if (!IsAbstractSocket(server_address_)) { +- // Linux does not use files for IPC. +- ::chmod(server_address_.c_str(), 0600); +- } ++#endif + if (::bind(socket_, reinterpret_cast(&addr), sun_len) != 0) { + // The UNIX domain socket file (server_address_) already exists? + LOG(FATAL) << "bind() failed: " << strerror(errno); + return; + } ++ if (!IsAbstractSocket(server_address_)) { ++ // Linux does not use files for IPC. ++ ::chmod(server_address_.c_str(), 0600); ++ } + + if (::listen(socket_, num_connections) < 0) { + LOG(FATAL) << "listen() failed: " << strerror(errno); Property changes on: head/japanese/mozc-server/files/patch-src-ipc_unix_ipc.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-server_mozc_server.cc =================================================================== --- head/japanese/mozc-server/files/patch-src-server_mozc_server.cc (nonexistent) +++ head/japanese/mozc-server/files/patch-src-server_mozc_server.cc (revision 391880) @@ -0,0 +1,49 @@ +--- src/server/mozc_server.cc.orig 2013-03-29 13:33:26.000000000 +0900 ++++ src/server/mozc_server.cc 2013-04-27 15:18:29.000000000 +0900 +@@ -32,6 +32,9 @@ + #ifdef OS_WIN + #include + #endif ++#ifdef OS_FREEBSD ++#include ++#endif + + #include + #include +@@ -51,6 +54,23 @@ + mozc::SessionServer *g_session_server = NULL; + } + ++#ifdef OS_FREEBSD ++static void sig_func(int num) ++{ ++ VLOG(1) << "signal " << num << " recieved."; ++ switch (num) { ++ case SIGINT: ++ case SIGHUP: ++ case SIGTERM: ++ if (g_session_server) ++ g_session_server->Terminate(); ++ break; ++ default: ++ break; ++ } ++} ++#endif ++ + namespace mozc { + namespace { + +@@ -132,6 +152,12 @@ + return -1; + } + ++#ifdef OS_FREEBSD ++ ::signal(SIGINT, sig_func); ++ ::signal(SIGHUP, sig_func); ++ ::signal(SIGTERM, sig_func); ++#endif ++ + #if defined(OS_WIN) + // On Windows, ShutdownSessionCallback is not called intentionally in order + // to avoid crashes oritinates from it. See b/2696087. Property changes on: head/japanese/mozc-server/files/patch-src-server_mozc_server.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-third_party_gyp_gyp =================================================================== --- head/japanese/mozc-server/files/patch-src-third_party_gyp_gyp (nonexistent) +++ head/japanese/mozc-server/files/patch-src-third_party_gyp_gyp (revision 391880) @@ -0,0 +1,8 @@ +--- src/third_party/gyp/gyp.orig 2014-08-31 04:28:46.000000000 +0900 ++++ src/third_party/gyp/gyp 2014-08-31 04:28:50.000000000 +0900 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # Copyright 2013 The Chromium Authors. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. Property changes on: head/japanese/mozc-server/files/patch-src-third_party_gyp_gyp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_common.py =================================================================== --- head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_common.py (nonexistent) +++ head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_common.py (revision 391880) @@ -0,0 +1,14 @@ +--- src/third_party/gyp/pylib/gyp/common.py.orig 2013-04-21 03:48:44.556270889 +0900 ++++ src/third_party/gyp/pylib/gyp/common.py 2013-04-21 04:16:32.525269583 +0900 +@@ -382,6 +382,11 @@ + 'cygwin': 'win', + 'win32': 'win', + 'darwin': 'mac', ++ 'freebsd7': 'linux', ++ 'freebsd8': 'linux', ++ 'freebsd9': 'linux', ++ 'freebsd10': 'linux', ++ 'freebsd11': 'linux' + } + + if 'flavor' in params: Property changes on: head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_common.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_generator_make.py =================================================================== --- head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_generator_make.py (nonexistent) +++ head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_generator_make.py (revision 391880) @@ -0,0 +1,31 @@ +--- src/third_party/gyp/pylib/gyp/generator/make.py.orig 2013-02-26 11:59:54.000000000 +0900 ++++ src/third_party/gyp/pylib/gyp/generator/make.py 2013-05-03 21:08:15.000000000 +0900 +@@ -259,7 +259,7 @@ + # export LINK=g++ + # + # This will allow make to invoke N linker processes as specified in -jN. +-LINK ?= %(flock)s $(builddir)/linker.lock $(CXX.target) ++LINK ?= $(CXX.target) + + CC.target ?= %(CC.target)s + CFLAGS.target ?= $(CFLAGS) +@@ -1956,6 +1956,9 @@ + srcdir_prefix = '$(srcdir)/' + + flock_command= 'flock' ++ if os.uname()[0] == 'FreeBSD': ++ flock_command= 'lockf' ++ + header_params = { + 'default_target': default_target, + 'builddir': builddir_name, +@@ -2003,7 +2006,8 @@ + build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0]) + make_global_settings_array = data[build_file].get('make_global_settings', []) + wrappers = {} +- wrappers['LINK'] = '%s $(builddir)/linker.lock' % flock_command ++ # Disable flock for linking. ++ # wrappers['LINK'] = '%s $(builddir)/linker.lock' % flock_command + for key, value in make_global_settings_array: + if key.endswith('_wrapper'): + wrappers[key[:-len('_wrapper')]] = '$(abspath %s)' % value Property changes on: head/japanese/mozc-server/files/patch-src-third_party_gyp_pylib_gyp_generator_make.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-unix_emacs_mozc.el =================================================================== --- head/japanese/mozc-server/files/patch-src-unix_emacs_mozc.el (nonexistent) +++ head/japanese/mozc-server/files/patch-src-unix_emacs_mozc.el (revision 391880) @@ -0,0 +1,43 @@ +--- src/unix/emacs/mozc.el.orig 2015-02-15 04:18:31.000000000 +0900 ++++ src/unix/emacs/mozc.el 2015-02-19 04:01:46.000000000 +0900 +@@ -1538,7 +1538,7 @@ + + ;;;; Communication with Mozc server through the helper process + +-(defvar mozc-helper-program-name "mozc_emacs_helper" ++(defvar mozc-helper-program-name "%%PREFIX%%/libexec/mozc_emacs_helper" + "Helper program's name or path to the helper program. + The helper program helps Emacs communicate with Mozc server, + which doesn't understand S-expression.") +@@ -1973,12 +1973,12 @@ + "Deactivate function `mozc-mode' via LEIM." + (mozc-mode nil)) + +-(defcustom mozc-leim-title "[Mozc]" +- "Mode line string shown when function `mozc-mode' is enabled. +-This indicator is not shown when you don't use LEIM." +- :type '(choice (const :tag "No indicator" nil) +- (string :tag "Show an indicator")) +- :group 'mozc) ++;;(defcustom mozc-leim-title "[Mozc]" ++;; "Mode line string shown when function `mozc-mode' is enabled. ++;;This indicator is not shown when you don't use LEIM." ++;; :type '(choice (const :tag "No indicator" nil) ++;; (string :tag "Show an indicator")) ++;; :group 'mozc) + + (defun mozc-leim-register-input-method () + "Register function `mozc-mode' as an input method of LEIM. +@@ -1994,10 +1994,10 @@ + ;; Register mozc-mode as an input method after the init file has been read + ;; so the user has a chance to specify `mozc-leim-title' in the init file + ;; after loading this file. +-(add-hook 'emacs-startup-hook #'mozc-leim-register-input-method) ++;;(add-hook 'emacs-startup-hook #'mozc-leim-register-input-method) + ;; In the case that `emacs-startup-hook' has already been run, especially + ;; when the user loads this file interactively, register immediately. +-(mozc-leim-register-input-method) ++;;(mozc-leim-register-input-method) + + + Property changes on: head/japanese/mozc-server/files/patch-src-unix_emacs_mozc.el ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py =================================================================== --- head/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py (nonexistent) +++ head/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py (revision 391880) @@ -0,0 +1,49 @@ +--- src/unix/ibus/gen_mozc_xml.py.orig 2015-02-15 04:18:31.000000000 +0900 ++++ src/unix/ibus/gen_mozc_xml.py 2015-02-22 02:00:23.000000000 +0900 +@@ -67,7 +67,7 @@ + # Information to generate part of mozc.xml for IBus 1.5 or later. + IBUS_1_5_ENGINE_COMMON_PROPS = { + 'description': '%(product_name)s (Japanese Input Method)', +- 'language': 'ja', ++ 'language': 'jpn', + 'icon': '%(ibus_mozc_icon_path)s', + 'rank': '80', + 'symbol': 'あ', +@@ -91,7 +91,7 @@ + # unix/ibus/mozc_engine.cc. + 'name': ['mozc-jp'], + 'longname': ['%(product_name)s'], +- 'layout': ['default'], ++ 'layout': ['jp'], + }, + } + +@@ -129,6 +129,7 @@ + engines: A dictionary from a property name to a list of property values of + engines. For example, {'name': ['mozc-jp', 'mozc', 'mozc-dv']}. + """ ++ print '' + print '' + for key in component: + OutputXmlElement(param_dict, key, component[key]) +@@ -203,13 +204,19 @@ + parser.add_option('--server_dir', dest='server_dir', default='', + help='The absolute directory path to be installed the ' + 'server executable.') ++ parser.add_option('--renderer_dir', dest='renderer_dir', default='', ++ help='The absolute directory path to be installed the ' ++ 'renderer executable.') ++ parser.add_option('--tool_dir', dest='tool_dir', default='', ++ help='The absolute directory path to be installed the ' ++ 'tool executable.') + parser.add_option('--pkg_config_command', dest='pkg_config_command', + default='pkg-config', + help='The path to pkg-config command.') + (options, unused_args) = parser.parse_args() + + setup_arg = [] +- setup_arg.append(os.path.join(options.server_dir, 'mozc_tool')) ++ setup_arg.append(os.path.join(options.tool_dir, 'mozc_tool')) + setup_arg.append('--mode=config_dialog') + if IsIBus15OrGreater(options): + # A tentative workaround against IBus 1.5 Property changes on: head/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-unix_ibus_ibus.gyp =================================================================== --- head/japanese/mozc-server/files/patch-src-unix_ibus_ibus.gyp (nonexistent) +++ head/japanese/mozc-server/files/patch-src-unix_ibus_ibus.gyp (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/ibus/ibus.gyp.orig 2015-02-17 18:04:40.000000000 +0900 ++++ src/unix/ibus/ibus.gyp 2015-02-17 18:04:58.000000000 +0900 +@@ -83,6 +83,8 @@ + './gen_mozc_xml.py', + '--branding=Mozc', + '--server_dir=<(server_dir)', ++ '--renderer_dir=<(renderer_dir)', ++ '--tool_dir=<(tool_dir)', + '--pkg_config_command=<(pkg_config_command)', + '--ibus_mozc_path=<(ibus_mozc_path)', + '--ibus_mozc_icon_path=<(ibus_mozc_icon_path)', Property changes on: head/japanese/mozc-server/files/patch-src-unix_ibus_ibus.gyp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-unix_ibus_mozc_engine.cc =================================================================== --- head/japanese/mozc-server/files/patch-src-unix_ibus_mozc_engine.cc (nonexistent) +++ head/japanese/mozc-server/files/patch-src-unix_ibus_mozc_engine.cc (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/ibus/mozc_engine.cc.orig 2014-08-31 03:35:19.000000000 +0900 ++++ src/unix/ibus/mozc_engine.cc 2014-08-31 04:04:15.000000000 +0900 +@@ -224,7 +224,7 @@ + } + + const size_t selection_start = min(cursor_pos, anchor_pos); +- const size_t selection_length = abs(info->relative_selected_length); ++ const size_t selection_length = ::abs(info->relative_selected_length); + Util::SubStringPiece(surrounding_text, 0, selection_start) + .CopyToString(&info->preceding_text); + Util::SubStringPiece(surrounding_text, selection_start, selection_length) Property changes on: head/japanese/mozc-server/files/patch-src-unix_ibus_mozc_engine.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/mozc-server/files/patch-src-unix_ibus_path_util.cc =================================================================== --- head/japanese/mozc-server/files/patch-src-unix_ibus_path_util.cc (nonexistent) +++ head/japanese/mozc-server/files/patch-src-unix_ibus_path_util.cc (revision 391880) @@ -0,0 +1,11 @@ +--- src/unix/ibus/path_util.cc.orig 2013-03-29 13:33:43.000000000 +0900 ++++ src/unix/ibus/path_util.cc 2013-04-27 15:42:28.000000000 +0900 +@@ -30,7 +30,7 @@ + #include "unix/ibus/path_util.h" + + namespace { +-const char kInstalledDirectory[] = "/usr/share/ibus-mozc"; ++const char kInstalledDirectory[] = LOCALBASE "/share/ibus-mozc/icons"; + } + + namespace mozc { Property changes on: head/japanese/mozc-server/files/patch-src-unix_ibus_path_util.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property