diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-08 14:32:52 +0800 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-18 10:45:28 +0800 |
commit | f7ee9142df6e0540aca83fe14caf7f6086f6d59b (patch) | |
tree | b138c126957c5fc5c4e23b2f6fe9237136170974 | |
parent | 41a7a6cf683e4d4967c2f263ffe5b12b09e3c26f (diff) | |
download | guix-f7ee9142df6e0540aca83fe14caf7f6086f6d59b.tar.gz guix-f7ee9142df6e0540aca83fe14caf7f6086f6d59b.zip |
gnu: Add kdeclarative-5.
* gnu/packages/kde-frameworks.scm (kdeclarative-5): New variable.
Change-Id: Ib07c5e2340c8b8aada59c6c61c8736205ee7a9ca
-rw-r--r-- | gnu/packages/kde-frameworks.scm | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 25a42767ad..abfac41d5c 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -3157,6 +3157,61 @@ that offer bindings to some of the Frameworks.") ;; dual licensed (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public kdeclarative-5 + (package + (inherit kdeclarative) + (name "kdeclarative") + (version "5.116.0") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://kde/stable/frameworks/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "0py5x9ia8p7ngk1q3nqwqi1b9zv6jdxc23qam8xyqbfjqcm9qzwy")))) + (propagated-inputs + (list kconfig-5 kpackage-5 qtdeclarative-5)) + (native-inputs + (list dbus extra-cmake-modules pkg-config xorg-server-for-tests)) + (inputs + (list kauth-5 + kcoreaddons-5 + kglobalaccel-5 + kguiaddons-5 + kiconthemes-5 + kio-5 + ki18n-5 + kjobwidgets-5 + knotifications-5 + kservice-5 + kwidgetsaddons-5 + kwindowsystem-5 + libepoxy + qtbase-5 + qtdeclarative-5 + solid-5)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'check 'start-xorg-server + (lambda* (#:key inputs #:allow-other-keys) + ;; The test suite requires a running X server, setting + ;; QT_QPA_PLATFORM=offscreen does not suffice. + (system "Xvfb :1 -screen 0 640x480x24 &") + (setenv "DISPLAY" ":1"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" + (getcwd)) + (setenv "XDG_RUNTIME_DIR" + (getcwd)) + (setenv "QT_QPA_PLATFORM" "offscreen") + (setenv "DBUS_FATAL_WARNINGS" "0") + (invoke "dbus-launch" "ctest"))))))))) + (define-public kded (package (name "kded") |