[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/17: gnu: qtpass: Switch to qt-build-system and new package style.
From: |
guix-commits |
Subject: |
13/17: gnu: qtpass: Switch to qt-build-system and new package style. |
Date: |
Tue, 13 Feb 2024 06:34:50 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 608b9a1c868c9ed4cdcd9c06b879b5c72880fa48
Author: Timotej Lazar <timotej.lazar@araneo.si>
AuthorDate: Wed Feb 7 22:23:34 2024 +0100
gnu: qtpass: Switch to qt-build-system and new package style.
* gnu/packages/password-utils.scm (qtpass): Use qt-build-system.
[arguments]: Drop 'wrap-qt and 'check-setup phases. Drop the unnecessary
'reset-resource-timestamps phase. Use new package style for remaining
phases.
[inputs]: Drop qtbase-5.
Change-Id: I23a0b8dfd1fdfeca343704d3df084c522b319d30
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/password-utils.scm | 79 ++++++++++++++---------------------------
1 file changed, 26 insertions(+), 53 deletions(-)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 0f88fab2d9..1547acf1be 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -862,63 +862,36 @@ key URIs using the standard otpauth:// scheme.")
(file-name (git-file-name name version))
(sha256
(base32 "10ixahm4ap0l1rrz4cyswblm22ns9z1baf5lv3dn23wprfdcp8m0"))))
- (build-system gnu-build-system)
+ (build-system qt-build-system)
(arguments
- `(#:modules ((guix build gnu-build-system)
- (guix build qt-utils)
- (guix build utils))
- #:imported-modules (,@%gnu-build-system-modules
- (guix build qt-utils))
- #:phases
- (modify-phases %standard-phases
- (replace 'configure
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- ;; lupdate/lrelease need to find qmake.
- (setenv "QMAKE" "qmake")
- ;; qmake needs to find lrelease/lupdate.
- (invoke "qmake"
- "QMAKE_LRELEASE=lrelease"
- "QMAKE_LUPDATE=lupdate"
- (string-append "PREFIX=" out)))))
- (add-after 'configure 'reset-resource-timestamps
- ;; Reset timestamps on localization files for a reproducible build.
- (lambda _
- (with-directory-excursion "localization"
- (for-each (lambda (file)
- (let* ((base (basename file ".qm"))
- (src (string-append base ".ts"))
- (st (stat src)))
- (set-file-time file st)))
- (find-files "." ".*\\.qm")))
- #t))
- (add-after 'install 'install-auxilliary
- ;; Install man-page, icon and .desktop file.
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (applications (string-append out "/share/applications"))
- (icons (string-append out
"/share/icons/hicolor/scalable/apps"))
- (man (string-append out "/share/man/man1")))
- (install-file "qtpass.desktop" applications)
- (install-file "artwork/icon.svg" icons)
- (rename-file (string-append icons "/icon.svg")
- (string-append icons "/qtpass-icon.svg"))
- (install-file "qtpass.1" man)
- #t)))
- (add-after 'install 'wrap-qt
- (lambda* (#:key outputs inputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (wrap-qt-program "qtpass" #:output out #:inputs inputs))
- #t))
- (add-before 'check 'check-setup
- ;; Make Qt render "offscreen", required for tests.
- (lambda _
- (setenv "QT_QPA_PLATFORM" "offscreen")
- #t)))))
+ (list
+ #:test-target "check"
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda _
+ (invoke "qmake"
+ "QMAKE_LRELEASE=lrelease"
+ "QMAKE_LUPDATE=lupdate"
+ (string-append "PREFIX=" #$output))))
+ (add-before 'check 'pre-check
+ ;; Fontconfig needs a writable cache.
+ (lambda _ (setenv "HOME" "/tmp")))
+ (add-after 'install 'install-auxilliary
+ ;; Install man-page, icon and .desktop file.
+ (lambda _
+ (let ((applications (string-append #$output
"/share/applications"))
+ (icons (string-append #$output
"/share/icons/hicolor/scalable/apps"))
+ (man (string-append #$output "/share/man/man1")))
+ (install-file "qtpass.desktop" applications)
+ (install-file "artwork/icon.svg" icons)
+ (rename-file (string-append icons "/icon.svg")
+ (string-append icons "/qtpass-icon.svg"))
+ (install-file "qtpass.1" man)))))))
(native-inputs
(list qttools-5))
(inputs
- (list qtbase-5 qtsvg-5))
+ (list qtsvg-5))
(home-page "https://qtpass.org")
(synopsis "GUI for password manager password-store")
(description
- 09/17: gnu: freesasa: Fix memerr tests., (continued)
- 09/17: gnu: freesasa: Fix memerr tests., guix-commits, 2024/02/13
- 14/17: gnu: emacs-org-dailies: Update to 0-1.58e58d4., guix-commits, 2024/02/13
- 16/17: gnu: retroarch: Update to 1.17.0., guix-commits, 2024/02/13
- 17/17: gnu: runc: Update to 1.1.12 [security fixes]., guix-commits, 2024/02/13
- 06/17: gnu: coordgenlibs: Update to 3.0.2., guix-commits, 2024/02/13
- 04/17: gnu: gemmi: Update to 0.6.4., guix-commits, 2024/02/13
- 08/17: gnu: avalon-toolkit: Update to 2.0.5a., guix-commits, 2024/02/13
- 10/17: gnu: rdkit: Update to 2023.09.4., guix-commits, 2024/02/13
- 05/17: gnu: maeparser: Update to 1.3.1., guix-commits, 2024/02/13
- 12/17: gnu: qtpass: Update to 1.4.0., guix-commits, 2024/02/13
- 13/17: gnu: qtpass: Switch to qt-build-system and new package style.,
guix-commits <=
- 15/17: gnu: mupdf: Update to 1.23.10., guix-commits, 2024/02/13