gnu: Add krunner-5.

* gnu/packages/kde-frameworks.scm (krunner-5): New variable.

Change-Id: If52e297261b69fbcead72fe1750f476efd6ee093
This commit is contained in:
Zheng Junjie 2024-07-08 15:08:34 +08:00
parent dc3e2505b9
commit 5b36e4a892
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -4133,6 +4133,67 @@ (define-public krunner
typed.")
(license license:lgpl2.1+)))
(define-public krunner-5
(package
(inherit krunner)
(name "krunner")
(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
"0h889a4bj7vqhvy9hkqxd9v437zly73phyav10gv5b2l8fgb4zxq"))))
(propagated-inputs
(list plasma-framework))
(native-inputs
(list extra-cmake-modules
;; For tests.
dbus))
(inputs
(list kactivities
kauth-5
kbookmarks-5
kcodecs-5
kcompletion-5
kconfig-5
kconfigwidgets-5
kcoreaddons-5
kio-5
kitemviews-5
ki18n-5
kjobwidgets-5
kpackage-5
kservice-5
kwidgetsaddons-5
kwindowsystem-5
kxmlgui-5
qtdeclarative-5
solid-5
threadweaver-5))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths-for-test
;; This test tries to access paths like /home, /usr/bin and /bin/ls
;; which don't exist in the build-container. Change to existing paths.
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "autotests/runnercontexttest.cpp"
(("/home\"") "/tmp\"") ;; single path-part
(("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple path-parts
(("/bin/ls")
(search-input-file inputs "/bin/ls")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" (getcwd))
(setenv "QT_QPA_PLATFORM" "offscreen")
(invoke "dbus-launch" "ctest")))))))))
(define-public kservice
(package
(name "kservice")