[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: gnu: duc: Update style.
From: |
guix-commits |
Subject: |
05/09: gnu: duc: Update style. |
Date: |
Sun, 24 Mar 2024 06:18:13 -0400 (EDT) |
cbaines pushed a commit to branch gnome-team
in repository guix.
commit 939ed8515c75ee6501dd0278f6d18c235b05adc3
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Sat Mar 23 08:13:49 2024 +0100
gnu: duc: Update style.
* gnu/packages/disk.scm (duc) [arguments]: Convert to list of G-Expressions.
Change-Id: Iefcdcc55b1e71f7e866cb04795ef74f3b675cfce
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/disk.scm | 55 ++++++++++++++++++++++++++-------------------------
1 file changed, 28 insertions(+), 27 deletions(-)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index ea18a98ab6..2e2c5739cc 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -1567,33 +1567,34 @@ reliably with @code{bmaptool} than with traditional
tools, like @code{dd} or
(search-patches "duc-fix-test-sh.patch"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out")))
- (substitute* "src/duc/cmd-ui.c"
- (("ncursesw/ncurses.h") "ncurses.h"))
- (substitute* "examples/index.cgi"
- (("/usr/local/bin/duc")
- (string-append out "/bin/duc"))))))
- (add-after 'install 'install-examples
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (string-append out "/share/doc/" ,name "-" ,version)))
- (copy-recursively "examples" (string-append doc "/examples")))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (substitute* "test.sh"
- ;; Keep the test logs where --keep-failed can see them.
- (("^(DUC_TEST_DIR=).*" _ assign)
- (format #f "~a~a/test-directory~%" assign (getcwd)))
- ;; XXX ‘actual size’ differed on my system (a consistent 348160
- ;; bytes where the tests expect 540672). However, the ‘apparent
- ;; size’ matches, as does the actual test output. Good enough…?
- ((" [0-9]*B actual") " [0-9]*B actual"))
- (when tests?
- (invoke "./test.sh"))))))) ; no ‘check’ target
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (substitute* "src/duc/cmd-ui.c"
+ (("ncursesw/ncurses.h") "ncurses.h"))
+ (substitute* "examples/index.cgi"
+ (("/usr/local/bin/duc")
+ (string-append out "/bin/duc"))))))
+ (add-after 'install 'install-examples
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/" #$name "-"
#$version)))
+ (copy-recursively "examples" (string-append doc
"/examples")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (substitute* "test.sh"
+ ;; Keep the test logs where --keep-failed can see them.
+ (("^(DUC_TEST_DIR=).*" _ assign)
+ (format #f "~a~a/test-directory~%" assign (getcwd)))
+ ;; XXX ‘actual size’ differed on my system (a consistent 348160
+ ;; bytes where the tests expect 540672). However, the
‘apparent
+ ;; size’ matches, as does the actual test output. Good
enough…?
+ ((" [0-9]*B actual") " [0-9]*B actual"))
+ (when tests?
+ (invoke "./test.sh"))))))) ; no ‘check’ target
(native-inputs
(list autoconf automake libtool pkg-config))
(inputs
- branch gnome-team updated (f7ba5df8b0 -> da381e2334), guix-commits, 2024/03/24
- 04/09: gnu: duc: Fix build., guix-commits, 2024/03/24
- 02/09: gnu: conan: Disable flaky test., guix-commits, 2024/03/24
- 07/09: gnu: lightdm: Update style., guix-commits, 2024/03/24
- 08/09: gnu: Add dbus-1.15.0., guix-commits, 2024/03/24
- 01/09: gnu: shotwell: Update to 0.32.6., guix-commits, 2024/03/24
- 03/09: gnu: pdfpc: Fix build with vala 0.56., guix-commits, 2024/03/24
- 06/09: gnu: pango-1.90: Disable failing test., guix-commits, 2024/03/24
- 05/09: gnu: duc: Update style.,
guix-commits <=
- 09/09: gnu: lightdm: Run tests with dbus-1.15.0., guix-commits, 2024/03/24