~ruther/guix-local

95fbea99bfe624ce359b1e1b85f394402b468d8c — Sughosha 5 months ago 5884542
gnu: kauth: Update to 6.18.0.

* gnu/packages/kde-frameworks.scm (kauth): Update to 6.18.0.
[origin]<#:snippet>: Fix cmake install directories.
[arguments]<#:phases>: Remove 'fix-cmake-install-directories phase. In 'check
phase, set "QT_QPA_PLATFORM" to "offscreen".

Change-Id: I3ed3927fb97615596e0aa83caf7e421e4e897673
1 files changed, 16 insertions(+), 15 deletions(-)

M gnu/packages/kde-frameworks.scm
M gnu/packages/kde-frameworks.scm => gnu/packages/kde-frameworks.scm +16 -15
@@ 2292,7 2292,7 @@ with other frameworks.")
(define-public kauth
  (package
    (name "kauth")
    (version "6.16.0")
    (version "6.18.0")
    (source (origin
              (method url-fetch)
              (uri (string-append


@@ 2301,7 2301,20 @@ with other frameworks.")
                    name "-" version ".tar.xz"))
              (sha256
               (base32
                "0qs90gbgm7jra33lxbs622djis1lk9bf6rh221zyp32yv97yiwq4"))))
                "1s83hk87cpbx3yg562lyn38wa7hrdb5skk7ayzy3syif91lywvwc"))
              (modules '((guix build utils)))
              ;; Make packages using kauth put their policy files and helpers
              ;; into their own prefix.
              (snippet
               `(substitute* ,(string-append "KF"
                                             (version-major version)
                                             "AuthConfig.cmake.in")
                  (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
                   "${KDE_INSTALL_DATADIR}/polkit-1/actions")
                  (("@KAUTH_HELPER_INSTALL_DIR@")
                   "${KDE_INSTALL_LIBEXECDIR}/kauth")
                  (("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
                   "${KDE_INSTALL_FULL_LIBEXECDIR}/kauth")))))
    (build-system cmake-build-system)
    (native-inputs
     (list dbus extra-cmake-modules qttools))


@@ 2312,22 2325,10 @@ with other frameworks.")
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-cmake-install-directories
            (lambda _
              ;; Make packages using kauth put their policy files and helpers
              ;; into their own prefix.
              (substitute* #$(string-append "KF" (version-major
                                                  (package-version this-package))
                                            "AuthConfig.cmake.in")
                (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
                 "${KDE_INSTALL_DATADIR}/polkit-1/actions")
                (("@KAUTH_HELPER_INSTALL_DIR@")
                 "${KDE_INSTALL_LIBEXECDIR}/kauth")
                (("@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
                 "${KDE_INSTALL_FULL_LIBEXECDIR}/kauth"))))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (setenv "QT_QPA_PLATFORM" "offscreen")
                (setenv "DBUS_FATAL_WARNINGS" "0")
                (invoke "dbus-launch" "ctest")))))))
    (home-page "https://community.kde.org/Frameworks")