fcitx: update to 4.2.9.7.
This commit is contained in:
parent
86fa5a5141
commit
e45a412e13
1 changed files with 15 additions and 14 deletions
|
@ -1,24 +1,25 @@
|
|||
# Template file for 'fcitx'
|
||||
pkgname=fcitx
|
||||
reverts="4.2.9.7_1"
|
||||
version=4.2.9.6
|
||||
revision=4
|
||||
version=4.2.9.7
|
||||
revision=2
|
||||
build_style=cmake
|
||||
short_desc="Flexible Context-aware Input Tool with eXtension"
|
||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||
license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
|
||||
homepage="https://fcitx-im.org/"
|
||||
distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz"
|
||||
checksum=a59351bbae42d62aad61bd604154b8a49b822b3337ff4d2df5622881f680d943
|
||||
checksum=cf333b2a90be616ffed8b83438dfe3dc0e22ecf034b9f651167203ecbe3f6f8f
|
||||
|
||||
hostmakedepends="pkg-config doxygen gobject-introspection extra-cmake-modules qt-qmake"
|
||||
makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
|
||||
json-c-devel opencc-devel
|
||||
libxkbfile-devel icu-devel qt-devel dbus-devel gtk+-devel gtk+3-devel"
|
||||
lib32disabled=yes
|
||||
configure_args="-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
|
||||
-DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DENABLE_QT_IM_MODULE=ON
|
||||
-DFORCE_ENCHANT=ON"
|
||||
-DFORCE_ENCHANT=ON -DENABLE_TEST=ON"
|
||||
|
||||
# Warning: do NOT enable backtrace for musl, do NOT add libexecinfo-devel
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) configure_args+=" -DENABLE_BACKTRACE=OFF";;
|
||||
esac
|
||||
|
@ -30,18 +31,18 @@ fi
|
|||
|
||||
pre_configure() {
|
||||
# include FcitxMacro.cmake without invoking fcitx4-config
|
||||
sed -i -e 's;INCLUDE(${FCITX4_PREFIX}/share/cmake/fcitx;INCLUDE(${CMAKE_CURRENT_LIST_DIR};' \
|
||||
cmake/FcitxConfig.cmake
|
||||
vsed -i -e 's;INCLUDE(${FCITX4_PREFIX}/share/cmake/fcitx;INCLUDE(${CMAKE_CURRENT_LIST_DIR};' \
|
||||
cmake/FcitxConfig.cmake
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# use host binaries
|
||||
sed -i -e 's;${PROJECT_BINARY_DIR}/tools/dev;/usr/lib/fcitx/libexec;' \
|
||||
cmake/FcitxMacro.cmake
|
||||
sed -i -e 's;${PROJECT_BINARY_DIR}/src/module/spell/dict;/usr/lib/fcitx/libexec;' \
|
||||
src/module/spell/dict/CMakeLists.txt
|
||||
sed -i -e 's;${PROJECT_BINARY_DIR}/tools/cli;/usr/bin;' \
|
||||
src/im/pinyin/data/CMakeLists.txt \
|
||||
src/im/table/data/CMakeLists.txt
|
||||
vsed -i -e 's;${PROJECT_BINARY_DIR}/tools/dev;/usr/lib/fcitx/libexec;' \
|
||||
cmake/FcitxMacro.cmake
|
||||
vsed -i -e 's;${PROJECT_BINARY_DIR}/src/module/spell/dict;/usr/lib/fcitx/libexec;' \
|
||||
src/module/spell/dict/CMakeLists.txt
|
||||
vsed -i -e 's;${PROJECT_BINARY_DIR}/tools/cli;/usr/bin;' \
|
||||
src/im/pinyin/data/CMakeLists.txt \
|
||||
src/im/table/data/CMakeLists.txt
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue