aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-08 13:45:09 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-18 10:45:26 +0800
commitcc6450f290f095e7e54588d9fc9f98033971bb94 (patch)
tree98953208e9f624c389ed1d8ae485f1a89e3f0545 /gnu/packages
parent8c0cead882990769c845b861b5f0038412b7a1cd (diff)
downloadguix-cc6450f290f095e7e54588d9fc9f98033971bb94.tar.gz
guix-cc6450f290f095e7e54588d9fc9f98033971bb94.zip
gnu: Add kdbusaddons-5.
* gnu/packages/kde-frameworks.scm (kdbusaddons-5,kdbusaddons-5-bootstrap): New variable. Change-Id: Ic2bfb200147e942b46459ffe9c78d33a1f2752ad
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/kde-frameworks.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index ecbb2d0a5d..be3454697f 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -914,6 +914,58 @@ as well as an API to create KDED modules.")
;; the lgpl2.1. Some source files are under non-copyleft licenses.
(license license:lgpl2.1+)))
+(define-public kdbusaddons-5
+ (package
+ (inherit kdbusaddons)
+ (name "kdbusaddons")
+ (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
+ "0mlfphk8knbvpyns3ixd8da9zjvsms29mv5z2xgif9y20i5kmdq3"))))
+ (build-system cmake-build-system)
+ (native-inputs
+ (list extra-cmake-modules dbus qttools-5))
+ (inputs
+ (list qtbase-5 qtx11extras kinit-bootstrap))
+ ;; kinit-bootstrap: kinit package which does not depend on kdbusaddons.
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'patch-source
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; look for the kdeinit5 executable in kinit's store directory,
+ ;; instead of the current application's directory:
+ (substitute* "src/kdeinitinterface.cpp"
+ (("<< QCoreApplication::applicationDirPath..")
+ (string-append
+ "<< QString::fromUtf8(\"/"
+ (dirname (search-input-file inputs "bin/kdeinit5"))
+ "\")" )))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ (invoke "dbus-launch" "ctest")))))))))
+
+(define kdbusaddons-5-bootstrap
+ (package
+ (inherit kdbusaddons-5)
+ (source (origin
+ (inherit (package-source kdbusaddons-5))
+ (patches '())))
+ (inputs (modify-inputs (package-inputs kdbusaddons-5) (delete "kinit")))
+ (arguments
+ (substitute-keyword-arguments (package-arguments kdbusaddons-5)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (delete 'patch-source)))))))
+
(define-public kdnssd
(package
(name "kdnssd")