me
/
guix
Archived
1
0
Fork 0

gnu: kauth: Use G-expressions.

* gnu/packages/kde-frameworks.scm (kauth)[arguments]:
Rewrite as G-expressions.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
master
Zheng Junjie 2023-07-12 11:44:22 +08:00 committed by 宋文武
parent 8c14f21e26
commit cfc64292be
No known key found for this signature in database
GPG Key ID: D415BF253B515976
1 changed files with 19 additions and 18 deletions

View File

@ -1561,24 +1561,25 @@ with other frameworks.")
(inputs (inputs
(list kcoreaddons polkit-qt qtbase-5)) (list kcoreaddons polkit-qt qtbase-5))
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'fix-cmake-install-directories #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'fix-cmake-install-directories
;; Make packages using kauth put their policy files and helpers (lambda _
;; into their own prefix. ;; Make packages using kauth put their policy files and helpers
(substitute* "KF5AuthConfig.cmake.in" ;; into their own prefix.
(("@KAUTH_POLICY_FILES_INSTALL_DIR@") (substitute* "KF5AuthConfig.cmake.in"
"${KDE_INSTALL_DATADIR}/polkit-1/actions") (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
(("@KAUTH_HELPER_INSTALL_DIR@") "${KDE_INSTALL_DATADIR}/polkit-1/actions")
"${KDE_INSTALL_LIBEXECDIR}") (("@KAUTH_HELPER_INSTALL_DIR@")
(("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@") "${KDE_INSTALL_LIBEXECDIR}")
"${KDE_INSTALL_LIBEXECDIR}")))) (("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
(replace 'check "${KDE_INSTALL_LIBEXECDIR}"))))
(lambda* (#:key tests? #:allow-other-keys) (replace 'check
(when tests? (lambda* (#:key tests? #:allow-other-keys)
(setenv "DBUS_FATAL_WARNINGS" "0") (when tests?
(invoke "dbus-launch" "ctest"))))))) (setenv "DBUS_FATAL_WARNINGS" "0")
(invoke "dbus-launch" "ctest")))))))
(home-page "https://community.kde.org/Frameworks") (home-page "https://community.kde.org/Frameworks")
(synopsis "Execute actions as privileged user") (synopsis "Execute actions as privileged user")
(description "KAuth provides a convenient, system-integrated way to offload (description "KAuth provides a convenient, system-integrated way to offload