misc/fcitx5-chinese-addons: Updated for version 5.1.0.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
ltlnx 2023-09-07 20:09:43 +09:00 committed by Willy Sudiarto Raharjo
parent 4a6ad399f2
commit 66e1fd5b9c
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 37 additions and 5 deletions

View File

@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fcitx5-chinese-addons
VERSION=${VERSION:-5.0.17}
BUILD=${BUILD:-2}
VERSION=${VERSION:-5.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -74,6 +74,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/patches/disable-lua-req.patch
mkdir -p build
cd build
cmake \

View File

@ -1,8 +1,8 @@
PRGNAM="fcitx5-chinese-addons"
VERSION="5.0.17"
VERSION="5.1.0"
HOMEPAGE="https://github.com/fcitx/fcitx5-chinese-addons"
DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-5.0.17_dict.tar.xz"
MD5SUM="e8453b2974f6e5e2149e5b14302c52bc"
DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-5.1.0_dict.tar.xz"
MD5SUM="958bcf0ca84327235e590c5e6946d6d9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fcitx5 fcitx5-qt libime"

View File

@ -0,0 +1,30 @@
From 37592053f8ba71f08dde2058c7763f28809e401e Mon Sep 17 00:00:00 2001
From: Weng Xuetian <wengxt@gmail.com>
Date: Sun, 20 Aug 2023 09:59:10 -0700
Subject: [PATCH] fix build without lua
---
im/pinyin/pinyin.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/im/pinyin/pinyin.cpp b/im/pinyin/pinyin.cpp
index de428ed..360a691 100644
--- a/im/pinyin/pinyin.cpp
+++ b/im/pinyin/pinyin.cpp
@@ -826,6 +826,8 @@ std::string PinyinEngine::evaluateCustomPhrase(InputContext *inputContext,
if (!result.empty()) {
return result;
}
+
+#ifdef FCITX_HAS_LUA
if (stringutils::startsWith(key, "lua:")) {
RawConfig config;
auto ret = imeapi()->call<ILuaAddon::invokeLuaFunction>(
@@ -834,6 +836,7 @@ std::string PinyinEngine::evaluateCustomPhrase(InputContext *inputContext,
return ret.value();
}
}
+#endif
return "";
}