257.47. ktexttemplate-6.31.0
KDE Frameworks: text template engine, for KDevelop's templates
6.31.0-1 · LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-2-Clause · 1.4 SBU · 1.9 MiB, 68 files · 43_toolkits, 114 of 344 · ports/core/kf6/ktexttemplate
Homepage: https://invent.kde.org/frameworks/ktexttemplate
KTextTemplate is a string template engine in the style of Django’s: a template with variables, filters, {% if %} and {% for %} tags and inheritance is rendered against a context of Qt values. kdevelop fills its file and project templates with it, rocs links it, and KDE PIM’s message themes are rendered through it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative.
Required by (8): akonadi-contacts, grantleetheme, kcalutils, kdepim-addons, kdevelop, khelpcenter, messagelib, rocs.
Sources: ktexttemplate-6.31.0.tar.xz (830.2 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install ktexttemplate'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Qml=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Qml=ON— Make Qt Qml, from qt6-qtdeclarative, a requirement. Upstream looks for it as optional and, when it finds it, builds the scriptable tags and filters, written in JavaScript; without it they are left out with only a line in the configure summary.
Libraries: libKF6TextTemplate.so.
Directories: /usr/include/KF6/KTextTemplate, /usr/lib/cmake/KF6TextTemplate, /usr/share/licenses/ktexttemplate.
The source carries no translations, so the recipe has no KF_SKIP_PO_PROCESSING.