347.8. fcitx5-qt-5.1.16
Fcitx 5 input-method module and helper libraries for Qt 6
5.1.16-1 · LGPL-2.1-or-later AND BSD-3-Clause · 1.3 SBU · 1.6 MiB, 35 files · 50_desktop, 21 of 92 · ports/core/input/fcitx5-qt
Homepage: https://github.com/fcitx/fcitx5-qt
Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:
Fcitx 5's Qt 6 input-method module, so Qt applications reach the input method KWin starts.
fcitx5-qt is fcitx5’s Qt 6 side: the input-context plugin fcitx5 that a Qt program loads when QT_IM_MODULE=fcitx is set, and the two libraries Fcitx’s own Qt tools are built on, Fcitx5Qt6DBusAddons (the D-Bus client for the running fcitx5) and Fcitx5Qt6WidgetsAddons (the key-sequence and key-list widgets). It also installs the Quick Phrase editor and fcitx5-qt6-gui-wrapper, which open an addon’s own configuration window.
Under Plasma, KWin starts fcitx5 as the session’s input method and a Qt 6 program reaches it through the compositor’s text-input-v3, with QT_IM_MODULE unset (see Input methods). The plugin is for a program that sets the variable itself; the libraries are what fcitx5-configtool, the System Settings page, links.
Depends on: cmake, ninja, extra-cmake-modules, fcitx5, qt6-qtbase, qt6-qtwayland, libxkbcommon, gettext.
Required by (2): fcitx5-configtool, kde-plasma.
Sources: fcitx5-qt-5.1.16.tar.zst (130.8 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install fcitx5-qt'
build.sh:
tar -xf "$PORT_SRC/$name-$version.tar.zst" --strip-components=1
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D ENABLE_QT4=OFF \
-D ENABLE_QT5=OFF \
-D ENABLE_QT6=ON \
-D ENABLE_X11=OFF \
-D ENABLE_QT6_WAYLAND_WORKAROUND=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D ENABLE_QT4=OFF— With-D ENABLE_QT5=OFF: build for Qt 6 alone. There is no Qt 4 in the tree, and a Qt 5 plugin would make qt5-qtbase a dependency of the input method for the Qt 5 programs that already reach fcitx5 overtext-input-v2.-D ENABLE_QT6=ON— The Qt 6 plugin and libraries, the whole of this package.-D ENABLE_X11=OFF— Build the plugin without its xcb code, which reads the X keyboard state and window positions for a Qt program on thexcbplatform. fcitx5 itself is built without X11, so a program running under Xwayland has no input method either way.-D ENABLE_QT6_WAYLAND_WORKAROUND=ON— Upstream’s default, named because it adds qt6-qtwayland’s client and private headers to the requirements: the plugin then asks the Wayland platform for the focused surface, so the candidate window is placed at the caret.
Programs: fcitx5-qt6-immodule-probing.
Libraries: libFcitx5Qt6DBusAddons.so, libFcitx5Qt6WidgetsAddons.so.
Directories: /usr/include/Fcitx5Qt6, /usr/lib/cmake/Fcitx5Qt6DBusAddons, /usr/lib/cmake/Fcitx5Qt6WidgetsAddons, /usr/lib/fcitx5/qt6, /usr/share/licenses/fcitx5-qt.
The source is a .tar.zst, which kpkg copies into the work directory whole instead of unpacking; build.sh unpacks it, as the other fcitx5 recipes do.
The project includes GNUInstallDirs itself and never reads ECM’s KDE_INSTALL_* names, so the library directory is passed as CMAKE_INSTALL_LIBDIR.