me
/
guix
Archived
1
0
Fork 0

gnu: khelpcenter: Update to 24.05.2.

* gnu/packages/kde-systemtools.scm (khelpcenter): Update to 24.05.2.
[inputs]: Remove grantlee, khtml, kinit, kjs, and qtbase-5; add ktexttemplate,
qtbase, and qtwebengine.
[native-inputs]: Add perl.
[arguments] Enable tests.
<#:phases>: Add add-miss-package phase, adjust wrap-executable phase.

Change-Id: I94fb420f27a67c1c33a749bb6fd834ba40632e96
master
Zheng Junjie 2024-07-06 17:14:33 +08:00
parent 851b45267d
commit 11a31d452d
No known key found for this signature in database
GPG Key ID: 3B5AA993E1A2DFF0
1 changed files with 29 additions and 21 deletions

View File

@ -40,6 +40,7 @@
#:use-module (gnu packages ruby) #:use-module (gnu packages ruby)
#:use-module (gnu packages search) #:use-module (gnu packages search)
#:use-module (gnu packages vnc) #:use-module (gnu packages vnc)
#:use-module (gnu packages perl)
#:use-module (gnu packages xml) #:use-module (gnu packages xml)
#:use-module (gnu packages icu4c) #:use-module (gnu packages icu4c)
#:use-module (gnu packages xorg) #:use-module (gnu packages xorg)
@ -136,49 +137,56 @@ Dolphin with the version control systems: Bzr, Git, Mercurial, Subversion.")
(define-public khelpcenter (define-public khelpcenter
(package (package
(name "khelpcenter") (name "khelpcenter")
(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/khelpcenter-" version ".tar.xz")) "/src/khelpcenter-" version ".tar.xz"))
(sha256 (sha256
(base32 "10rivj5c14v5hwk87z41gwk830sy35fz0jg1jpay43jzw0ss995y")))) (base32 "0y6smxc64mxpv535rih1m50wy4lf4gzsp944snvxrb4gj8q9sgy1"))))
(build-system qt-build-system) (build-system qt-build-system)
(native-inputs (native-inputs
(list extra-cmake-modules kdoctools)) (list extra-cmake-modules kdoctools perl))
(inputs (inputs
(list grantlee (list karchive
karchive
kbookmarks kbookmarks
kcodecs kcodecs
kconfig kconfig
kcoreaddons kcoreaddons
kdbusaddons kdbusaddons
khtml
ki18n ki18n
kinit
kio kio
kjs
kparts kparts
kservice kservice
ktexttemplate
kwindowsystem kwindowsystem
libxml2 libxml2
breeze-icons ;; default icon set breeze-icons ;; default icon set
qtbase-5 qtbase
xapian)) xapian
qtwebengine))
(arguments (arguments
(list #:tests? #f ;;1/1 test fails (list #:phases
#:phases #~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'wrap-executable (add-after 'unpack 'add-miss-package
(lambda* (#:key inputs #:allow-other-keys) (lambda _
;; Since qt-wrap selectors do not wrap for /share/kf5 ;; https://invent.kde.org/system/khelpcenter/-/merge_requests/50
;; directories, we need this so khelpcenter can find html4.css. (substitute* "CMakeLists.txt"
(wrap-program (string-append #$output ((" WebEngineWidgets")
"/bin/khelpcenter") " WebEngineWidgets
`("XDG_DATA_DIRS" suffix PrintSupport")
(,(string-append (assoc-ref inputs "khtml") (("Qt6::WebEngineWidgets")
"/share"))))))))) "Qt6::PrintSupport
Qt6::WebEngineWidgets"))))
(add-after 'install 'wrap-executable
(lambda* (#:key inputs #:allow-other-keys)
(wrap-program (string-append #$output
"/bin/khelpcenter")
`("QTWEBENGINEPROCESS_PATH" =
(,(search-input-file
inputs
"lib/qt6/libexec/QtWebEngineProcess")))))))))
(home-page "https://apps.kde.org/khelpcenter/") (home-page "https://apps.kde.org/khelpcenter/")
(synopsis "KDE documentation viewer") (synopsis "KDE documentation viewer")
(description "KHelpCenter uses meta data files which describe the (description "KHelpCenter uses meta data files which describe the