[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
133/332: gnu: okular: Update to 23.04.3.
From: |
guix-commits |
Subject: |
133/332: gnu: okular: Update to 23.04.3. |
Date: |
Thu, 3 Aug 2023 05:43:46 -0400 (EDT) |
iyzsong pushed a commit to branch kde-updates
in repository guix.
commit 3a253694036560e9c332512a105f6e53e291d8bb
Author: Zheng Junjie <873216071@qq.com>
AuthorDate: Fri Jul 14 23:08:01 2023 +0800
gnu: okular: Update to 23.04.3.
* gnu/packages/kde.scm (okular): Update to 23.04.3.
[native-inputs]: Add desktop-file-utils.
[inputs]: Add qtx11extras.
[arguments]: Use G-expressions, move check phase after install phase, add
check-setup phase.
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
---
gnu/packages/kde.scm | 39 +++++++++++++++++++++++++++++----------
1 file changed, 29 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 35fa3c66d0..a53cc5fae4 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -1272,24 +1272,42 @@ creating routes by drag and drop and more.")
(define-public okular
(package
(name "okular")
- (version "22.08.1")
+ (version "23.04.3")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://kde/stable/release-service/" version
"/src/" name "-" version ".tar.xz"))
(sha256
- (base32 "0f98kfsb6sirpym27j2wwz4qr4p5vl4pbnckxd3gmgyfpz8mszln"))))
+ (base32 "1vgcqkq6mzd270hzabmdqqv105iv6kr6ah2h18b15al2n9rmg0bi"))))
(build-system qt-build-system)
- ;; The tests fail because they can't find the proper mimetype plugins:
- ;; "org.kde.okular.core: No plugin for mimetype '"image/jpeg"'."
- ;; The built program seems to work okay, so we skip the tests for now.
(arguments
- `(#:tests? #f
- #:configure-flags
- (list "-DBUILD_TESTING=OFF")))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'check)
+ ;; use installed data to check.
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "ctest"
+ "--output-on-failure"
+ "--rerun-failed"
+ "-E"
+ "(mainshelltest|parttest|chmgeneratortest)"))))
+ (add-before 'check 'check-setup
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((share (string-append (assoc-ref outputs "out") "/share")))
+ (setenv "QT_QPA_PLATFORM" "offscreen")
+ (setenv "HOME" ".")
+ (setenv "XDG_DATA_DIRS"
+ (string-append
+ share ":" (getenv "XDG_DATA_DIRS")))
+ (invoke "update-desktop-database" "-v" share)))))))
(native-inputs
- (list extra-cmake-modules kdoctools pkg-config))
+ (list extra-cmake-modules kdoctools pkg-config
+ ;; for test
+ desktop-file-utils))
(inputs
(list ebook-tools
breeze-icons
@@ -1327,7 +1345,8 @@ creating routes by drag and drop and more.")
qtwayland-5
threadweaver
kcrash
- kjs))
+ kjs
+ qtx11extras))
(home-page "https://apps.kde.org/okular/")
(synopsis "Document viewer")
(description
- 108/332: gnu: kde-frameworkintegration: Update to 5.108.0., (continued)
- 108/332: gnu: kde-frameworkintegration: Update to 5.108.0., guix-commits, 2023/08/03
- 110/332: gnu: grantlee: Update to 5.3.1., guix-commits, 2023/08/03
- 114/332: gnu: libkomparediff2: Update to 23.04.3., guix-commits, 2023/08/03
- 117/332: gnu: poxml: Update to 23.04.3., guix-commits, 2023/08/03
- 120/332: gnu: libkdegames: Update to 23.04.3., guix-commits, 2023/08/03
- 126/332: gnu: kpmcore: Update to 23.04.3., guix-commits, 2023/08/03
- 132/332: gnu: marble-qt: Use G-expressions., guix-commits, 2023/08/03
- 124/332: gnu: kdeconnect: Update to 23.04.3., guix-commits, 2023/08/03
- 131/332: gnu: marble-qt: Update to 23.04.3., guix-commits, 2023/08/03
- 144/332: gnu: bluedevil: Update to 5.27.6., guix-commits, 2023/08/03
- 133/332: gnu: okular: Update to 23.04.3.,
guix-commits <=
- 156/332: gnu: kwrited: Update to 5.27.6., guix-commits, 2023/08/03
- 141/332: gnu: ksystemlog: Update to 23.04.3., guix-commits, 2023/08/03
- 157/332: gnu: milou: Update to 5.27.6., guix-commits, 2023/08/03
- 149/332: gnu: breeze-gtk: Update to 5.27.6., guix-commits, 2023/08/03
- 161/332: gnu: plasma-firewall: Update to 5.27.6., guix-commits, 2023/08/03
- 163/332: gnu: plasma-pa: Update to 5.27.6., guix-commits, 2023/08/03
- 166/332: gnu: kongress: Update to 23.01.0., guix-commits, 2023/08/03
- 169/332: gnu: kscreen: Update to 5.27.6., guix-commits, 2023/08/03
- 178/332: gnu: kscreenlocker: Update to 5.27.6., guix-commits, 2023/08/03
- 179/332: gnu: kscreenlocker: Format with 'guix style'., guix-commits, 2023/08/03