From 2f407ac162d6b9053bafb611ff20b58b13e7a09c Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Sat, 6 Jul 2024 19:34:58 +0800 Subject: gnu: kmime: Update to 24.05.2. * gnu/packages/kde-pim.scm (kmime): Update to 24.05.2. [inputs]: Remove qtbase-5. [native-inputs]: Add tzdata-for-tests. [arguments]: Use Gexp; Set #:qtbase to qtbase. <#:phases>: Adjust fix-test-case phase. Change-Id: I46d6d92ca752c2dd8c0255fd0abefbe4d376c2fd --- gnu/packages/kde-pim.scm | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/gnu/packages/kde-pim.scm b/gnu/packages/kde-pim.scm index c0b0b6bd42..3c232dbbbd 100644 --- a/gnu/packages/kde-pim.scm +++ b/gnu/packages/kde-pim.scm @@ -1604,29 +1604,28 @@ kwebengineviewer.") (define-public kmime (package (name "kmime") - (version "23.04.3") + (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmime-" version ".tar.xz")) (sha256 - (base32 "1i38g0s98d24882kxyjay965nz3d3fjhb3mv1p4sllm2lnffrq2d")))) + (base32 "19dnp955vii3vi1jaxgbsyabbb35iaqvhz9nnz392r3wz7f3hbyq")))) (build-system qt-build-system) (native-inputs - (list extra-cmake-modules)) + (list extra-cmake-modules tzdata-for-tests)) (inputs - (list kcodecs ki18n qtbase-5)) + (list kcodecs ki18n)) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-test-case - (lambda _ - ;; This is curious: autotests/CMakeLists.txt sets LC_TIME=C, but - ;; the Qt locale returns different. See kmime commit 3a9651d26a. - (substitute* "autotests/dateformattertest.cpp" - (("(Today|Yesterday) 12:34:56" line day) - (string-append day " 12:34 PM")))))))) + (list #:qtbase qtbase + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-test-case + (lambda* (#:key inputs tests? #:allow-other-keys) + (when tests? + (setenv "TZDIR" (search-input-directory + inputs "share/zoneinfo")))))))) (home-page "https://api.kde.org/stable/kdepimlibs-apidocs/") (synopsis "Library for handling MIME data") (description "This library provides an API for handling MIME -- cgit v1.2.3