256.8. kdiagram-3.0.1
KDE charting widgets: KChart for business charts and KGantt for Gantt diagrams
3.0.1-1 · GPL-2.0-or-later AND LGPL-2.0-or-later · 7.6 SBU · 3.5 MiB, 201 files · 43_toolkits, 246 of 344 · ports/core/qt-extra/kdiagram
Homepage: https://invent.kde.org/graphics/kdiagram
KDiagram is two Qt widget libraries for drawing data: KChart, for bar, line, pie, polar, stock and ternary charts with legends and axes, and KGantt, for Gantt diagrams with constraints between tasks. KOrganizer’s event views and incidence editor draw their charts with it, as do Massif Visualizer and Calligra. The libraries are libKChart6 and libKGantt6.
The recipe takes the 3.0.1 release from its own 3.0.1/ directory under stable/kdiagram/ on KDE’s download server. The kdiagram-2.7.90.tar.xz at the top of stable/kdiagram/ is an old beta, not the current release.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg.
Required by (4): calligra, eventviews, incidenceeditor, massif-visualizer.
Sources: kdiagram-3.0.1.tar.xz (677.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 kdiagram'
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 KF_SKIP_PO_PROCESSING=ON \
-D BUILD_QCH=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Build none of the Qt translation catalogues underpoqm/, whichecm_install_po_files_as_qm()would compile into.qmfiles; the package-wide English-only rule (see Size and language policy) would remove them anyway.-D BUILD_QCH=OFF— Build no API documentation in Qt Help format, which needs Doxygen and Qt’s help generator. Off is upstream’s default too; the recipe names it.
Libraries: libKChart6.so, libKGantt6.so.
Directories: /usr/include/KChart6, /usr/include/KGantt6, /usr/lib/cmake/KChart6, /usr/lib/cmake/KGantt6, /usr/share/licenses/kdiagram.
The examples, which include the only use of Qt SQL, are built with the tests, so BUILD_TESTING=OFF leaves them out. The charts print through Qt Print Support in qt6-qtbase and read SVG through qt6-qtsvg.