mozc: update to 2.28.4800.102.

This commit is contained in:
Đoàn Trần Công Danh 2022-08-10 18:12:50 +07:00
parent 0a87c670f3
commit 3ef5b58901
5 changed files with 16 additions and 56 deletions

View file

@ -1,11 +0,0 @@
--- a/mozc/src/unix/fcitx/fcitx_mozc.cc
+++ b/mozc/src/unix/fcitx/fcitx_mozc.cc
@@ -413,7 +413,7 @@ void FcitxMozc::InitializeBar()
);
if ( mozc::FileUtil::FileExists ( mozc::FileUtil::JoinPath (
- mozc::SystemUtil::GetServerDirectory(), mozc::kMozcTool ) ) )
+ mozc::SystemUtil::GetServerDirectory(), mozc::kMozcTool ) ).ok() )
{
FcitxUIRegisterComplexStatus(instance, this,
"mozc-tool",

View file

@ -5,7 +5,7 @@
IBUS_MOZC_INSTALL_DIR = "/usr/share/ibus-mozc"
IBUS_MOZC_ICON_PATH = IBUS_MOZC_INSTALL_DIR + "/product_icon.png"
-IBUS_MOZC_PATH = "/usr/lib/ibus-mozc/ibus-engine-mozc"
+IBUS_MOZC_PATH = "/usr/lib/ibus/ibus-engine-mozc"
+IBUS_MOZC_PATH = "/usr/libexec/ibus-engine-mozc"
MACOS_BUNDLE_ID_PREFIX = "org.mozc.inputmethod.Japanese"
MACOS_MIN_OS_VER = "10.12"

View file

@ -1,13 +0,0 @@
--- a/mozc/src/unix/fcitx/surrounding_text_util.cc
+++ b/mozc/src/unix/fcitx/surrounding_text_util.cc
@@ -34,6 +34,10 @@
#include <fcitx/instance.h>
#include <fcitx/module/clipboard/fcitx-clipboard.h>
+#ifdef InvokeFunction
+#undef InvokeFunction
+#endif
+
#include "base/port.h"
#include "base/logging.h"
#include "base/util.h"

View file

@ -1,20 +0,0 @@
--- a/gyp/pylib/gyp/common.py
+++ b/gyp/pylib/gyp/common.py
@@ -4,7 +4,7 @@
from __future__ import with_statement
-import collections
+import collections.abc
import errno
import filecmp
import os.path
@@ -494,7 +494,7 @@
# Based on http://code.activestate.com/recipes/576694/.
-class OrderedSet(collections.MutableSet):
+class OrderedSet(collections.abc.MutableSet):
def __init__(self, iterable=None):
self.end = end = []
end += [None, end, end] # sentinel node for doubly linked list

View file

@ -2,10 +2,12 @@
pkgname=mozc
# src/data/version/mozc_version_template.bzl
# revision is always 102, template always says 100 ;)
version=2.26.4632.102
revision=4
_commit=06024d8567dd96eea7a1745e82a5d699a56f4ba5
version=2.28.4800.102
revision=1
_commit=056163a5fddbb261b258beb8444998e4882f0cc5
_abseil=20211102.0
_gyp=0.1+20220404git9ecf45e
_jpn_dict=e5b3425575734c323e1d947009dd74709437b684
create_wrksrc=yes
build_wrksrc=mozc/src
hostmakedepends="gettext ninja pkg-config protobuf protobuf-devel
@ -20,12 +22,12 @@ homepage="https://github.com/google/mozc"
distfiles="
https://github.com/fcitx/mozc/archive/$_commit.tar.gz
https://github.com/abseil/abseil-cpp/archive/refs/tags/$_abseil.tar.gz
${DEBIAN_SITE}/main/g/gyp/gyp_0.1+20200513gitcaa6002.orig.tar.gz
https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/e5b3425575734c323e1d947009dd74709437b684.tar.gz
${DEBIAN_SITE}/main/g/gyp/gyp_$_gyp.orig.tar.xz
https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/$_jpn_dict.tar.gz
"
checksum="9a143d83fcd26921c20b00759b0b3d4994b78a0b7570cf818742acb5c45c1527
checksum="259d87bfd7535ad03bd554185677d7345a90166353a6db0b6a3606183ad2923d
dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4
8d531bc7d3302461d76a32367453cec60ed08b455f27a53d8f313d81761713a8
0325006f012db66dfa27bf7bb048f3fe38f96e512ebe065930cbc70bcdc06bc9
0b6efee0eebac2c1a8eeea333278aa40fcef7846bba9a379962c6e567e7e3dc1"
CXXFLAGS="-D_GNU_SOURCE"
@ -58,7 +60,7 @@ post_extract() {
do_configure() {
GYP_DEFINES="
document_dir=/usr/share/licenses/${pkgname}
ibus_mozc_path=/usr/lib/ibus/ibus-engine-mozc
ibus_mozc_path=/usr/libexec/ibus-engine-mozc
use_libprotobuf=1
use_libzinnia=1
${XBPS_TARGET_NO_ATOMIC8:+use_libatomic=1}
@ -69,7 +71,9 @@ do_build() {
local _file _lang
local _modir=out_linux/Release/gen/unix/fcitx5/po
python3 build_mozc.py build -c Release \
python3 build_mozc.py build \
--use_gyp_for_ibus_build \
-c Release \
server/server.gyp:mozc_server \
gui/gui.gyp:mozc_tool \
unix/emacs/emacs.gyp:mozc_emacs_helper \
@ -104,7 +108,7 @@ do_install() {
# Qt5 tools
vinstall out_linux/Release/mozc_tool 755 usr/lib/mozc
# ibus
vinstall out_linux/Release/ibus_mozc 755 usr/lib/ibus ibus-engine-mozc
vinstall out_linux/Release/ibus_mozc 755 usr/libexec ibus-engine-mozc
vinstall out_linux/Release/gen/unix/ibus/mozc.xml 644 \
usr/share/ibus/component
vinstall data/images/product_icon_32bpp-128.png 644 \
@ -168,7 +172,7 @@ ibus-mozc_package() {
depends="mozc-base-${version}_${revision} ibus>=1.5.14"
lib32disabled=yes
pkg_install() {
vmove usr/lib/ibus
vmove usr/libexec
vmove usr/lib/mozc/mozc_renderer
vmove "usr/share/ibus*"
}