summary refs log tree commit diff
path: root/gnu/packages/kde.scm
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-08-14 01:57:34 +0200
committerMarius Bakke <marius@gnu.org>2022-11-21 22:01:07 +0100
commit527f2c6a871d532dbab1e9fedbb54f83985ab50d (patch)
tree48b6b1e59bb78673cba41651b482ed108a221010 /gnu/packages/kde.scm
parentc7b97cb44b1f55c9317b86f2a894eb1f9da5cff6 (diff)
downloadguix-527f2c6a871d532dbab1e9fedbb54f83985ab50d.tar.gz
gnu: Add kpublictransport.
* gnu/packages/kde-utils.scm (kpublictransport): New variable.

Signed-off-by: Marius Bakke <marius@gnu.org>
Diffstat (limited to 'gnu/packages/kde.scm')
-rw-r--r--gnu/packages/kde.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 61ffd1830b..9a855712f6 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -674,6 +674,37 @@ cards.")
     (description "Library for managing partitions.")
     (license license:gpl3+)))
 
+(define-public kpublictransport
+  (package
+    (name "kpublictransport")
+    (version "22.08.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/release-service/" version
+                    "/src/kpublictransport-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0z7zyyiq4815m74s6p841k1c4pxbrss7hnkag8kr5qa3q4264kg9"))))
+    (build-system qt-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"
+                              "(mergeutiltest|departuretest|journeytest|networkconfigtest|locationhistorymodeltest|navitiaparsertest|otpparsertest|ivvassparsertest|cachetest)")))))))
+    (native-inputs (list extra-cmake-modules pkg-config))
+    ;; TODO: clipper and osmctools are not detected
+    (inputs (list clipper osmctools protobuf qtdeclarative-5 zlib))
+    (home-page "https://api.kde.org/kdepim/kpublictransport/html/index.html")
+    (synopsis "Library for accessing realtime public transport data")
+    (description
+     "This package provides a library for accessing realtime public
+transport data and for performing public transport journey queries.")
+    (license (list license:lgpl2.0+))))
+
 (define-public snorenotify
   (package
     (name "snorenotify")