From 0a4fad3cefc4d137c568f56530c20da397ed550a Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 28 Aug 2022 23:07:58 +0200 Subject: gnu: Add kquickcharts. * gnu/packages/kde-frameworks.scm (kquickcharts): New variable. Signed-off-by: Marius Bakke --- gnu/packages/kde-frameworks.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages/kde-frameworks.scm') diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 214420c101..c7a52ce4b9 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -84,6 +84,7 @@ (define-module (gnu packages kde-frameworks) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages video) + #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -173,6 +174,39 @@ (define-public extra-cmake-modules common build settings used in software produced by the KDE community.") (license license:bsd-3))) +(define-public kquickcharts + (package + (name "kquickcharts") + (version "5.96.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/frameworks/" + (version-major+minor version) + "/" name "-" version ".tar.xz")) + (sha256 + (base32 + "1sd9mfxk72xfa1kz77s7z312scfm0vwvvgmyi4pypb9cs7d9dq3j")))) + (build-system cmake-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (system "Xvfb :1 -screen 0 640x480x24 &") + (setenv "DISPLAY" ":1") + (setenv "QT_QPA_PLATFORM" "offscreen") + (invoke "ctest"))))))) + (inputs (list qtbase-5 qtdeclarative-5 qtquickcontrols2-5 + xorg-server-for-tests)) + (native-inputs (list extra-cmake-modules glslang pkg-config)) + (home-page "https://api.kde.org/frameworks/kquickcharts/html/index.html") + (synopsis "QtQuick plugin providing high-performance charts") + (description + "The Quick Charts module provides a set of charts that can be +used from QtQuick applications for both simple display of data as well as +continuous display of high-volume data.") + (license (list license:lgpl2.1 license:lgpl3)))) + (define-public phonon (package (name "phonon") -- cgit v1.2.3