301.5. grantlee-editor-26.08.2
Theme editors for KMail message headers and KAddressBook contact views and printouts
26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 AND MIT · 1.4 SBU · 1.0 MiB, 20 files · 44_apps, 279 of 422 · ports/core/mail/grantlee-editor
Homepage: https://invent.kde.org/pim/grantlee-editor
Three editors for the templates KDE PIM draws with. The Header Theme Editor writes themes for the headers above a message in kmail; the Contact Theme Editor and the Contact Print Theme Editor write the themes kaddressbook uses to show and to print a contact. Each theme is a KTextTemplate template with its desktop file, handled through grantleetheme, and each editor shows a live preview in a qt6-qtwebengine view while the template is edited in ktextaddons’ editor with syntax-highlighting.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, karchive, kcrash, kdbusaddons, kdoctools, ki18n, kio, kmime, kxmlgui, syntax-highlighting, ktextaddons, akonadi-contacts, grantleetheme, kimap, messagelib, pimcommon, breeze-icons.
Required by (1): kde-gear-pim.
Sources: grantlee-editor-26.08.2.tar.xz (131.5 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install grantlee-editor'
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 CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— compile none of the translation catalogues inpo/. kpkg removes every non-English catalogue from the package anyway (see size and language policy), so this only saves build time.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— the editors’ handbooks are built only when kdoctools is found; required, a missing kdoctools stops the configure instead of quietly dropping them.
Programs: contactprintthemeeditor, contactthemeeditor, headerthemeeditor.
Libraries: libgrantleethemeeditor.so.
Directories: /usr/share/doc/HTML/en/contactthemeeditor, /usr/share/doc/HTML/en/headerthemeeditor, /usr/share/licenses/grantlee-editor.
The three entries name the icons kmail and kaddressbook, which the port does not install; breeze-icons, in depends for run time only, draws both.
Each program sets its desktop file name in main.cpp (org.kde.headerthemeeditor, org.kde.contactthemeeditor, org.kde.contactprintthemeeditor), which is the name of its entry; the entries carry no StartupWMClass, so the task manager matches each window to its entry with no change.
KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the handbooks in every translated language, and kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package.