guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

139/143: gnu: Add kopeninghours.


From: guix-commits
Subject: 139/143: gnu: Add kopeninghours.
Date: Mon, 21 Nov 2022 16:10:55 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit ea576461f29f10fad7343e964c583aab3b2d6cea
Author: Petr Hodina <phodina@protonmail.com>
AuthorDate: Mon Oct 3 17:33:16 2022 +0200

    gnu: Add kopeninghours.
    
    * gnu/packages/kde.scm (kopeninghours): New variable.
    
    Signed-off-by: Marius Bakke <marius@gnu.org>
---
 gnu/packages/kde.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]