From 69e7191906c46ea750895f158461b7b5a8622a94 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Sun, 30 Jul 2023 07:29:37 +0800 Subject: gnu: kate: Update to 23.04.3. * gnu/packages/kde-utils.scm (kate): Update to 23.04.3. [inputs]: Add qtx11extras. [arguments]: Enable tests. --- gnu/packages/kde-utils.scm | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/kde-utils.scm b/gnu/packages/kde-utils.scm index f88f17c8d3..d32c4e6e79 100644 --- a/gnu/packages/kde-utils.scm +++ b/gnu/packages/kde-utils.scm @@ -335,14 +335,14 @@ your computer.") (define-public kate (package (name "kate") - (version "22.04.3") + (version "23.04.3") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kate-" version ".tar.xz")) (sha256 - (base32 "0dnlr1cld6lqanqv98bss66w2bi2y78vqb8jx26addn2r1w4ygkf")))) + (base32 "0yyhh21pvzsaz7swmghdchzsfk089axhqkjwjv1m8j4q3q3rhv86")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) @@ -368,16 +368,23 @@ your computer.") kxmlgui breeze-icons ;; default icon set qtbase-5 - qtscript)) + qtscript + qtx11extras)) (arguments - `(#:tests? #f ;; 2/7 tests fail - #:phases + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-tests + (lambda* (#:key inputs #:allow-other-keys) + ;; This test requires a 'bin' diretory under '/usr'. + (substitute* "addons/externaltools/autotests/externaltooltest.cpp" + (("QStringLiteral[(]\"/usr\"[)]") + (format #f "QStringLiteral(\"~a\")" + (dirname (dirname (which "ls")))))))) (add-before 'check 'check-setup (lambda _ ;; make Qt render "offscreen", required for tests (setenv "QT_QPA_PLATFORM" "offscreen") - (setenv "XDG_CACHE_HOME" "/tmp/xdg-cache")))))) + (setenv "HOME" (getcwd))))))) (home-page "https://kate-editor.org/") (synopsis "Multi-document, multi-view text editor") (description "Kate is a powerful text editor that can open multiple files -- cgit v1.2.3