app-i18n/fcitx-configtool: fix build with USE="-X"

Closes: https://github.com/gentoo/gentoo/pull/44371
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
jinqiang zhang 2025-10-29 14:13:54 +08:00 committed by Yixun Lan
parent 821402ed1a
commit 0e207efb77
No known key found for this signature in database
GPG Key ID: 31AAEA47594DBBED
2 changed files with 18 additions and 1 deletions

View File

@ -55,7 +55,10 @@ BDEPEND="
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}"/${PN}-make-x11-dependencies-optional.patch )
PATCHES=(
"${FILESDIR}"/${PN}-make-x11-dependencies-optional.patch
"${FILESDIR}"/${PN}-remove-unused-xkbfile.patch
)
src_configure() {
local mycmakeargs=(

View File

@ -0,0 +1,14 @@
xkbfile looks like an unused dependency, remove it to fix USE="-X" build
diff --git a/src/lib/configlib/CMakeLists.txt b/src/lib/configlib/CMakeLists.txt
index 6c257c6..1c204d7 100644
--- a/src/lib/configlib/CMakeLists.txt
+++ b/src/lib/configlib/CMakeLists.txt
@@ -19,6 +19,6 @@ target_include_directories(configlib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ${CMA
target_link_libraries(configlib
Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui Fcitx5Qt${QT_MAJOR_VERSION}::DBusAddons
Fcitx5::Core Fcitx5::Utils
- Fcitx5Qt${QT_MAJOR_VERSION}::WidgetsAddons PkgConfig::XkbFile
+ Fcitx5Qt${QT_MAJOR_VERSION}::WidgetsAddons
)