Subject: [PATCH 13/26] gnu: Add akonadi-search.

From: Hartmut Goebel <[email-masked]>
Date: Sat, 18 Jan 2020 22:11:32 +0100

* gnu/packages/kde-pim.scm (akonadi-search): New variable.
---
 gnu/packages/kde-pim.scm | 48 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/kde-pim.scm b/gnu/packages/kde-pim.scm
index 8843f8c8c3..b998e32c69 100644
--- a/gnu/packages/kde-pim.scm
+++ b/gnu/packages/kde-pim.scm
@@ -31,6 +31,7 @@
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages openldap)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages search)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages xml))
 
@@ -195,6 +196,53 @@ wrapping notes into KMime::Message objects.")
     (license ;; GPL for programs, LGPL for libraries
      (list license:gpl2+ license:lgpl2.0+))))
 
+(define-public akonadi-search
+  (package
+    (name "akonadi-search")
+    (version "19.08.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/applications/" version
+                           "/src/akonadi-search-" version ".tar.xz"))
+       (sha256
+        (base32 "16qzs2cs4nxwrpwcdgwry95qn6wmg8s1p4w3qajx1ahkgwmsh11s"))))
+    (build-system qt-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)))
+    (inputs
+     `(("akonadi" ,akonadi)
+       ("akonadi-mime" ,akonadi-mime)
+       ("boost" ,boost)
+       ("kcalendarcore" ,kcalendarcore)
+       ("kcmutils" ,kcmutils)
+       ("kcontacts" ,kcontacts)
+       ("kcrash" ,kcrash)
+       ("kdbusaddons" ,kdbusaddons)
+       ("ki18n" ,ki18n)
+       ("kio" ,kio)
+       ("kitemmodels" ,kitemmodels)
+       ("kmime" ,kmime)
+       ("krunner" ,krunner)
+       ("kwindowsystem" ,kwindowsystem)
+       ("qtbase" ,qtbase)
+       ("xapian" ,xapian)))
+    (arguments
+     `(#:tests? #f ;; TODO: need dbos
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'check-setup
+           (lambda _
+             ;; make Qt render "offscreen", required for tests
+             (setenv "QT_QPA_PLATFORM" "offscreen")
+             #t)))))
+    (home-page "https://api.kde.org/stable/kdepimlibs-apidocs/akonadi/html/")
+    (synopsis "Akonadi search library")
+    (description "Xapian-based indexing and query infrastructure for
+Akonadi.")
+    (license ;; GPL for programs, LGPL for libraries
+     (list license:gpl2+ license:lgpl2.0+))))
+
 (define-public kalarmcal
   (package
     (name "kalarmcal")
-- 
2.21.1