283.11. plasma-sdk-6.8.2
Plasma development tools — plasmoidviewer, lookandfeelexplorer, themeexplorer, iconexplorer, engineexplorer and kqml
6.8.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-only AND BSD-2-Clause · 9.2 SBU · 4.3 MiB, 46 files · 44_apps, 54 of 422 · ports/core/devtools/plasma-sdk
Homepage: https://invent.kde.org/plasma/plasma-sdk
The Plasma SDK is the set of tools for writing Plasma themes, widgets and global themes: plasmoidviewer runs one widget in a window at a chosen form factor and location, lookandfeelexplorer edits a global theme’s metadata and previews, plasmathemeexplorer shows every element of a Plasma style, iconexplorer searches the installed icon themes, plasmaengineexplorer browses Plasma 5 Support’s data engines, and kqml runs a QML file with KDE’s QML engine set up. The kde-gear-devtools collection installs the package with the other developer tools; no port builds against it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qt5compat, karchive, kcolorscheme, kcompletion, kconfig, kcoreaddons, kcrash, kdbusaddons, ki18n, kiconthemes, kitemmodels, kio, kpackage, ktexteditor, kwidgetsaddons, ksvg, kdoctools, kirigami, kdeclarative, kcmutils, knewstuff, libplasma, plasma5support.
Required by (1): kde-gear-devtools.
Sources: plasma-sdk-6.8.2.tar.xz (359.9 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 plasma-sdk'
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 \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Core5Compat=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— Make kdoctools a requirement. Upstream looks for it as optional and, without it, drops the manual pages ofplasmoidviewer,kqmlandplasmaengineexplorer, the only documentation the tools have (see Manual pages).-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Core5Compat=ON— Make qt6-qt5compat a requirement. Upstream looks for it quietly and links nothing from it, but the theme explorer’s line-edit preview importsQt5Compat.GraphicalEffectsat run time, and without the moduleplasmathemeexplorercannot draw that element.
Programs: iconexplorer, kqml, lookandfeelexplorer, plasmaengineexplorer, plasmathemeexplorer, plasmoidviewer.
Directories: /usr/share/licenses/plasma-sdk, /usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell.
The package is an application, so it sits in the applications phase and its depends names only the Plasma libraries (libplasma, plasma5support) and frameworks it links. plasmoidviewer’s shell package and lookandfeelexplorer load QML modules of the Plasma session at run time (org.kde.plasma.shell.panel, org.kde.plasma.clock). A session port cannot be named in an application’s depends, so the tools find those modules only on a machine with the Plasma session installed.