Sat Jul 19 09:03:04 2014 UTC ()
Update to 1.15.1785.102

* devel/ninja is required to build.

Changelog:
r271 2014-07-13 1.15.1834.102 - r265 2014-07-06 1.15.1828.102

You can check out Mozc r271 as follows.

gclient sync --revision=271

Summary of changes between 1.15.1834.102 (r271) and 1.15.1828.102 (r265).

    Build related changes:
        Ninja and GYP r1948 are now required to build Mozc for Android, NaCl, or Linux desktop. Note that you don't need to install Ninja manually, since depot_tools maintains pre-built Ninja binaries.
        A sample Dockerfile is now available at mozc/docker/ubuntu12.04/Dockerfile. It provides a reference build environment of Mozc for Android, NaCl, and Linux desktop. See BuildInDocker for details.
    Fixed issues:
        FIX: Use ninja on Linux ( Issue 222 )
        FIX: Inconsistency between visible candidate and actual commit in suggestion ( Issue 239 )
        FIX: Provide a Dockerfile to set up build environment for Android, NaCl, and Linux desktop ( Issue 240 )
    Commit summary:
        r271: Add an all-in-one Dockerfile to build Mozc for Android, NaCl, and Linux desktop (Ubuntu 12.04 edition)
        r270: Minor clean up in gyp file
        r269: Zero query suggestion shouldn't be triggered when committing with key event
        r268: Use Ninja to build Android, NaCl, and Linux Desktop binaries part 3
        r267: Use Ninja to build Android, NaCl, and Linux Desktop binaries part 2
        r266: Use Ninja to build Android, NaCl, and Linux Desktop binaries
        r265: Pull GYP r1948

r253 2014-07-06 1.15.1827.102 - r241 2014-06-28 1.15.1815.102

You can check out Mozc r253 as follows.

gclient sync --revision=253

Summary of changes between 1.15.1827.102 (r253) and 1.15.1815.102 (r241).

    Fixed issues:
        FIX: Menu item for MozcTool lacks text label in ibus-mozc ( Issue 233 )
        FIX: Explorer crashes when tsf-mozc is enabled on Windows 8.1 update1 ( Issue 236 )
    Commit summary:
        r253: Specify the absolute path of the project root directory for include directories
        r252: Disable ITfFnGetLinguisticAlternates until the root cause of Explorer crashes is addressed
        r251: Specify text label for the menu item of MozcTool in ibus-mozc
        r250: Do not pass incomplete types to STL containers
        r249: Explicitly include <unistd.h> for OSX
        r248: Stop using template to implement BasicCodeGenByteArrayStreamBuf
        r247: Explicity invoke bash for make-standalone-toolchain.sh
        r246: Make config_file_stream_test.cc more robust
        r245: Replace NULL with nullptr in mozc::NumberUtil
        r244: Enable Unicode 6 Emoji conversion by default for desktop (part 4)
        r243: Unify nested preprocessor conditions into one line (part 3)
        r242: Minor style fixes
        r241: Unify nested preprocessor conditions into one line (part 2)

r234 2014-06-22 1.15.1814.102 - r206 2014-05-24 1.15.1786.102

You can check out Mozc r234 as follows.

gclient sync --revision=234

Summary of changes between 1.15.1814.102 (r234) and 1.15.1786.102 (r206).

    Build related changes:
        'build_mozc.py build_tools' is deprecated. Mozc no longer requires 2-pass build. ( Issue 223 )
    Fixed issues:
        FIX: Wrong key mapping for Numpad-End in mozc.el ( Issue 170 )
        FIX: mozc::converter::CandidateFilter drops candidates unexpectedly ( Issue 220 )
        FIX: Preceding text is not correctly extracted in ibus-mozc ( Issue 226 )
        FIX: Undo-Commit is not functional in ibus-mozc ( Issue 227 )
        FIX: NaCl-Mozc uses wrong version for downloadable dictionary
    Commit summary:
        r234: Ensure that the IPC client is configured before it is used in ibus-mozc
        r233: Teach ibus-mozc about the correct substring position when extracting surrounding text (part 2)
        r232: Teach ibus-mozc about the correct substring position when extracting surrounding text (part 1)
        r231: Enable Unicode 6 Emoji conversion by default for desktop (part 3)
        r230: Enable Unicode 6 Emoji conversion by default for desktop (part 2)
        r229: Enable Unicode 6 Emoji conversion by default for desktop
        r228: Unify nested preprocessor conditions into one line
        r227: Strictly check the range of the operands for integer operations performed in NumberUtil
        r226: Simplify test cases for SafeStrToDouble/SafeStrToFloat
        r225: Remove a redundant constant definition
        r224: UtilTest::StripWhiteSpaces should work with a single letter text.
        r223: Use different internal namespace for gflags
        r222: Fix the version check logic of the downloadable dictionary for NaCl-Mozc.
        r221: Do not use shell syntax in gyp (part 2)
        r220: Do not use shell syntax in gyp (part 1)
        r219: Use absolute path to teach the linker about a file location
        r218: Add a missing build dependency
        r217: Fix wrong reading for U+1F3C4
        r216: Fix key mapping for Numpad-End in mozc.el
        r215: Remove a redundant NULL initialization of unique_ptr
        r214: Stop using 2-pass build on OS X
        r213: Minor style fixes
        r212: Manage the root directory of protobuf for Java source in gyp rather than ant
        r211: Stop using 2-pass build except for OS X
        r210: Remove execute bit from files that shouldn't have it
        r209: Remove platform-dependent mozc::Encryptor part 2
        r208: Remove platform-dependent mozc::Encryptor
        r207: Fix the bug that Top_cost + cost_offset exceeds INT_MAX when lid is first/last name
        r206: Remove an obsolete directory that is no longer used


(ryoon)
diff -r1.19 -r1.20 pkgsrc/inputmethod/ibus-mozc/Makefile
diff -r1.19 -r1.20 pkgsrc/inputmethod/mozc-server/Makefile
diff -r1.10 -r1.11 pkgsrc/inputmethod/mozc-server/Makefile.common
diff -r1.8 -r1.9 pkgsrc/inputmethod/mozc-server/distinfo
diff -r1.3 -r1.4 pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp
diff -r1.1 -r1.2 pkgsrc/inputmethod/mozc-server/patches/patch-base_run__level.cc
diff -r1.4 -r1.5 pkgsrc/inputmethod/mozc-server/patches/patch-build__mozc.py
diff -r1.3 -r0 pkgsrc/inputmethod/mozc-server/patches/patch-protobuf_genproto.gypi
diff -r1.2 -r0 pkgsrc/inputmethod/mozc-server/patches/patch-unix_ibus_mozc__engine.cc

cvs diff -r1.19 -r1.20 pkgsrc/inputmethod/ibus-mozc/Makefile (expand / switch to unified diff)

