summary refs log tree commit diff
path: root/gnu/packages/kde.scm
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-10-03 17:33:16 +0200
committerMarius Bakke <marius@gnu.org>2022-11-21 22:01:16 +0100
commitea576461f29f10fad7343e964c583aab3b2d6cea (patch)
tree54a12acf9142a5f8c681529aeb8f7d22840d2613 /gnu/packages/kde.scm
parentbeb859d52b0e0ab904bb0344d5d36b50be4eb4b7 (diff)
downloadguix-ea576461f29f10fad7343e964c583aab3b2d6cea.tar.gz
gnu: Add kopeninghours.
* gnu/packages/kde.scm (kopeninghours): New variable.

Signed-off-by: Marius Bakke <marius@gnu.org>
Diffstat (limited to 'gnu/packages/kde.scm')
-rw-r--r--gnu/packages/kde.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 5669588b9c..2558530203 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -768,6 +768,40 @@ including SSL/TLS, X.509 certificates, SASL, OpenPGP, S/MIME CMS, and smart
 cards.")
     (license license:lgpl2.1+)))
 
+(define-public kopeninghours
+  (package
+    (name "kopeninghours")
+    (version "22.08.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://kde/stable/release-service/"
+                                  version "/src/" name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "03hslgx4zgg7gsnz2xhx4wnchvqfc5n8c6ihgwz3972fkxsjfdvq"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:phases '(modify-phases %standard-phases
+                       (replace 'check
+                         (lambda* (#:key tests? #:allow-other-keys)
+                           (when tests?
+                             (setenv "QT_QPA_PLATFORM" "offscreen")
+                             (invoke "ctest" "-E"
+                                     "(evaluatetest|iterationtest)")))))))
+    (native-inputs (list bison extra-cmake-modules flex))
+    (inputs (list boost
+                  kholidays
+                  ki18n
+                  osmctools
+                  qtbase-5
+                  qtdeclarative-5))
+    (home-page "https://invent.kde.org/libraries/kopeninghours")
+    (synopsis "Get opening hours from OpenStreetMap")
+    (description
+     "This package provides a library for parsing and evaluating OpenStreetMap
+opening hours expressions.")
+    (license license:lgpl2.0+)))
+
 (define-public kpmcore
   (package
     (name "kpmcore")