gnu: kate: Update to 24.05.2.

* gnu/packages/kde-utils.scm (kate): Update to 24.05.2.
[inputs]: Remove kactivities, plasma-framework, qtbase-5, qtscript, and
qtx11extras; add plasma-activities, ktextwidgets, libplasma, and
libxkbcommon.
[arguments]: Set #:qtbase to qtbase.

Change-Id: I2e54e303b6b0b2b4b753ac7c61fd5094f6aaa37a
This commit is contained in:
Zheng Junjie 2024-07-06 18:13:36 +08:00
parent dd5fa38ab9
commit 913ea1ee6b
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -336,19 +336,20 @@ your computer.")
(define-public kate (define-public kate
(package (package
(name "kate") (name "kate")
(version "23.04.3") (version "24.05.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://kde/stable/release-service/" version (uri (string-append "mirror://kde/stable/release-service/" version
"/src/kate-" version ".tar.xz")) "/src/kate-" version ".tar.xz"))
(sha256 (sha256
(base32 "0yyhh21pvzsaz7swmghdchzsfk089axhqkjwjv1m8j4q3q3rhv86")))) (base32 "085hbl6xzzihnhy8pjwdjdsrww6l1h70m4sf2s1b5c1xsnvhhkvp"))))
(build-system qt-build-system) (build-system qt-build-system)
(native-inputs (native-inputs
(list extra-cmake-modules kdoctools)) (list extra-cmake-modules kdoctools))
(inputs (inputs
(list kactivities (list breeze-icons ;; default icon set
plasma-activities
kconfig kconfig
kcrash kcrash
kdbusaddons kdbusaddons
@ -362,30 +363,29 @@ your computer.")
kjobwidgets kjobwidgets
kparts kparts
ktexteditor ktexteditor
ktextwidgets
ksyntaxhighlighting ksyntaxhighlighting
kwallet kwallet
plasma-framework
kwindowsystem kwindowsystem
kxmlgui kxmlgui
breeze-icons ;; default icon set libplasma
qtbase-5 libxkbcommon))
qtscript
qtx11extras))
(arguments (arguments
`(#:phases (list #:qtbase qtbase
(modify-phases %standard-phases #:phases
(add-after 'unpack 'patch-tests #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'patch-tests
;; This test requires a 'bin' diretory under '/usr'. (lambda* (#:key inputs #:allow-other-keys)
(substitute* "addons/externaltools/autotests/externaltooltest.cpp" ;; This test requires a 'bin' diretory under '/usr'.
(("QStringLiteral[(]\"/usr\"[)]") (substitute* "addons/externaltools/autotests/externaltooltest.cpp"
(format #f "QStringLiteral(\"~a\")" (("QStringLiteral[(]\"/usr\"[)]")
(dirname (dirname (which "ls")))))))) (format #f "QStringLiteral(\"~a\")"
(add-before 'check 'check-setup (dirname (dirname (which "ls"))))))))
(lambda _ (add-before 'check 'check-setup
;; make Qt render "offscreen", required for tests (lambda _
(setenv "QT_QPA_PLATFORM" "offscreen") ;; make Qt render "offscreen", required for tests
(setenv "HOME" (getcwd))))))) (setenv "QT_QPA_PLATFORM" "offscreen")
(setenv "HOME" (getcwd)))))))
(home-page "https://kate-editor.org/") (home-page "https://kate-editor.org/")
(synopsis "Multi-document, multi-view text editor") (synopsis "Multi-document, multi-view text editor")
(description "Kate is a powerful text editor that can open multiple files (description "Kate is a powerful text editor that can open multiple files