--- pkgsrc/inputmethod/ibus-mozc/Makefile 2014/06/15 13:08:34 1.19
+++ pkgsrc/inputmethod/ibus-mozc/Makefile 2014/07/19 09:03:04 1.20
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1# $NetBSD: Makefile,v 1.19 2014/06/15 13:08:34 ryoon Exp $ 1# $NetBSD: Makefile,v 1.20 2014/07/19 09:03:04 ryoon Exp $
2 2
3PKGNAME= ibus-${DISTNAME} 3PKGNAME= ibus-${DISTNAME}
4 4
5INSTALLATION_DIRS+= libexec share/ibus share/ibus/component \ 5INSTALLATION_DIRS+= libexec share/ibus share/ibus/component \
6 share/ibus-mozc 6 share/ibus-mozc
7 7
8DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils 8DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
9DEPENDS+= mozc-renderer-[0-9]*:../../inputmethod/mozc-renderer 9DEPENDS+= mozc-renderer-[0-9]*:../../inputmethod/mozc-renderer
10DEPENDS+= mozc-server-[0-9]*:../../inputmethod/mozc-server 10DEPENDS+= mozc-server-[0-9]*:../../inputmethod/mozc-server
11DEPENDS+= mozc-tool-[0-9]*:../../inputmethod/mozc-tool 11DEPENDS+= mozc-tool-[0-9]*:../../inputmethod/mozc-tool
12 12
13do-build: 13do-build:
14 cd ${WRKSRC} && env ${MAKE_ENV} \ 14 cd ${WRKSRC} && env ${MAKE_ENV} \
15 ${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \ 15 ${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \
16 unix/ibus/ibus.gyp:ibus_mozc 16 unix/ibus/ibus.gyp:ibus_mozc
17 17
18do-install: 18do-install:
19 ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/ibus_mozc \ 19 ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/ibus_mozc \
20 ${DESTDIR}${PREFIX}/libexec/ibus-engine-mozc 20 ${DESTDIR}${PREFIX}/libexec/ibus-engine-mozc
21 ${INSTALL_DATA} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/obj/gen/unix/ibus/mozc.xml \ 21 ${INSTALL_DATA} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/gen/unix/ibus/mozc.xml \
22 ${DESTDIR}${PREFIX}/share/ibus/component 22 ${DESTDIR}${PREFIX}/share/ibus/component
23 ${INSTALL_DATA} ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \ 23 ${INSTALL_DATA} ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \
24 ${DESTDIR}${PREFIX}/share/ibus-mozc/product_icon.png 24 ${DESTDIR}${PREFIX}/share/ibus-mozc/product_icon.png
25 25
26.include "../../inputmethod/ibus/buildlink3.mk" 26.include "../../inputmethod/ibus/buildlink3.mk"
27.include "../../inputmethod/mozc-server/Makefile.common" 27.include "../../inputmethod/mozc-server/Makefile.common"

cvs diff -r1.19 -r1.20 pkgsrc/inputmethod/mozc-server/Makefile (expand / switch to unified diff)

--- pkgsrc/inputmethod/mozc-server/Makefile 2014/06/15 13:08:34 1.19
+++ pkgsrc/inputmethod/mozc-server/Makefile 2014/07/19 09:03:04 1.20
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.19 2014/06/15 13:08:34 ryoon Exp $ 1# $NetBSD: Makefile,v 1.20 2014/07/19 09:03:04 ryoon Exp $
2 2
3PKGNAME= ${DISTNAME:S/mozc-/mozc-server-/} 3PKGNAME= ${DISTNAME:S/mozc-/mozc-server-/}
4 4
5INSTALLATION_DIRS+= libexec 5INSTALLATION_DIRS+= libexec
6 6
7do-build: 7do-build:
8 cd ${WRKSRC} && env ${MAKE_ENV} \ 8 cd ${WRKSRC} && env ${MAKE_ENV} \
9 ${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \ 9 ${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} \
 10 ${_MAKE_JOBS} \
10 server/server.gyp:mozc_server 11 server/server.gyp:mozc_server
11 12
12do-install: 13do-install:
13 ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/mozc_server \ 14 ${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/mozc_server \
14 ${DESTDIR}${PREFIX}/libexec/mozc_server 15 ${DESTDIR}${PREFIX}/libexec/mozc_server
15 16
16.include "../../inputmethod/mozc-server/Makefile.common" 17.include "../../inputmethod/mozc-server/Makefile.common"

cvs diff -r1.10 -r1.11 pkgsrc/inputmethod/mozc-server/Makefile.common (expand / switch to unified diff)

--- pkgsrc/inputmethod/mozc-server/Makefile.common 2014/06/15 13:08:34 1.10
+++ pkgsrc/inputmethod/mozc-server/Makefile.common 2014/07/19 09:03:04 1.11
@@ -1,48 +1,49 @@ @@ -1,48 +1,49 @@
1# $NetBSD: Makefile.common,v 1.10 2014/06/15 13:08:34 ryoon Exp $ 1# $NetBSD: Makefile.common,v 1.11 2014/07/19 09:03:04 ryoon Exp $
2# used by inputmethod/ibus-mozc/Makefile 2# used by inputmethod/ibus-mozc/Makefile
3# used by inputmethod/mozc-elisp/Makefile 3# used by inputmethod/mozc-elisp/Makefile
4# used by inputmethod/mozc-server/Makefile 4# used by inputmethod/mozc-server/Makefile
5# used by inputmethod/mozc-tool/Makefile 5# used by inputmethod/mozc-tool/Makefile
6# used by inputmethod/mozc-renderer/Makefile 6# used by inputmethod/mozc-renderer/Makefile
7# used by inputmethod/uim-mozc/Makefile 7# used by inputmethod/uim-mozc/Makefile
8# 8#
9 9
10DISTNAME= mozc-1.15.1785.102 10DISTNAME= mozc-1.15.1834.102
11CATEGORIES= inputmethod 11CATEGORIES= inputmethod
12#MASTER_SITES= http://mozc.googlecode.com/files/ 
13MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pnsft-aur/} 12MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pnsft-aur/}
14EXTRACT_SUFX= .tar.xz 13EXTRACT_SUFX= .tar.xz
15 14
16MAINTAINER= ryoon@NetBSD.org 15MAINTAINER= ryoon@NetBSD.org
17HOMEPAGE= http://code.google.com/p/mozc/ 16HOMEPAGE= http://code.google.com/p/mozc/
18COMMENT= Japanese inputmethod Mozc engine for IBus 17COMMENT= Japanese inputmethod Mozc engine for IBus
19LICENSE= modified-bsd 18LICENSE= modified-bsd
20 19
21DISTINFO_FILE= ${.CURDIR}/../../inputmethod/mozc-server/distinfo 20DISTINFO_FILE= ${.CURDIR}/../../inputmethod/mozc-server/distinfo
22PATCHDIR= ${.CURDIR}/../../inputmethod/mozc-server/patches 21PATCHDIR= ${.CURDIR}/../../inputmethod/mozc-server/patches
23 22
24BUILD_DEPENDS+= ${PYPKGPREFIX}-gyp-[0-9]*:../../devel/gyp 23BUILD_DEPENDS+= ${PYPKGPREFIX}-gyp-[0-9]*:../../devel/gyp
 24BUILD_DEPENDS+= ninja-[0-9]*:../../devel/ninja
25 25
26PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-gyp 26PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-gyp
27 27
28USE_LANGUAGES= c c++ 28USE_LANGUAGES= c c++
29# nullptr requires -std=c++11, and -std=c++11 requires gcc 4.7 or later 29# nullptr requires -std=c++11, and -std=c++11 requires gcc 4.7 or later
30GCC_REQD+= 4.7 30GCC_REQD+= 4.7
31CXXFLAGS+= -std=c++11 31CXXFLAGS+= -std=c++11
32 32
33USE_TOOLS+= gmake pkg-config 33USE_TOOLS+= gmake pkg-config
34 34
35FIND_PREFIX:= GYPDIR=${PYPKGPREFIX}-gyp 35FIND_PREFIX:= GYPDIR=${PYPKGPREFIX}-gyp
 36#FIND_PREFIX:= NINJADIR=ninja
36.include "../../mk/find-prefix.mk" 37.include "../../mk/find-prefix.mk"
37 38
38OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include 39OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include
39OPENSSL_INC= -I${BUILDLINK_PREFIX.openssl}/include 40OPENSSL_INC= -I${BUILDLINK_PREFIX.openssl}/include
40OPENSSL_LDFLAGS= -L${BUILDLINK_PREFIX.openssl}/lib -lssl -lcrypto 41OPENSSL_LDFLAGS= -L${BUILDLINK_PREFIX.openssl}/lib -lssl -lcrypto
41OPENSSL_LIBS= -lssl -lcrypto 42OPENSSL_LIBS= -lssl -lcrypto
42 43
43SUBST_CLASSES+= gyp 44SUBST_CLASSES+= gyp
44SUBST_STAGE.gyp= pre-configure 45SUBST_STAGE.gyp= pre-configure
45SUBST_MESSAGE.gyp= Fix gyp defaults 46SUBST_MESSAGE.gyp= Fix gyp defaults
46SUBST_FILES.gyp+= base/base.gyp 47SUBST_FILES.gyp+= base/base.gyp
47SUBST_FILES.gyp+= base/process.cc 48SUBST_FILES.gyp+= base/process.cc
48SUBST_FILES.gyp+= base/system_util.cc 49SUBST_FILES.gyp+= base/system_util.cc
@@ -58,28 +59,28 @@ ALL_ENV+= LINK=${CXX} @@ -58,28 +59,28 @@ ALL_ENV+= LINK=${CXX}
58 59
59.include "../../mk/bsd.prefs.mk" 60.include "../../mk/bsd.prefs.mk"
60.if ${OPSYS} == "NetBSD" 61.if ${OPSYS} == "NetBSD"
61OSDEST= bsd 62OSDEST= bsd
62.elif ${OPSYS} == "Linux" 63.elif ${OPSYS} == "Linux"
63OSDEST= linux 64OSDEST= linux
64.endif 65.endif
65 66
66MOZC_BUILD_MODE= Release # or Debug 67MOZC_BUILD_MODE= Release # or Debug
67 68
68do-configure: 69do-configure:
69 cd ${WRKSRC} && env ${MAKE_ENV} \ 70 cd ${WRKSRC} && env ${MAKE_ENV} \
70 GYP_DEFINES="use_libprotobuf=1" \ 71 GYP_DEFINES="use_libprotobuf=1" \
71 ${PYTHONBIN} build_mozc.py gyp \ 72 ${PYTHONBIN} build_mozc.py \
72 --gypdir=${GYPDIR}/bin && \ 73 gyp \
73 ${PYTHONBIN} build_mozc.py build_tools -c ${MOZC_BUILD_MODE} \ 74 --gypdir=${GYPDIR}/bin
74 ${_MAKE_JOBS} 
75 75
76.include "../../devel/glib2/buildlink3.mk" 76.include "../../devel/glib2/buildlink3.mk"
77.include "../../devel/protobuf/buildlink3.mk" 77.include "../../devel/protobuf/buildlink3.mk"
78# gmock is not used yet... 78# gmock is not used yet...
79#.include "../../devel/gmock/buildlink3.mk" 79#.include "../../devel/gmock/buildlink3.mk"
80.include "../../inputmethod/zinnia/buildlink3.mk" 80.include "../../inputmethod/zinnia/buildlink3.mk"
 81.include "../../www/curl/buildlink3.mk"
81.include "../../x11/gtk2/buildlink3.mk" 82.include "../../x11/gtk2/buildlink3.mk"
82.include "../../x11/qt4-libs/buildlink3.mk" 83.include "../../x11/qt4-libs/buildlink3.mk"
83 84
84.include "../../lang/python/tool.mk" 85.include "../../lang/python/tool.mk"
85.include "../../mk/bsd.pkg.mk" 86.include "../../mk/bsd.pkg.mk"

cvs diff -r1.8 -r1.9 pkgsrc/inputmethod/mozc-server/distinfo (expand / switch to unified diff)

--- pkgsrc/inputmethod/mozc-server/distinfo 2014/06/15 13:08:34 1.8
+++ pkgsrc/inputmethod/mozc-server/distinfo 2014/07/19 09:03:04 1.9
@@ -1,51 +1,49 @@ @@ -1,51 +1,49 @@
1$NetBSD: distinfo,v 1.8 2014/06/15 13:08:34 ryoon Exp $ 1$NetBSD: distinfo,v 1.9 2014/07/19 09:03:04 ryoon Exp $
2 2
3SHA1 (mozc-1.15.1785.102.tar.xz) = e3114c30007c9c1d6c449a015091b67a3f1f77ae 3SHA1 (mozc-1.15.1834.102.tar.xz) = 77f062eb9b8f860a9a566c8e70160c038a7f8a1a
4RMD160 (mozc-1.15.1785.102.tar.xz) = 972f26eaa824efe4a5a18106cae2acb68b28f869 4RMD160 (mozc-1.15.1834.102.tar.xz) = a9c7ed8cca7cc22152c2967e722764b26750aaec
5Size (mozc-1.15.1785.102.tar.xz) = 35417096 bytes 5Size (mozc-1.15.1834.102.tar.xz) = 32444272 bytes
6SHA1 (uim-mozc-334.tar.xz) = af86ce7a04b291629bd5dc56d5c1115332954a91 6SHA1 (uim-mozc-334.tar.xz) = af86ce7a04b291629bd5dc56d5c1115332954a91
7RMD160 (uim-mozc-334.tar.xz) = b988667237f65e61fabf3935f83f5d21a8059f4e 7RMD160 (uim-mozc-334.tar.xz) = b988667237f65e61fabf3935f83f5d21a8059f4e
8Size (uim-mozc-334.tar.xz) = 30544 bytes 8Size (uim-mozc-334.tar.xz) = 30544 bytes
9SHA1 (patch-base_base.gyp) = a54c372450cf2e64d1318ae434d1bfd79cc142d0 9SHA1 (patch-base_base.gyp) = d1b0c6133bcef09a58bb02da0154fe54a5e71564
10SHA1 (patch-base_cpu__stats.cc) = cda8bbcbc963d8ed635435375cc80ee5e7ca2191 10SHA1 (patch-base_cpu__stats.cc) = cda8bbcbc963d8ed635435375cc80ee5e7ca2191
11SHA1 (patch-base_iconv.cc) = 1bf65dfc6152bf152cbe2714835a61436df2a48b 11SHA1 (patch-base_iconv.cc) = 1bf65dfc6152bf152cbe2714835a61436df2a48b
12SHA1 (patch-base_logging.cc) = 96ee9d1426ef1cf946a00fb15c9754603ab15bb8 12SHA1 (patch-base_logging.cc) = 96ee9d1426ef1cf946a00fb15c9754603ab15bb8
13SHA1 (patch-base_mutex.cc) = aed8588d4ff7b057fed072097ef09ddbc2696d31 13SHA1 (patch-base_mutex.cc) = aed8588d4ff7b057fed072097ef09ddbc2696d31
14SHA1 (patch-base_mutex.h) = 6c3c8f0845f0fdad815c4877026894000d5eac2c 14SHA1 (patch-base_mutex.h) = 6c3c8f0845f0fdad815c4877026894000d5eac2c
15SHA1 (patch-base_password__manager.cc) = f16982447f54e397d1aa103260d8f4d10aa76f96 15SHA1 (patch-base_password__manager.cc) = f16982447f54e397d1aa103260d8f4d10aa76f96
16SHA1 (patch-base_process.cc) = abdd6a955e87506972e7f71fd4bc3a300f49b304 16SHA1 (patch-base_process.cc) = abdd6a955e87506972e7f71fd4bc3a300f49b304
17SHA1 (patch-base_run__level.cc) = 8aa169a8be51674898906740cb8f6103b99021b4 17SHA1 (patch-base_run__level.cc) = bf9897527494fda5e5f97366e2fd26a283225450
18SHA1 (patch-base_system__util.cc) = f3ef575a15cd518fe7d29264b39f775ccf502802 18SHA1 (patch-base_system__util.cc) = f3ef575a15cd518fe7d29264b39f775ccf502802
19SHA1 (patch-base_thread.h) = 8aaacbb1421cf0e886f3b58dfd2c653f3d82ef70 19SHA1 (patch-base_thread.h) = 8aaacbb1421cf0e886f3b58dfd2c653f3d82ef70
20SHA1 (patch-base_util.cc) = c473cb595535075b53c9c235fc28f5e7da26d087 20SHA1 (patch-base_util.cc) = c473cb595535075b53c9c235fc28f5e7da26d087
21SHA1 (patch-build__mozc.py) = a8b4596c9c5f86ca8dbbf3ea03e1873ff86baa00 21SHA1 (patch-build__mozc.py) = b6e94a43564cd4a7032cc9c6d5bd297453010d36
22SHA1 (patch-build__tools_mozc__version.py) = a6ff8a82b1328086b7d758f73a7d3c31e87bccc9 22SHA1 (patch-build__tools_mozc__version.py) = a6ff8a82b1328086b7d758f73a7d3c31e87bccc9
23SHA1 (patch-build__tools_util.py) = 6416884ba288d60eb8e558e8c5de7ef6e538b82e 23SHA1 (patch-build__tools_util.py) = 6416884ba288d60eb8e558e8c5de7ef6e538b82e
24SHA1 (patch-client_client.cc) = 7ca43dde3f207331005599653c6520667e3ca93c 24SHA1 (patch-client_client.cc) = 7ca43dde3f207331005599653c6520667e3ca93c
25SHA1 (patch-config_stats__config__util__test.cc) = db51e6619c5c04ac8fa50890825206ea922dccf2 25SHA1 (patch-config_stats__config__util__test.cc) = db51e6619c5c04ac8fa50890825206ea922dccf2
26SHA1 (patch-gui_base_locale__util.cc) = 7d1e9cf3c2c36590298496471a97b8c32010a30b 26SHA1 (patch-gui_base_locale__util.cc) = 7d1e9cf3c2c36590298496471a97b8c32010a30b
27SHA1 (patch-gui_config__dialog_config__dialog.cc) = aae18b7ea36fd5ff5758625875a04634ffdfd68a 27SHA1 (patch-gui_config__dialog_config__dialog.cc) = aae18b7ea36fd5ff5758625875a04634ffdfd68a
28SHA1 (patch-gui_config__dialog_keybinding__editor.cc) = 00a6e4bb2c07e3340e188f108f0285a3aa2aceb9 28SHA1 (patch-gui_config__dialog_keybinding__editor.cc) = 00a6e4bb2c07e3340e188f108f0285a3aa2aceb9
29SHA1 (patch-gui_config__dialog_keymap__editor.cc) = a78a4fb5c484e672b0cfecf38c6713cf74007cb5 29SHA1 (patch-gui_config__dialog_keymap__editor.cc) = a78a4fb5c484e672b0cfecf38c6713cf74007cb5
30SHA1 (patch-gui_dictionary__tool_dictionary__tool.cc) = 3652713857d03f847108952f2994ee44bfe62608 30SHA1 (patch-gui_dictionary__tool_dictionary__tool.cc) = 3652713857d03f847108952f2994ee44bfe62608
31SHA1 (patch-gui_gui.gyp) = 70b6d78ca5a482b9e8fa697dbb191cccbdde1c6a 31SHA1 (patch-gui_gui.gyp) = 70b6d78ca5a482b9e8fa697dbb191cccbdde1c6a
32SHA1 (patch-gui_qt__libraries.gypi) = e92be78947dcf66211c80169b864b7c9d057b3db 32SHA1 (patch-gui_qt__libraries.gypi) = e92be78947dcf66211c80169b864b7c9d057b3db
33SHA1 (patch-gui_word__register__dialog_word__register__dialog.cc) = 34a7cd2a99a0082f490c3f623c7c6a856c984f8b 33SHA1 (patch-gui_word__register__dialog_word__register__dialog.cc) = 34a7cd2a99a0082f490c3f623c7c6a856c984f8b
34SHA1 (patch-gyp_common.gypi) = 4859bc46c17088f29f0addd75a0af6b4f5fc3525 34SHA1 (patch-gyp_common.gypi) = 4859bc46c17088f29f0addd75a0af6b4f5fc3525
35SHA1 (patch-handwriting_handwriting.gyp) = 0261aef287b34f4a3c8424fb1af44720ae00a85c 35SHA1 (patch-handwriting_handwriting.gyp) = 0261aef287b34f4a3c8424fb1af44720ae00a85c
36SHA1 (patch-handwriting_zinnia.gyp) = d09ac17d17dabdbfdcb7c623193a5c72dbcacfbc 36SHA1 (patch-handwriting_zinnia.gyp) = d09ac17d17dabdbfdcb7c623193a5c72dbcacfbc
37SHA1 (patch-handwriting_zinnia__handwriting.cc) = dd9363f470bf4a27fed40602f02127cb130042b2 37SHA1 (patch-handwriting_zinnia__handwriting.cc) = dd9363f470bf4a27fed40602f02127cb130042b2
38SHA1 (patch-ipc_ipc__path__manager.cc) = c96fbac6d1d81ddd7f999c30bdc2539ee2df2564 38SHA1 (patch-ipc_ipc__path__manager.cc) = c96fbac6d1d81ddd7f999c30bdc2539ee2df2564
39SHA1 (patch-ipc_ipc__path__manager__test.cc) = 90ea81daef93dc1ad5cee792ced26a9a2939fbdf 39SHA1 (patch-ipc_ipc__path__manager__test.cc) = 90ea81daef93dc1ad5cee792ced26a9a2939fbdf
40SHA1 (patch-ipc_named__event.cc) = 92283261e7580569587e43156f13567b593c9a32 40SHA1 (patch-ipc_named__event.cc) = 92283261e7580569587e43156f13567b593c9a32
41SHA1 (patch-ipc_unix__ipc.cc) = d821deb2f38bf77bf6b364eb31d419c0a86c1a7f 41SHA1 (patch-ipc_unix__ipc.cc) = d821deb2f38bf77bf6b364eb31d419c0a86c1a7f
42SHA1 (patch-net_net.gyp) = 937b28ad663605373d6b772097318b17dbea2eea 42SHA1 (patch-net_net.gyp) = 937b28ad663605373d6b772097318b17dbea2eea
43SHA1 (patch-protobuf_genproto.gypi) = 601165a376bcd05983f87733285737ee043c13fe 
44SHA1 (patch-protobuf_protobuf.gyp) = c1b08a30b8f9b2ca0d7cac180891cf3d9bc257f3 43SHA1 (patch-protobuf_protobuf.gyp) = c1b08a30b8f9b2ca0d7cac180891cf3d9bc257f3
45SHA1 (patch-session_session.cc) = 0562f8646dc6f68e180d8ae98f00eeb0364fc473 44SHA1 (patch-session_session.cc) = 0562f8646dc6f68e180d8ae98f00eeb0364fc473
46SHA1 (patch-session_session__converter__interface.h) = 93bda6e51b9a9ac7146aa23ac0aa28bb017a4465 45SHA1 (patch-session_session__converter__interface.h) = 93bda6e51b9a9ac7146aa23ac0aa28bb017a4465
47SHA1 (patch-session_session__test.cc) = a256caec45a45f4eaab0555ecc18cea09c417d95 46SHA1 (patch-session_session__test.cc) = a256caec45a45f4eaab0555ecc18cea09c417d95
48SHA1 (patch-third__party_protobuf_post__process__dist.sh) = c54363572de0afc2c49b4ed06bc0eb329e4ad237 47SHA1 (patch-third__party_protobuf_post__process__dist.sh) = c54363572de0afc2c49b4ed06bc0eb329e4ad237
49SHA1 (patch-unix_ibus_gen__mozc__xml.py) = 566d567ae4f911766309e035697a23350f24bbf5 48SHA1 (patch-unix_ibus_gen__mozc__xml.py) = 566d567ae4f911766309e035697a23350f24bbf5
50SHA1 (patch-unix_ibus_ibus.gyp) = 2fc9309216270846f7ce33d1854d9d76e65e6e96 49SHA1 (patch-unix_ibus_ibus.gyp) = 2fc9309216270846f7ce33d1854d9d76e65e6e96
51SHA1 (patch-unix_ibus_mozc__engine.cc) = 2ce0a680a0fad1abdc646737b6b5a4c3a9e87e6e 

cvs diff -r1.3 -r1.4 pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp (expand / switch to unified diff)

--- pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp 2014/06/15 13:08:34 1.3
+++ pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp 2014/07/19 09:03:04 1.4
@@ -1,42 +1,13 @@ @@ -1,42 +1,13 @@
1$NetBSD: patch-base_base.gyp,v 1.3 2014/06/15 13:08:34 ryoon Exp $ 1$NetBSD: patch-base_base.gyp,v 1.4 2014/07/19 09:03:04 ryoon Exp $
2 2
3--- base/base.gyp.orig 2014-05-21 10:51:31.000000000 +0000 3--- base/base.gyp.orig 2014-07-06 07:03:03.000000000 +0000
4+++ base/base.gyp 4+++ base/base.gyp
5@@ -78,7 +78,7 @@ 5@@ -78,7 +78,7 @@
6 # shared among *host* binaries and *target* binaries. This means that 6 # shared among *host* binaries and *target* binaries. This means that
7 # you should implement *host* binaries by using limited libraries 7 # you should implement *host* binaries by using limited libraries
8 # which are also available on NDK. 8 # which are also available on NDK.
9- ['OS=="linux" and target_platform!="Android" and ' 9- ['OS=="linux" and target_platform!="Android" and '
10+ ['OS=="netbsd" or (OS=="linux" and target_platform!="Android") and ' 10+ ['OS=="netbsd" or (OS=="linux" and target_platform!="Android") and '
11 'not (target_platform=="NaCl" and _toolset=="target")', { 11 'not (target_platform=="NaCl" and _toolset=="target")', {
12 'defines': [ 12 'defines': [
13 'HAVE_LIBRT=1', 13 'HAVE_LIBRT=1',
14@@ -274,23 +274,23 @@ 
15 }, 
16 }], 
17 ['use_legacy_encryptor==1 and ' 
18- 'OS=="linux" and target_platform!="Android" and ' 
19+ 'OS=="netbsd" or (OS=="linux" and target_platform!="Android") and ' 
20 'not (target_platform=="NaCl" and _toolset=="target")', { 
21 'cflags': [ 
22- '<!@(<(pkg_config_command) --cflags-only-other openssl)', 
23+ '@OPENSSL_CFLAGS@', 
24 ], 
25 'defines': [ 
26 'HAVE_OPENSSL=1', 
27 ], 
28 'include_dirs': [ 
29- '<!@(<(pkg_config_command) --cflags-only-I openssl)', 
30+ '@OPENSSL_INC@', 
31 ], 
32 'link_settings': { 
33 'ldflags': [ 
34- '<!@(<(pkg_config_command) --libs-only-L openssl)', 
35+ '@OPENSSL_LDFLAGS@', 
36 ], 
37 'libraries': [ 
38- '<!@(<(pkg_config_command) --libs-only-l openssl)', 
39+ '@OPENSSL_LIBS@', 
40 ], 
41 }, 
42 }], 

cvs diff -r1.1 -r1.2 pkgsrc/inputmethod/mozc-server/patches/patch-base_run__level.cc (expand / switch to unified diff)

--- pkgsrc/inputmethod/mozc-server/patches/patch-base_run__level.cc 2013/04/29 09:52:17 1.1
+++ pkgsrc/inputmethod/mozc-server/patches/patch-base_run__level.cc 2014/07/19 09:03:04 1.2
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1$NetBSD: patch-base_run__level.cc,v 1.1 2013/04/29 09:52:17 ryoon Exp $ 1$NetBSD: patch-base_run__level.cc,v 1.2 2014/07/19 09:03:04 ryoon Exp $
2 2
3--- base/run_level.cc.orig 2013-03-29 04:33:43.000000000 +0000 3--- base/run_level.cc.orig 2014-07-06 07:03:03.000000000 +0000
4+++ base/run_level.cc 4+++ base/run_level.cc
5@@ -34,10 +34,10 @@ 5@@ -38,10 +38,10 @@
6 #include <aclapi.h> 6 #include <unistd.h>
7 #endif // OS_WIN 7 #endif // OS_MACOSX
8  8
9-#ifdef OS_LINUX 9-#ifdef OS_LINUX
10+#if defined(OS_LINUX) || defined(OS_NETBSD) 10+#if defined(OS_LINUX) || defined(OS_NETBSD)
11 #include <unistd.h> 11 #include <unistd.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13-#endif // OS_LINUX 13-#endif // OS_LINUX
14+#endif // OS_LINUX || OS_NETBSD 14+#endif // OS_LINUX || OS_NETBSD
15  15
16 #include "base/const.h" 16 #include "base/const.h"
17 #include "base/logging.h" 17 #include "base/logging.h"

cvs diff -r1.4 -r1.5 pkgsrc/inputmethod/mozc-server/patches/patch-build__mozc.py (expand / switch to unified diff)

--- pkgsrc/inputmethod/mozc-server/patches/patch-build__mozc.py 2014/01/19 01:18:50 1.4
+++ pkgsrc/inputmethod/mozc-server/patches/patch-build__mozc.py 2014/07/19 09:03:04 1.5
@@ -1,197 +1,172 @@ @@ -1,197 +1,172 @@
1$NetBSD: patch-build__mozc.py,v 1.4 2014/01/19 01:18:50 ryoon Exp $ 1$NetBSD: patch-build__mozc.py,v 1.5 2014/07/19 09:03:04 ryoon Exp $
2 2
3--- build_mozc.py.orig 2014-01-06 07:10:26.000000000 +0000 3--- build_mozc.py.orig 2014-07-14 10:14:21.000000000 +0000
4+++ build_mozc.py 4+++ build_mozc.py
5@@ -60,6 +60,7 @@ from build_tools.util import FindFileFro 5@@ -60,6 +60,7 @@ from build_tools.util import FindFileFro
6 from build_tools.util import GetNumberOfProcessors 6 from build_tools.util import GetNumberOfProcessors
7 from build_tools.util import GetRelPath 7 from build_tools.util import GetRelPath
8 from build_tools.util import IsLinux 8 from build_tools.util import IsLinux
9+from build_tools.util import IsNetBSD 9+from build_tools.util import IsNetBSD
10 from build_tools.util import IsMac 10 from build_tools.util import IsMac
11 from build_tools.util import IsWindows 11 from build_tools.util import IsWindows
12 from build_tools.util import PrintErrorAndExit 12 from build_tools.util import PrintErrorAndExit
13@@ -120,6 +121,8 @@ def GetBuildBaseName(options, target_pla 13@@ -121,6 +122,8 @@ def GetBuildShortBaseName(options, targe
14 build_base = 'out_mac' 14 build_base = 'out_mac'
15 elif target_platform == 'Linux': 15 elif target_platform == 'Linux':
16 build_base = 'out_linux' 16 build_base = 'out_linux'
17+ elif target_platform == 'NetBSD': 17+ elif target_platform == 'NetBSD':
18+ build_base = 'out_bsd' 18+ build_base = 'out_bsd'
19 elif target_platform == 'Android': 19 elif target_platform == 'Android':
20 build_base = 'out_android' 20 build_base = 'out_android'
21 elif target_platform == 'NaCl': 21 elif target_platform == 'NaCl':
22@@ -214,6 +217,14 @@ def GetGypFileNames(options): 22@@ -220,6 +223,14 @@ def GetGypFileNames(options):
23 if not PkgExists('ibus-1.0 >= 1.4.1'): 23 if not PkgExists('ibus-1.0 >= 1.4.1'):
24 logging.info('removing ibus.gyp.') 24 logging.info('removing ibus.gyp.')
25 gyp_file_names.remove('%s/unix/ibus/ibus.gyp' % SRC_DIR) 25 gyp_file_names.remove('%s/unix/ibus/ibus.gyp' % SRC_DIR)
26+ elif options.target_platform == 'NetBSD': 26+ elif options.target_platform == 'NetBSD':
27+ gyp_file_names.extend(glob.glob('%s/unix/*/*.gyp' % SRC_DIR)) 27+ gyp_file_names.extend(glob.glob('%s/unix/*/*.gyp' % SRC_DIR))
28+ # Add ibus.gyp if ibus version is >=1.4.1. 28+ # Add ibus.gyp if ibus version is >=1.4.1.
29+ if not PkgExists('ibus-1.0 >= 1.4.1'): 29+ if not PkgExists('ibus-1.0 >= 1.4.1'):
30+ logging.info('removing ibus.gyp.') 30+ logging.info('removing ibus.gyp.')
31+ gyp_file_names.remove('%s/unix/ibus/ibus.gyp' % SRC_DIR) 31+ gyp_file_names.remove('%s/unix/ibus/ibus.gyp' % SRC_DIR)
32+ elif options.target_platform == 'ChromeOS': 32+ elif options.target_platform == 'ChromeOS':
33+ gyp_file_names.extend(glob.glob('%s/unix/ibus/*.gyp' % SRC_DIR)) 33+ gyp_file_names.extend(glob.glob('%s/unix/ibus/*.gyp' % SRC_DIR))
34 elif options.target_platform == 'NaCl': 34 elif options.target_platform == 'NaCl':
35 # Add chrome NaCl Mozc gyp scripts. 35 # Add chrome NaCl Mozc gyp scripts.
36 gyp_file_names.append('%s/chrome/nacl/nacl_extension.gyp' % SRC_DIR) 36 gyp_file_names.append('%s/chrome/nacl/nacl_extension.gyp' % SRC_DIR)
37@@ -309,6 +320,8 @@ def AddTargetPlatformOption(parser): 37@@ -315,6 +326,8 @@ def AddTargetPlatformOption(parser):
38 # If you want Android build, specify "Android". 38 # If you want Android build, specify "Android".
39 if IsLinux(): 39 if IsLinux():
40 default_target = 'Linux' 40 default_target = 'Linux'
41+ elif IsNetBSD(): 41+ elif IsNetBSD():
42+ default_target = 'NetBSD' 42+ default_target = 'NetBSD'
43 elif IsWindows(): 43 elif IsWindows():
44 default_target = 'Windows' 44 default_target = 'Windows'
45 elif IsMac(): 45 elif IsMac():
46@@ -506,6 +519,14 @@ def ExpandMetaTarget(options, meta_targe 46@@ -512,6 +525,14 @@ def ExpandMetaTarget(options, meta_targe
47 SRC_DIR + '/gui/gui.gyp:mozc_tool'] 47 SRC_DIR + '/gui/gui.gyp:mozc_tool']
48 if PkgExists('ibus-1.0 >= 1.4.1'): 48 if PkgExists('ibus-1.0 >= 1.4.1'):
49 targets.append(SRC_DIR + '/unix/ibus/ibus.gyp:ibus_mozc') 49 targets.append(SRC_DIR + '/unix/ibus/ibus.gyp:ibus_mozc')
50+ elif target_platform == 'NetBSD': 50+ elif target_platform == 'NetBSD':
51+ targets = [SRC_DIR + '/server/server.gyp:mozc_server', 51+ targets = [SRC_DIR + '/server/server.gyp:mozc_server',
52+ SRC_DIR + '/renderer/renderer.gyp:mozc_renderer', 52+ SRC_DIR + '/renderer/renderer.gyp:mozc_renderer',
53+ SRC_DIR + '/gui/gui.gyp:mozc_tool'] 53+ SRC_DIR + '/gui/gui.gyp:mozc_tool']
54+ if PkgExists('ibus-1.0 >= 1.4.1'): 54+ if PkgExists('ibus-1.0 >= 1.4.1'):
55+ targets.append(SRC_DIR + '/unix/ibus/ibus.gyp:ibus_mozc') 55+ targets.append(SRC_DIR + '/unix/ibus/ibus.gyp:ibus_mozc')
56+ elif target_platform == 'ChromeOS': 56+ elif target_platform == 'ChromeOS':
57+ targets.append(SRC_DIR + '/unix/ibus/ibus.gyp:ibus_mozc') 57+ targets.append(SRC_DIR + '/unix/ibus/ibus.gyp:ibus_mozc')
58 elif target_platform == 'Mac': 58 elif target_platform == 'Mac':
59 targets = [SRC_DIR + '/mac/mac.gyp:DiskImage'] 59 targets = [SRC_DIR + '/mac/mac.gyp:DiskImage']
60 elif target_platform == 'Windows': 60 elif target_platform == 'Windows':
61@@ -531,7 +552,7 @@ def ParseBuildOptions(args=None, values= 61@@ -537,7 +558,7 @@ def ParseBuildOptions(args=None, values=
62 """Parses command line options for the build command.""" 62 """Parses command line options for the build command."""
63 parser = optparse.OptionParser(usage='Usage: %prog build [options]') 63 parser = optparse.OptionParser(usage='Usage: %prog build [options]')
64 AddCommonOptions(parser) 64 AddCommonOptions(parser)
65- if IsLinux(): 65- if IsLinux():
66+ if IsLinux() or IsNetBSD(): 66+ if IsLinux() or IsNetBSD():
67 default_build_concurrency = GetNumberOfProcessors() * 2 67 default_build_concurrency = GetNumberOfProcessors() * 2
68 parser.add_option('--jobs', '-j', dest='jobs', 68 parser.add_option('--jobs', '-j', dest='jobs',
69 default=('%d' % default_build_concurrency), 69 default=('%d' % default_build_concurrency),
70@@ -551,7 +572,7 @@ def ParseRunTestsOptions(args=None, valu 70@@ -566,7 +587,7 @@ def ParseRunTestsOptions(args=None, valu
71 parser = optparse.OptionParser( 71 parser = optparse.OptionParser(
72 usage='Usage: %prog runtests [options] [test_targets] [-- build options]') 72 usage='Usage: %prog runtests [options] [test_targets] [-- build options]')
73 AddCommonOptions(parser) 73 AddCommonOptions(parser)
74- if IsLinux(): 74- if IsLinux():
75+ if IsLinux() or ISNetBSD(): 75+ if IsLinux() or ISNetBSD():
76 default_build_concurrency = GetNumberOfProcessors() * 2 76 default_build_concurrency = GetNumberOfProcessors() * 2
77 parser.add_option('--jobs', '-j', dest='jobs', 77 parser.add_option('--jobs', '-j', dest='jobs',
78 default=('%d' % default_build_concurrency), 78 default=('%d' % default_build_concurrency),
79@@ -777,7 +798,8 @@ def GypMain(options, unused_args, _): 79@@ -787,7 +808,8 @@ def GypMain(options, unused_args, _):
80 gyp_options.extend(['-D', 'channel_dev=1']) 80 gyp_options.extend(['-D', 'channel_dev=1'])
81  81
82 def SetCommandLineForFeature(option_name, windows=False, mac=False, 82 def SetCommandLineForFeature(option_name, windows=False, mac=False,
83- linux=False, android=False, nacl=False): 83- linux=False, android=False, nacl=False):
84+ linux=False, android=False, nacl=False, 84+ linux=False, android=False, nacl=False,
85+ netbsd=False): 85+ netbsd=False):
86 """Updates an option like '--enable_foober' and add a -D argument for gyp. 86 """Updates an option like '--enable_foober' and add a -D argument for gyp.
87  87
88 This function ensures an option like '--enable_foober' exists and it has a 88 This function ensures an option like '--enable_foober' exists and it has a
89@@ -799,6 +821,8 @@ def GypMain(options, unused_args, _): 89@@ -809,6 +831,8 @@ def GypMain(options, unused_args, _):
90 option on Android platform. 90 option on Android platform.
91 nacl: A boolean which replesents the default value of the target 91 nacl: A boolean which replesents the default value of the target
92 option on NaCl. 92 option on NaCl.
93+ netbsd: boolean which replesents the default value of the target option 93+ netbsd: boolean which replesents the default value of the target option
94+ on NetBSD platform. 94+ on NetBSD platform.
95  95
96 Raises: 96 Raises:
97 ValueError: An error occurred when 'option_name' is empty. 97 ValueError: An error occurred when 'option_name' is empty.
98@@ -811,6 +835,7 @@ def GypMain(options, unused_args, _): 98@@ -821,6 +845,7 @@ def GypMain(options, unused_args, _):
99 'Mac': mac, 99 'Mac': mac,
100 'Linux': linux, 100 'Linux': linux,
101 'Android': android, 101 'Android': android,
102+ 'NetBSD' : netbsd, 102+ 'NetBSD' : netbsd,
103 'NaCl': nacl}[options.target_platform] 103 'NaCl': nacl}[options.target_platform]
104 enable_option_name = 'enable_%s' % option_name 104 enable_option_name = 'enable_%s' % option_name
105 enabled = options.ensure_value(enable_option_name, default_enabled) 105 enabled = options.ensure_value(enable_option_name, default_enabled)
106@@ -822,10 +847,12 @@ def GypMain(options, unused_args, _): 106@@ -832,10 +857,12 @@ def GypMain(options, unused_args, _):
107  107
108 SetCommandLineForFeature(option_name='cloud_handwriting', 108 SetCommandLineForFeature(option_name='cloud_handwriting',
109 linux=is_official_dev, 109 linux=is_official_dev,
110+ netbsd=is_official_dev, 110+ netbsd=is_official_dev,
111 windows=is_official_dev, 111 windows=is_official_dev,
112 mac=is_official_dev) 112 mac=is_official_dev)
113 SetCommandLineForFeature(option_name='http_client', 113 SetCommandLineForFeature(option_name='http_client',
114 linux=is_official, 114 linux=is_official,
115+ netbsd=is_official, 115+ netbsd=is_official,
116 windows=is_official, 116 windows=is_official,
117 mac=is_official, 117 mac=is_official,
118 android=is_official, 118 android=is_official,
119@@ -863,7 +890,8 @@ def GypMain(options, unused_args, _): 119@@ -873,7 +900,8 @@ def GypMain(options, unused_args, _):
120 else: 120 else:
121 gyp_options.extend(['-D', 'use_zinnia=NO']) 121 gyp_options.extend(['-D', 'use_zinnia=NO'])
122  122
123- if (options.target_platform == 'Linux' and 123- if (options.target_platform == 'Linux' and
124+ if ((options.target_platform == 'Linux' or 124+ if ((options.target_platform == 'Linux' or
125+ options.target_platform == 'NetBSD') and 125+ options.target_platform == 'NetBSD') and
126 '%s/unix/ibus/ibus.gyp' % SRC_DIR in gyp_file_names): 126 '%s/unix/ibus/ibus.gyp' % SRC_DIR in gyp_file_names):
127 gyp_options.extend(['-D', 'use_libibus=1']) 127 gyp_options.extend(['-D', 'use_libibus=1'])
128  128
129@@ -896,7 +924,7 @@ def GypMain(options, unused_args, _): 129@@ -906,7 +934,7 @@ def GypMain(options, unused_args, _):
130 # command for pkg-config. Here we catch the environment variable 130 # command for pkg-config. Here we catch the environment variable
131 # and use the specified command instead of actual pkg-config 131 # and use the specified command instead of actual pkg-config
132 # command. 132 # command.
133- if IsLinux(): 133- if IsLinux():
134+ if IsLinux() or IsNetBSD(): 134+ if IsLinux() or IsNetBSD():
135 gyp_options.extend(['-D', 'pkg_config_command=%s' % GetPkgConfigCommand()]) 135 gyp_options.extend(['-D', 'pkg_config_command=%s' % GetPkgConfigCommand()])
136 else: 136 else:
137 gyp_options.extend(['-D', 'pkg_config_command=']) 137 gyp_options.extend(['-D', 'pkg_config_command='])
138@@ -1049,6 +1077,41 @@ def BuildOnMac(options, targets, origina 138@@ -1050,6 +1078,25 @@ def BuildOnMac(options, targets, origina
139 '-parallelizeTargets', 139 '-parallelizeTargets',
140 'BUILD_WITH_GYP=1']) 140 'BUILD_WITH_GYP=1'])
141  141
142+def BuildOnBSD(options, targets, unused_original_directory_name): 142+def BuildOnBSD(options, targets, unused_original_directory_name):
143+ """Build the targets on *BSD.""" 143+ """Build the targets on BSD."""
144+ target_names = [] 144+ target_names = []
145+ for target in targets: 145+ for target in targets:
146+ (unused_gyp_file_name, target_name) = ( 146+ (unused_gyp_file_name, target_name) = (
147+ CanonicalTargetToGypFileAndTargetName(target)) 147+ CanonicalTargetToGypFileAndTargetName(target))
148+ target_names.append(target_name) 148+ target_names.append(target_name)
149+ 149+
150+ make_command = os.getenv('BUILD_COMMAND', 'make') 150+ ninja = 'ninja'
151+ 151+ if hasattr(options, 'android_device'):
152+ envvars = [ 152+ # Only for android testing.
153+ 'CFLAGS', 153+ os.environ['ANDROID_DEVICES'] = options.android_device
154+ 'CXXFLAGS', 
155+ 'CXX', 
156+ 'CC', 
157+ 'AR', 
158+ 'AS', 
159+ 'RANLIB', 
160+ 'LD', 
161+ ] 
162+ for envvar in envvars: 
163+ if envvar in os.environ: 
164+ os.environ[envvar] = os.getenv(envvar) 
165+ 
166+ # set output directory 
167+ os.environ['builddir_name'] = 'out_bsd' 
168+ 
169+ build_args = ['-j%s' % options.jobs, 
170+ 'MAKE_JOBS=%s' % options.jobs, 
171+ 'BUILDTYPE=%s' % options.configuration] 
172+ build_args.append('builddir_name=%s' % 
173+ GetBuildBaseName(options, 
174+ GetMozcVersion().GetTargetPlatform())) 
175+ 154+
 155+ short_basename = GetBuildShortBaseName(options,
 156+ GetMozcVersion().GetTargetPlatform())
 157+ make_command = ninja
 158+ build_args = ['-j %s' % options.jobs,
 159+ '-C', '%s/%s' % (short_basename, options.configuration)]
176+ RunOrDie([make_command] + build_args + target_names) 160+ RunOrDie([make_command] + build_args + target_names)
177  161
178 def BuildOnWindows(targets): 162 def BuildOnWindows(targets):
179 """Build the target on Windows.""" 163 """Build the target on Windows."""
180@@ -1076,6 +1139,8 @@ def BuildMain(options, targets, original 164@@ -1077,6 +1124,8 @@ def BuildMain(options, targets, original
181 BuildOnMac(options, targets, original_directory_name) 165 BuildOnMac(options, targets, original_directory_name)
182 elif IsLinux(): 166 elif IsLinux():
183 BuildOnLinux(options, targets, original_directory_name) 167 BuildOnLinux(options, targets, original_directory_name)
184+ elif IsNetBSD(): 168+ elif IsNetBSD():
185+ BuildOnBSD(options, targets, original_directory_name) 169+ BuildOnBSD(options, targets, original_directory_name)
186 elif IsWindows(): 170 elif IsWindows():
187 BuildOnWindows(targets) 171 BuildOnWindows(targets)
188 else: 172 else:
189@@ -1341,7 +1406,7 @@ def CleanBuildFilesAndDirectories(option 
190 elif IsMac(): 
191 directory_names.extend(glob.glob(os.path.join(gyp_directory_name, 
192 '*.xcodeproj'))) 
193- elif IsLinux(): 
194+ elif IsLinux() or IsNetBSD(): 
195 file_names.extend(glob.glob(os.path.join(gyp_directory_name, 
196 '*.target.mk'))) 
197 file_names.extend(glob.glob(os.path.join(gyp_directory_name, 

File Deleted: pkgsrc/inputmethod/mozc-server/patches/Attic/patch-protobuf_genproto.gypi

File Deleted: pkgsrc/inputmethod/mozc-server/patches/Attic/patch-unix_ibus_mozc__engine.cc