summary refs log tree commit diff
path: root/gnu/packages/kde.scm
diff options
context:
space:
mode:
authorZheng Junjie <873216071@qq.com>2023-07-15 11:14:40 +0800
committer宋文武 <iyzsong@member.fsf.org>2023-08-02 22:27:41 +0800
commite32d2967ebe025c9d6335b62ae711623adf74f49 (patch)
treeac67d1ce6d4a89fe5c474fbb808f617cf92fbcdb /gnu/packages/kde.scm
parent57b47de90ae2b8fd47034fea04f95856a1bf4a62 (diff)
downloadguix-e32d2967ebe025c9d6335b62ae711623adf74f49.tar.gz
gnu: kpublictransport: Update to 23.04.3.
* gnu/packages/kde.scm (kpublictransport): Update to 23.04.3.
[native-inputs]: Add tzdata-for-tests.
[inputs]: Add networkmanager-qt, ki18n.
[arguments]: Enable all tests, add check-setup phase.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/kde.scm')
-rw-r--r--gnu/packages/kde.scm35
1 files changed, 22 insertions, 13 deletions
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index bafe4bc47e..50d7878736 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -48,6 +48,7 @@
   #:use-module (gnu packages apr)
   #:use-module (gnu packages astronomy)
   #:use-module (gnu packages audio)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
@@ -867,27 +868,35 @@ multi-floor indoor maps.")
 (define-public kpublictransport
   (package
     (name "kpublictransport")
-    (version "22.08.1")
+    (version "23.04.3")
     (source (origin
               (method url-fetch)
-              (uri (string-append
-                    "mirror://kde/stable/release-service/" version
-                    "/src/kpublictransport-" version ".tar.xz"))
+              (uri (string-append "mirror://kde/stable/release-service/"
+                                  version "/src/kpublictransport-" version
+                                  ".tar.xz"))
               (sha256
                (base32
-                "0z7zyyiq4815m74s6p841k1c4pxbrss7hnkag8kr5qa3q4264kg9"))))
+                "04fa9ismgkhskpmjf6b8gvra2z0jpsigz79b93m1snxm4046xihb"))))
     (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))
+                       (add-before 'check 'check-setup
+                         (lambda* (#:key inputs #:allow-other-keys)
+                           (setenv "QT_QPA_PLATFORM" "offscreen")
+                           (setenv "HOME" ".")
+                           (setenv "TZ" "Europe/Prague")
+                           (setenv "TZDIR"
+                                   (search-input-directory inputs
+                                                           "share/zoneinfo")))))))
+    (native-inputs (list extra-cmake-modules pkg-config tzdata-for-tests))
     ;; TODO: clipper and osmctools are not detected
-    (inputs (list clipper osmctools protobuf qtdeclarative-5 zlib))
+    (inputs (list clipper
+                  osmctools
+                  protobuf
+                  qtdeclarative-5
+                  zlib
+                  networkmanager-qt
+                  ki18n))
     (home-page "https://api.kde.org/kdepim/kpublictransport/html/index.html")
     (synopsis "Library for accessing realtime public transport data")
     (description