306.22. kruler-26.08.2
Screen ruler — measure distances on screen in pixels, from the tray
26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-or-later · 0.5 SBU · 238.5 KiB, 25 files · 44_apps, 242 of 422 · ports/core/graphics/kruler
Homepage: https://apps.kde.org/kruler/
KRuler is an on-screen ruler: a translucent strip, horizontal or vertical, that measures distances in pixels and shows the colour under its marker, for checking the layout of a dialog or a page. It lives in the system tray between uses, through kstatusnotifieritem.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, ki18n, knotifications, kstatusnotifieritem, kwindowsystem, kxmlgui, kcrash, kdoctools.
Required by (1): kde-gear-graphics.
Sources: kruler-26.08.2.tar.xz (280.3 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 kruler'
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 WITHOUT_X11=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D WITHOUT_X11=ON— Leave out the XCB code. It runs only when KRuler is on the X11 platform plugin, where it marks the window as an override window and adds the “native moving” and “always on top” settings page; KRuler on KDOS is a Wayland client, so the code would never run. Upstream finds XCB quietly and compiles it in when the headers happen to be present.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream looks for as optional.-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).
Programs: kruler.
Directories: /usr/share/doc/HTML/en/kruler, /usr/share/kruler, /usr/share/licenses/kruler.
On Wayland a client cannot place its own window or keep it above others, so KWin decides where the ruler goes and the ruler is moved by dragging it like any window.