285.1. kate-26.08.2
KDE advanced text editor — tabs, split views, LSP, projects, search, terminal
26.08.2-1 · LGPL-2.0-or-later AND LGPL-2.0-only AND GPL-2.0-or-later AND MIT · 10.0 SBU · 19.3 MiB, 178 files · 44_apps, 76 of 422 · ports/core/editors/kate
Homepage: https://kate-editor.org/
Kate is KDE’s advanced text editor: tabs and split views, sessions and projects, a language server client, search and replace across folders, a terminal panel through konsole’s part, Git integration, a SQL client and a GPG plugin. Its editing component is ktexteditor’s.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, karchive, kbookmarks, kconfig, kcoreaddons, kcrash, kdbusaddons, kdoctools, kguiaddons, ki18n, kiconthemes, kio, knewstuff, ktexteditor, kwidgetsaddons, kwindowsystem, qtkeychain, gpgmepp, libintl.
Required by (1): kde-gear-core.
Sources: kate-26.08.2.tar.xz (8.3 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kate'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D USE_DBUS=ON \
-D BUILD_kwrite=OFF \
-D BUILD_compiler-explorer=OFF \
-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Keychain=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Gpgmepp=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
if [ -d "$PKG/usr/share/man" ]; then
find "$PKG/usr/share/man" -mindepth 1 -maxdepth 1 ! -name 'man*' -exec rm -rf {} +
fi
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).-D USE_DBUS=ON— Builds the D-Bus interface through whichkateopens a file in the instance already running. Upstream’s default on Linux, named.-D BUILD_kwrite=OFF— Leaves out KWrite, built from the same tree. KWrite is Kate’s editing component in a simpler window, so building Kate alone gives the same editor.-D BUILD_compiler-explorer=OFF— Leaves out the Compiler Explorer plugin, which sends the open file to the compiler-explorer web service and shows the assembly that comes back.-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON— No KUserFeedback, through which Kate would offer to submit usage statistics. It is not a port; refusing it means a stray copy in the build root cannot be picked up.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Keychain=ON— Requires qtkeychain, in which the SQL plugin keeps database passwords. Upstream leaves the plugin out without it.-D CMAKE_REQUIRE_FIND_PACKAGE_Gpgmepp=ON— Requires gpgmepp for the GPG plugin, which signs and encrypts the open document. Upstream leaves the plugin out with a warning without it.
Programs: exec_inspect.sh, kate.
Libraries: libkateprivate.so.
Directories: /usr/share/doc/HTML/en/kate, /usr/share/doc/HTML/en/katepart, /usr/share/kateproject, /usr/share/katexmltools, /usr/share/licenses/kate.
The loop at the end of build.sh removes every directory under /usr/share/man that is not a man<section> one, where kdoctools_install() puts the translated manual pages; kpkg’s language rule removes the translated handbooks.