svn commit: r366687 - in head/japanese: fcitx-mozc mozc-additions mozc-server mozc-server/files
Hiroki Sato
hrs at FreeBSD.org
Sat Aug 30 22:19:59 UTC 2014
Author: hrs
Date: Sat Aug 30 22:19:55 2014
New Revision: 366687
URL: http://svnweb.freebsd.org/changeset/ports/366687
QAT: https://qat.redports.org/buildarchive/r366687/
Log:
Update Mozc to 1.15.1868.102.
Added:
head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc (contents, props changed)
head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc (contents, props changed)
head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc (contents, props changed)
head/japanese/mozc-server/files/patch-third_party_gyp_gyp (contents, props changed)
Deleted:
head/japanese/mozc-server/files/patch-base_base.gyp
head/japanese/mozc-server/files/patch-unix_ibus_gen_mozc_xml.py
head/japanese/mozc-server/files/patch-unix_ibus_ibus.gyp
head/japanese/mozc-server/files/patch-unix_ibus_selection_monitor.cc
Modified:
head/japanese/fcitx-mozc/Makefile
head/japanese/mozc-additions/Makefile
head/japanese/mozc-server/Makefile
head/japanese/mozc-server/distinfo
head/japanese/mozc-server/files/leim-list.el
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
head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc
Modified: head/japanese/fcitx-mozc/Makefile
==============================================================================
--- head/japanese/fcitx-mozc/Makefile Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/fcitx-mozc/Makefile Sat Aug 30 22:19:55 2014 (r366687)
@@ -11,7 +11,4 @@ PKGMESSAGE= ${.CURDIR}/pkg-message
BUILD_MOZC_LIST= fcitx_mozc
-IGNORE= not compatible with mozc 1.11.1502.102
-
-NO_STAGE= yes
.include "${MASTERDIR}/Makefile"
Modified: head/japanese/mozc-additions/Makefile
==============================================================================
--- head/japanese/mozc-additions/Makefile Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-additions/Makefile Sat Aug 30 22:19:55 2014 (r366687)
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mozc-additions
-PORTVERSION= 1.11.1502.102
+PORTVERSION= 1.15
CATEGORIES= japanese
MASTER_SITES= # empty
PKGNAMEPREFIX?= ja-
@@ -25,6 +25,7 @@ PLIST_FILES= bin/ibus-daemon_restart \
bin/mozc_tool_word_register
do-install:
- ${INSTALL_SCRIPT} ${PLIST_FILES:S,bin/,${FILESDIR}/,} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${PLIST_FILES:S,bin/,${FILESDIR}/,} \
+ ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
Modified: head/japanese/mozc-server/Makefile
==============================================================================
--- head/japanese/mozc-server/Makefile Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/Makefile Sat Aug 30 22:19:55 2014 (r366687)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= mozc
-PORTVERSION= 1.11.1502.102
-PORTREVISION= 1
+PORTVERSION= 1.15.1868.102
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -12,10 +11,11 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= hrs at FreeBSD.org
COMMENT?= Mozc Japanese Input Method, Server
-LICENSE= BSD
+LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/third_party/gyp/LICENSE
-BUILD_DEPENDS= python:${PORTSDIR}/lang/python
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python \
+ ninja:${PORTSDIR}/devel/ninja
EXTRACT_DEPENDS=${PYTHON_CMD}:${PYTHON_PORTSDIR}
LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf \
libzinnia.so:${PORTSDIR}/japanese/zinnia
@@ -23,7 +23,6 @@ RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/
USES= pkgconfig iconv gmake tar:bzip2
USE_PYTHON_BUILD=yes
-USE_OPENSSL= yes
BUILD_MOZC_LIST?= mozc_server
@@ -31,10 +30,10 @@ BUILD_MOZC_LIST?= mozc_server
PKGNAMEPREFIX= ja-
PKGNAMESUFFIX= -server
-LICENSE= BSD NAISTL
+LICENSE= BSD3CLAUSE NAISTL
LICENSE_COMB= multi
-LICENSE_FILE_BSD= ${WRKSRC}/third_party/gyp/LICENSE
-LICENSE_DISTFILES_BSD= ${DISTNAME}${EXTRACT_SUFX}
+LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/third_party/gyp/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
@@ -62,60 +61,51 @@ BROKEN= Does not compile: segfault
GYP_DEFINES= use_libprotobuf=1 \
channel_dev=0 \
enable_unittest=0 \
- zinnia_model_file="${LOCALBASE}/share/tegaki/models/zinnia/handwriting-ja.model"
+ 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/local/lib/python${PYTHON_VER}/site-packages \
- ${DEBUG} \
- GYP_DEFINES="${GYP_DEFINES}" \
- CC_host="${CC}" \
- CXX_host="${CXX}" \
- LD_host="${CXX}" \
- AR_host="${AR}" \
- ${PYTHON_CMD} build_mozc.py
+ PYTHONPATH=${WRKSRC}/third_party/gyp/pylib/gyp \
+ GYP_DEFINES="${GYP_DEFINES}" \
+ CC_host="${CC}" \
+ CXX_host="${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 && \
- ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP}
+ ${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
+ ${REINPLACE_CMD} 's,-liconv,${ICONV_LIB},g' \
+ ${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
+ ${WRKSRC}/unix/fcitx/gen_fcitx_mozc_i18n.sh
${REINPLACE_CMD} "s,/usr,${LOCALBASE:Q}," \
- ${WRKSRC}/unix/fcitx/mozc.conf
+ ${WRKSRC}/unix/fcitx/mozc.conf
.endif
-.if ! ${BUILD_MOZC_LIST:Mmozc_el}
+.if !${BUILD_MOZC_LIST:Mmozc_el}
${WRKSRC}/mozcmake:
${PRINTF} "%s\n%s\n" "#!/bin/sh" 'exec ${BUILD_CMD} $$@' \
- > ${WRKSRC}/mozcmake
+ > ${WRKSRC}/mozcmake
${CHMOD} +x ${WRKSRC}/mozcmake
post-configure: ${WRKSRC}/mozcmake
- ${BUILD_GYP_CMD} ${PYDISTUTILS_CONFIGURE_TARGET} \
- ${PYDISTUTILS_CONFIGUREARGS}
- ${BUILD_GYP_CMD} ${PYDISTUTILS_BUILD_TARGET} ${PYDISTUTILS_BUILDARGS}
- ${BUILD_GYP_CMD} ${PYDISTUTILS_INSTALL_TARGET} \
- --prefix=${WRKSRC}/third_party/gyp/local
${BUILD_MOZC_CMD} gyp \
- --gypdir=${WRKSRC}/third_party/gyp/local/bin \
- --server_dir="${PREFIX}/bin" \
- --localbase="${LOCALBASE}" \
- --ldflags="${LDFLAGS} -fstack-protector -L${LOCALBASE}/lib" \
- --include_dirs="${LOCALBASE}/include" \
- --openssl_cflags="${OPENSSL_CFLAGS}" \
- --openssl_ldflags="${OPENSSL_LDFLAGS}" \
- --openssl_inc="-I${OPENSSLINC}" \
- --openssl_lib="-lssl -lcrypto -L${OPENSSLLIB}" \
- ${GYP_OPTIONS}
-
-pre-build:
- ${BUILD_MOZC_CMD} build_tools -c ${BUILD_MODE} ${_MAKE_JOBS}
+ --gypdir=${WRKSRC}/third_party/gyp \
+ --server_dir="${PREFIX}/bin" \
+ --localbase="${LOCALBASE}" \
+ --ldflags="${LDFLAGS} -fstack-protector -L${LOCALBASE}/lib" \
+ --include_dirs="${LOCALBASE}/include" \
+ ${GYP_OPTIONS}
.endif
# mozc_server
@@ -139,9 +129,9 @@ post-extract-mozc_server:
${LHA_CMD} xfq2w=${WRKSRC}/data/dictionary_oss ${DISTDIR}/$$F; \
done
@cd ${WRKSRC}/data/dictionary_oss && \
- ${PYTHON_CMD} ${WRKSRC}/dictionary/gen_zip_code_seed.py \
- --zip_code=ken_all.csv --jigyosyo=jigyosyo.csv \
- >> dictionary09.txt
+ ${PYTHON_CMD} ${WRKSRC}/dictionary/gen_zip_code_seed.py \
+ --zip_code=ken_all.csv --jigyosyo=jigyosyo.csv \
+ >> dictionary09.txt
post-extract: post-extract-mozc_server
@@ -151,9 +141,9 @@ do-build-mozc_server:
do-install-mozc_server:
${INSTALL_PROGRAM} \
- ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_server \
- ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_emacs_helper \
- ${STAGEDIR}${PREFIX}/bin
+ ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_server \
+ ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_emacs_helper \
+ ${STAGEDIR}${PREFIX}/bin
.endif
# mozc_tool
@@ -175,16 +165,16 @@ do-build-mozc_tool:
do-install-mozc_tool:
${INSTALL_PROGRAM} \
- ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_tool \
- ${STAGEDIR}${PREFIX}/libexec
+ ${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 \
- ${STAGEDIR}${DATADIR}/icons/product_logo.png
+ ${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 \
- ${STAGEDIR}${DATADIR}/icons/update_uptodate.png
+ ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \
+ ${STAGEDIR}${DATADIR}/icons/update_uptodate.png
.endif
# ibus_mozc
@@ -216,45 +206,48 @@ PLIST_DIRS+= %%DATADIR%%/icons ${DATADIR
do-build-ibus_mozc:
${BUILD_MOZC_CMD_BUILD} \
- unix/ibus/ibus.gyp:ibus_mozc \
- renderer/renderer.gyp:mozc_renderer
+ unix/ibus/ibus.gyp:ibus_mozc \
+ renderer/renderer.gyp:mozc_renderer
do-install-ibus_mozc:
${INSTALL_PROGRAM} \
- ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_renderer \
- ${STAGEDIR}${PREFIX}/bin/mozc_renderer
+ ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_renderer \
+ ${STAGEDIR}${PREFIX}/bin/mozc_renderer
${INSTALL_PROGRAM} \
- ${WRKSRC}/out_linux/${BUILD_MODE}/ibus_mozc \
- ${STAGEDIR}${PREFIX}/libexec/ibus-engine-mozc
+ ${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}/obj/gen/unix/ibus/mozc.xml \
- ${STAGEDIR}${PREFIX}/share/ibus/component/mozc.xml
+ ${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 \
- ${STAGEDIR}${DATADIR}/icons/${F:S/^ui-//}.png
+ ${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 \
- ${STAGEDIR}${DATADIR}/icons/product_icon.png
+ ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \
+ ${STAGEDIR}${DATADIR}/icons/product_icon.png
.endif
# fcitx_mozc
-.if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc" # || make(makesum)
-PATCH_SITES= http://fcitx.googlecode.com/files/
-PATCHFILES= fcitx-${DISTNAME}.2.patch
+.if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc" || make(makesum)
+PATCH_SITES= http://download.fcitx-im.org/fcitx-mozc/
+PATCHFILES= fcitx-mozc-1.15.1834.102.1.patch
.endif
.if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc"
PATCH_DIST_STRIP=-p2
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-unix-fcitx-eim.cc \
+ ${FILESDIR}/extra-patch-unix-fcitx-mozc_response_parser.cc \
+ ${FILESDIR}/extra-patch-unix-fcitx-surrounding_text_util.cc
GYP_OPTIONS+= --noqt
GYP_DEFINES+= use_libibus=0 \
enable_gtk_renderer=0
-LIB_DEPENDS+= fcitx-core:${PORTSDIR}/chinese/fcitx
+LIB_DEPENDS+= libfcitx-core.so:${PORTSDIR}/chinese/fcitx
RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server \
mozc_tool:${PORTSDIR}/japanese/mozc-tool \
mozc_server_start:${PORTSDIR}/japanese/mozc-additions
@@ -282,32 +275,32 @@ do-build-fcitx_mozc:
do-install-fcitx_mozc:
@${MKDIR} \
- ${STAGEDIR}${PREFIX}/lib/fcitx \
- ${STAGEDIR}${PREFIX}/share/fcitx/addon \
- ${STAGEDIR}${PREFIX}/share/fcitx/inputmethod
+ ${STAGEDIR}${PREFIX}/lib/fcitx \
+ ${STAGEDIR}${PREFIX}/share/fcitx/addon \
+ ${STAGEDIR}${PREFIX}/share/fcitx/inputmethod
${INSTALL_LIB} \
- ${WRKSRC}/out_linux/${BUILD_MODE}/fcitx-mozc.so \
- ${STAGEDIR}${PREFIX}/lib/fcitx/fcitx-mozc.so
+ ${WRKSRC}/out_linux/${BUILD_MODE}/fcitx-mozc.so \
+ ${STAGEDIR}${PREFIX}/lib/fcitx/fcitx-mozc.so
${INSTALL_DATA} \
- ${WRKSRC}/unix/fcitx/fcitx-mozc.conf \
- ${STAGEDIR}${PREFIX}/share/fcitx/addon/fcitx-mozc.conf
+ ${WRKSRC}/unix/fcitx/fcitx-mozc.conf \
+ ${STAGEDIR}${PREFIX}/share/fcitx/addon/fcitx-mozc.conf
${INSTALL_DATA} \
- ${WRKSRC}/unix/fcitx/mozc.conf \
- ${STAGEDIR}${PREFIX}/share/fcitx/inputmethod/mozc.conf
- @${MKDIR} ${DATADIR}/icon
+ ${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 \
- ${STAGEDIR}${DATADIR}/icon/${F:S,^ui-,mozc-,}.png
+ ${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 \
- ${STAGEDIR}${DATADIR}/icon/mozc.png
+ ${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}/obj/gen/unix/fcitx/po/${L}.mo \
- ${STAGEDIR}${PREFIX}/share/locale/${L}/LC_MESSAGES/fcitx-mozc.mo
+ ${WRKSRC}/out_linux/${BUILD_MODE}/gen/unix/fcitx/po/${L}.mo \
+ ${STAGEDIR}${PREFIX}/share/locale/${L}/LC_MESSAGES/fcitx-mozc.mo
.endfor
.endif
@@ -324,16 +317,16 @@ PLIST_DIRS+= ${EMACS_VERSION_SITE_LISPDI
do-build-mozc_el:
cd ${WRKSRC}/unix/emacs && \
- ${EMACS_CMD} -batch -q -no-site-file -no-init-file \
- -f batch-byte-compile mozc.el
+ ${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.el \
- ${WRKSRC}/unix/emacs/mozc.elc \
- ${FILESDIR}/leim-list.el \
- ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc/
+ ${WRKSRC}/unix/emacs/mozc.el \
+ ${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-/}
Modified: head/japanese/mozc-server/distinfo
==============================================================================
--- head/japanese/mozc-server/distinfo Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/distinfo Sat Aug 30 22:19:55 2014 (r366687)
@@ -1,6 +1,8 @@
-SHA256 (mozc-1.11.1502.102.tar.bz2) = c74eb3f1096b0c1144868f6807fdf113412bd4cb23a297974ee22bd7a5f2dfe9
-SIZE (mozc-1.11.1502.102.tar.bz2) = 58777653
+SHA256 (mozc-1.15.1868.102.tar.bz2) = c4935d6e2413dfe4683bc6b402a1911e60d942b94159ad66cc7754e643e45bf1
+SIZE (mozc-1.15.1868.102.tar.bz2) = 71791752
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-1.15.1834.102.1.patch) = fd1291cedfb0e14810f243b69244eab9a2468efcba024072edff839f03c12112
+SIZE (fcitx-mozc-1.15.1834.102.1.patch) = 140485
Added: head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/mozc-server/files/extra-patch-unix-fcitx-eim.cc Sat Aug 30 22:19:55 2014 (r366687)
@@ -0,0 +1,12 @@
+--- 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"));
+
Added: head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/mozc-server/files/extra-patch-unix-fcitx-mozc_response_parser.cc Sat Aug 30 22:19:55 2014 (r366687)
@@ -0,0 +1,41 @@
+--- 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<FcitxMozc*>(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<int32, pair<string, string> > 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)
Added: head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/mozc-server/files/extra-patch-unix-fcitx-surrounding_text_util.cc Sat Aug 30 22:19:55 2014 (r366687)
@@ -0,0 +1,28 @@
+--- 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 <limits>
+ #include <string>
+ #include <fcitx/instance.h>
++#if 0
+ #include <fcitx/module/clipboard/fcitx-clipboard.h>
++#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)) {
Modified: head/japanese/mozc-server/files/leim-list.el
==============================================================================
--- head/japanese/mozc-server/files/leim-list.el Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/files/leim-list.el Sat Aug 30 22:19:55 2014 (r366687)
@@ -26,4 +26,4 @@ This indicator is not shown when you don
(register-input-method
"japanese-mozc" "Japanese" #'mozc-leim-activate
mozc-leim-title
- "Japanese input method with Mozc/Google Japanese Input.")
+ "Japanese input method with Mozc.")
Modified: head/japanese/mozc-server/files/patch-build_mozc.py
==============================================================================
--- head/japanese/mozc-server/files/patch-build_mozc.py Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/files/patch-build_mozc.py Sat Aug 30 22:19:55 2014 (r366687)
@@ -1,20 +1,16 @@
---- build_mozc.py.orig 2013-07-17 11:37:50.000000000 +0900
-+++ build_mozc.py 2013-07-19 22:27:55.000000000 +0900
-@@ -332,6 +332,13 @@
- help='use rsync to copy files instead of builtin function')
- AddTargetPlatformOption(parser)
-
+--- build_mozc.py.orig 2014-08-31 03:36:22.000000000 +0900
++++ build_mozc.py 2014-08-31 06:04:34.000000000 +0900
+@@ -351,6 +351,9 @@
+ 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('--include_dirs', dest='include_dirs')
-+ parser.add_option('--openssl_cflags', dest='openssl_cflags')
-+ parser.add_option('--openssl_ldflags', dest='openssl_ldflags')
-+ parser.add_option('--openssl_lib', dest='openssl_lib')
-+ parser.add_option('--openssl_inc', dest='openssl_inc')
+ AddTargetPlatformOption(parser)
# Mac and Linux
- warn_as_error_default = False
-@@ -518,7 +525,7 @@
+@@ -538,7 +541,7 @@
parser = optparse.OptionParser(usage='Usage: %prog build [options]')
AddCommonOptions(parser)
if IsLinux():
@@ -23,36 +19,17 @@
parser.add_option('--jobs', '-j', dest='jobs',
default=('%d' % default_build_concurrency),
metavar='N', help='run build jobs in parallel')
-@@ -566,9 +573,6 @@
-
- return parser.parse_args(args, values)
-
--
--
--
- def AddPythonPathToEnvironmentFilesForWindows(out_dir):
- """Add PYTHONPATH to environment files for Ninja."""
- mozc_root = os.path.abspath(GetTopLevelSourceDirectoryName())
-@@ -746,6 +750,22 @@
- else:
- command_line.extend(['-D', 'warn_as_error=0'])
+@@ -701,6 +704,13 @@
+ logging.info('Building GYP command line...')
+ gyp_options = ['--depth=.', '--include=%s/gyp/common.gypi' % SRC_DIR]
+ localbase = options.localbase or '/usr'
-+ command_line.extend(['-D', 'localbase=%s' % localbase])
++ gyp_options.extend(['-D', 'localbase=%s' % localbase])
+
+ ldflags = options.ldflags or ''
-+ command_line.extend(['-D', 'ldflags=%s' % ldflags])
++ gyp_options.extend(['-D', 'ldflags=%s' % ldflags])
+ include_dirs = options.include_dirs or ''
-+ command_line.extend(['-D', 'include_dirs=%s' % include_dirs])
-+
-+ openssl_cflags = options.openssl_cflags or ''
-+ command_line.extend(['-D', 'openssl_cflags=%s' % openssl_cflags])
-+ openssl_ldflags = options.openssl_cflags or ''
-+ command_line.extend(['-D', 'openssl_ldflags=%s' % openssl_ldflags])
-+ openssl_inc = options.openssl_inc or ''
-+ command_line.extend(['-D', 'openssl_inc=%s' % openssl_inc])
-+ openssl_lib = options.openssl_lib or ''
-+ command_line.extend(['-D', 'openssl_lib=%s' % openssl_lib])
++ gyp_options.extend(['-D', 'include_dirs=%s' % include_dirs])
- # mac_dir should be started with '<(DEPTH)', otherwise some
- # operations in XCode fails. So if the mac_dir option is an
+ mozc_root = os.path.abspath(GetTopLevelSourceDirectoryName())
+ gyp_options.extend(['-D', 'abs_depth=%s' % mozc_root])
Modified: head/japanese/mozc-server/files/patch-gyp_common.gypi
==============================================================================
--- head/japanese/mozc-server/files/patch-gyp_common.gypi Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/files/patch-gyp_common.gypi Sat Aug 30 22:19:55 2014 (r366687)
@@ -1,6 +1,6 @@
---- gyp/common.gypi.orig 2013-07-17 11:38:04.000000000 +0900
-+++ gyp/common.gypi 2013-07-19 22:51:13.000000000 +0900
-@@ -749,6 +749,8 @@
+--- gyp/common.gypi.orig 2014-08-31 03:36:19.000000000 +0900
++++ gyp/common.gypi 2014-08-31 03:46:27.000000000 +0900
+@@ -759,6 +759,8 @@
['OS=="linux"', {
'defines': [
'OS_LINUX',
@@ -9,7 +9,7 @@
],
'cflags': [
'<@(warning_cflags)',
-@@ -760,6 +762,13 @@
+@@ -770,6 +772,13 @@
# <unordered_map> and <unordered_set>.
'-Wno-deprecated',
],
@@ -21,18 +21,5 @@
+ '-fstack-protector',
+ ],
'conditions': [
- ['target_platform=="ChromeOS"', {
- 'defines': [
-@@ -774,12 +783,10 @@
- '-Wno-covered-switch-default',
- '-Wno-unnamed-type-template-args',
- '-Wno-c++11-narrowing',
-- '-std=gnu++0x',
- ],
- }],
- ['clang==0 and target_platform!="Windows"', {
- 'cflags_cc': [
-- '-std=gnu++0x',
- ],
- 'defines': [
- 'GTEST_LANG_CXX11=0',
+ ['target_platform!="NaCl"', {
+ 'cflags': [
Added: head/japanese/mozc-server/files/patch-third_party_gyp_gyp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/mozc-server/files/patch-third_party_gyp_gyp Sat Aug 30 22:19:55 2014 (r366687)
@@ -0,0 +1,8 @@
+--- 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.
Modified: head/japanese/mozc-server/files/patch-unix_emacs_mozc.el
==============================================================================
--- head/japanese/mozc-server/files/patch-unix_emacs_mozc.el Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/files/patch-unix_emacs_mozc.el Sat Aug 30 22:19:55 2014 (r366687)
@@ -1,35 +1,34 @@
---- unix/emacs/mozc.el.orig 2013-07-17 11:37:50.000000000 +0900
-+++ unix/emacs/mozc.el 2013-07-19 22:36:17.000000000 +0900
-@@ -1834,19 +1834,20 @@
- "Deactivate mozc-mode via LEIM."
+--- unix/emacs/mozc.el.orig 2014-08-31 03:35:19.000000000 +0900
++++ unix/emacs/mozc.el 2014-08-31 03:52:11.000000000 +0900
+@@ -1973,12 +1973,12 @@
+ "Deactivate function `mozc-mode' via LEIM."
(mozc-mode nil))
-(defcustom mozc-leim-title "[Mozc]"
-- "Mode line string shown when mozc-mode is enabled.
+- "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)
-+;; defined in leim-list.el
-+;; (defcustom mozc-leim-title "[Mozc]"
-+;; "Mode line string shown when mozc-mode is enabled.
-+;; This indicator is not shown when you don't use LEIM."
++;;(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)
--(register-input-method
-- "japanese-mozc"
-- "Japanese"
-- #'mozc-leim-activate
-- mozc-leim-title
-- "Japanese input method with Mozc/Google Japanese Input.")
-+;; (register-input-method
-+;; "japanese-mozc"
-+;; "Japanese"
-+;; #'mozc-leim-activate
-+;; mozc-leim-title
-+;; "Japanese input method with Mozc/Google Japanese Input.")
+ (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)
Modified: head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc
==============================================================================
--- head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc Sat Aug 30 22:17:25 2014 (r366686)
+++ head/japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc Sat Aug 30 22:19:55 2014 (r366687)
@@ -1,11 +1,11 @@
---- unix/ibus/mozc_engine.cc.orig 2013-07-17 11:37:50.000000000 +0900
-+++ unix/ibus/mozc_engine.cc 2013-07-19 22:37:55.000000000 +0900
-@@ -265,7 +265,7 @@
+--- 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 uint32 selection_start = min(cursor_pos, anchor_pos);
-- const uint32 selection_length = abs(info->relative_selected_length);
-+ const uint32 selection_length = ::abs(info->relative_selected_length);
- info->preceding_text = surrounding_text.substr(0, selection_start);
- Util::SubString(surrounding_text,
- selection_start,
+ 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)
More information about the svn-ports-all
mailing list