291.4. dolphin-plugins-26.08.2
Dolphin plugins — Git status overlays and actions, Makefile targets and ISO image mounting
26.08.2-1 · GPL-2.0-or-later AND BSD-3-Clause AND CC0-1.0 · 0.4 SBU · 610.4 KiB, 9 files · 44_apps, 131 of 422 · ports/core/files/dolphin-plugins
Homepage: https://invent.kde.org/sdk/dolphin-plugins
dolphin-plugins extends Dolphin. The Git plugin shows each file’s state as an overlay and puts commit, push, pull, checkout and log in the context menu; the Makefile action runs a target from the context menu of a Makefile; the ISO action mounts and unmounts a disc image, and an overlay marks an image that is mounted.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, kcoreaddons, ki18n, kio, ktextwidgets, kxmlgui, solid, dolphin, git, udisks2.
Required by (1): kde-gear-core.
Sources: dolphin-plugins-26.08.2.tar.xz (341.0 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 dolphin-plugins'
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 BUILD_svn=OFF \
-D BUILD_hg=OFF \
-D BUILD_bazaar=OFF \
-D BUILD_dropbox=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D BUILD_svn=OFF— With-D BUILD_hg=OFFand-D BUILD_bazaar=OFF: no Subversion, Mercurial or Bazaar plugin. Each one runs its tool’s command line (svn,hg,bzr) for every folder it marks, and none of the three is a port, so the plugins would activate in a checkout and fail on every action. A switch is turned on together with its tool’s port independs, once that port exists.-D BUILD_dropbox=OFF— No Dropbox plugin. It talks to the proprietary Dropbox client’s socket in~/.dropbox, and that client is not something this tree can build.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Directories: /usr/lib/qt6/plugins/dolphin/vcs, /usr/lib/qt6/plugins/kf6/overlayicon, /usr/share/licenses/dolphin-plugins.
The version-control plugins build against DolphinVcs, the plugin interface library dolphin installs, which the configure requires. The 44_apps phase holds only ports that nothing depends on, so this dependency moves dolphin, which reaches a toolkit, into 43_toolkits; dolphin-plugins itself, which nothing depends on, stays in 44_apps.
The Git plugin runs git, which is in depends for run time only. The ISO action asks udisks2 over D-Bus to set up a loop device (LoopSetup) and mount it; that runs without a password in an active elogind session under udisks2’s polkit defaults.
Each switch is a BUILD_<directory> option that ECM’s ecm_optional_add_subdirectory() creates; the subdirectories left at their default, on, are git, makefileactions, mountiso and mountedisooverlay.