Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

257.46. ktexteditor-6.31.0

KDE Frameworks: the KatePart text editor component

6.31.0-1 · LGPL-2.0-or-later AND LGPL-2.0-only AND MIT · 3.3 SBU · 6.5 MiB, 73 files · 43_toolkits, 113 of 344 · ports/core/kf6/ktexteditor

Homepage: https://invent.kde.org/frameworks/ktexteditor

Why it is in KDOS. The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:

The libraries KDE applications are built on, without Plasma.

KTextEditor is KDE’s text editor component, the editing part of kate and kdevelop: syntax highlighting through syntax-highlighting, code folding, multiple cursors, the vi input mode, spell checking through sonnet, search and replace, printing and a JavaScript scripting interface over Qt Qml. It is both a library and a kparts part, so rkward, cantor and other programs embed the same editor.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtspeech, karchive, kauth, kcolorscheme, kconfig, kguiaddons, ki18n, kio, kparts, sonnet, syntax-highlighting.

Required by (12): cantor, kate, kdev-php, kdev-python, kdevelop, kig, kompare, plasma-sdk, plasma-workspace, rkward, rocs, umbrello.

Sources: ktexteditor-6.31.0.tar.xz (2.9 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install ktexteditor'

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 ENABLE_KAUTH=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_EditorConfig=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: ktexteditor-script-tester6.

Libraries: libKF6TextEditor.so.

Directories: /usr/include/KF6/KTextEditor, /usr/lib/cmake/KF6TextEditor, /usr/share/licenses/ktexteditor.

The configure requires Qt Text to Speech, for reading the selection aloud, so qt6-qtspeech is in depends with qt6-qtdeclarative for the scripting interface.