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
-D ENABLE_KAUTH=ON— Save a file the user may not write through kauth: the editor asks polkit for the right, and a helper writes the file as root. It is upstream’s default on Linux; on, the configure requires KF6Auth.-D CMAKE_DISABLE_FIND_PACKAGE_EditorConfig=ON— Never look for the EditorConfig C library, with which the editor would apply a project’s.editorconfigsettings (indentation, line endings) to the files it opens. It is not a port, so the switch keeps the result from depending on what is installed in the build root.-D KF_SKIP_PO_PROCESSING=ON— Build none of the gettext catalogues underpo/, whichki18n_install()would compile into.mofiles. The strings in the source are English, and the package-wide English-only rule (see Size and language policy) would remove every catalogue in another language.
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.