Subject: [PATCH kde-team 61/63] gnu: Add kbookmarks-6.

From: Zheng Junjie <[email-masked]>
Date: Mon, 15 Apr 2024 20:47:38 +0800

* gnu/packages/kde-frameworks.scm (kbookmarks-6): New variable.
(kbookmarks): Inherit above.

Change-Id: Ic6da85eb1dd714c843f6878f208435765ec88b65
---
 gnu/packages/kde-frameworks.scm | 61 +++++++++++++++++++++++++--------
 1 file changed, 46 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index b36c05d19d..875f9df88e 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -3259,8 +3259,53 @@ (define-public kactivities-stats
     ;; triple licensed
     (license (list license:lgpl2.0+ license:lgpl2.1+ license:lgpl3+))))
 
+(define-public kbookmarks-6
+  (package
+    (name "kbookmarks")
+    (version "6.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0is75mhvfahay0xbbckwsa7jwlf4j6c7gdxl6i4fiqy12wr5cqxp"))))
+    (build-system cmake-build-system)
+    (propagated-inputs
+     (list kwidgetsaddons-6))
+    (native-inputs
+     (list extra-cmake-modules qttools))
+    (inputs
+     (list kauth-6
+           kcodecs-6
+           kconfig-6
+           kconfigwidgets-6
+           kcoreaddons-6
+           kiconthemes-6
+           kcolorscheme
+           kxmlgui-6
+           qtdeclarative
+           qtbase))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'check-setup
+            (lambda _
+              (setenv "HOME" (getcwd))
+              ;; make Qt render "offscreen", required for tests
+              (setenv "QT_QPA_PLATFORM" "offscreen"))))))
+    (home-page "https://community.kde.org/Frameworks")
+    (synopsis "Bookmarks management library")
+    (description "KBookmarks lets you access and manipulate bookmarks stored
+using the XBEL format.")
+    (license license:lgpl2.1+)))
+
 (define-public kbookmarks
   (package
+    (inherit kbookmarks-6)
     (name "kbookmarks")
     (version "5.114.0")
     (source (origin
@@ -3272,7 +3317,6 @@ (define-public kbookmarks
               (sha256
                (base32
                 "06lnsyjhh80mdcqjww40glinmrjydbmkhv27a267vf34r7kam9rc"))))
-    (build-system cmake-build-system)
     (propagated-inputs
      (list kwidgetsaddons))
     (native-inputs
@@ -3285,20 +3329,7 @@ (define-public kbookmarks
            kcoreaddons
            kiconthemes
            kxmlgui
-           qtbase-5))
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'check-setup
-           (lambda _
-             (setenv "HOME" (getcwd))
-             ;; make Qt render "offscreen", required for tests
-             (setenv "QT_QPA_PLATFORM" "offscreen"))))))
-    (home-page "https://community.kde.org/Frameworks")
-    (synopsis "Bookmarks management library")
-    (description "KBookmarks lets you access and manipulate bookmarks stored
-using the XBEL format.")
-    (license license:lgpl2.1+)))
+           qtbase-5))))
 
 (define-public kcmutils
   (package
-- 
2.41.0