summaryrefslogtreecommitdiff
path: root/gnu/packages/disk.scm
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2024-03-23 08:13:49 +0100
committerChristopher Baines <mail@cbaines.net>2024-03-24 10:02:44 +0000
commit939ed8515c75ee6501dd0278f6d18c235b05adc3 (patch)
tree1df605e583997c8161cfe2896e652590c55c0641 /gnu/packages/disk.scm
parent19cd76e3f7a7da7f42e5d576b624897570218928 (diff)
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>
Diffstat (limited to 'gnu/packages/disk.scm')
-rw-r--r--gnu/packages/disk.scm55
1 files changed, 28 insertions, 27 deletions
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index ea18a98ab67..2e2c5739cc0 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
1567 (search-patches "duc-fix-test-sh.patch")))) 1567 (search-patches "duc-fix-test-sh.patch"))))
1568 (build-system gnu-build-system) 1568 (build-system gnu-build-system)
1569 (arguments 1569 (arguments
1570 `(#:phases 1570 (list
1571 (modify-phases %standard-phases 1571 #:phases
1572 (add-after 'unpack 'patch 1572 #~(modify-phases %standard-phases
1573 (lambda* (#:key outputs #:allow-other-keys) 1573 (add-after 'unpack 'patch
1574 (let* ((out (assoc-ref outputs "out"))) 1574 (lambda* (#:key outputs #:allow-other-keys)
1575 (substitute* "src/duc/cmd-ui.c" 1575 (let* ((out (assoc-ref outputs "out")))
1576 (("ncursesw/ncurses.h") "ncurses.h")) 1576 (substitute* "src/duc/cmd-ui.c"
1577 (substitute* "examples/index.cgi" 1577 (("ncursesw/ncurses.h") "ncurses.h"))
1578 (("/usr/local/bin/duc") 1578 (substitute* "examples/index.cgi"
1579 (string-append out "/bin/duc")))))) 1579 (("/usr/local/bin/duc")
1580 (add-after 'install 'install-examples 1580 (string-append out "/bin/duc"))))))
1581 (lambda* (#:key outputs #:allow-other-keys) 1581 (add-after 'install 'install-examples
1582 (let* ((out (assoc-ref outputs "out")) 1582 (lambda* (#:key outputs #:allow-other-keys)
1583 (doc (string-append out "/share/doc/" ,name "-" ,version))) 1583 (let* ((out (assoc-ref outputs "out"))
1584 (copy-recursively "examples" (string-append doc "/examples"))))) 1584 (doc (string-append out "/share/doc/" #$name "-" #$version)))
1585 (replace 'check 1585 (copy-recursively "examples" (string-append doc "/examples")))))
1586 (lambda* (#:key tests? #:allow-other-keys) 1586 (replace 'check
1587 (substitute* "test.sh" 1587 (lambda* (#:key tests? #:allow-other-keys)
1588 ;; Keep the test logs where --keep-failed can see them. 1588 (substitute* "test.sh"
1589 (("^(DUC_TEST_DIR=).*" _ assign) 1589 ;; Keep the test logs where --keep-failed can see them.
1590 (format #f "~a~a/test-directory~%" assign (getcwd))) 1590 (("^(DUC_TEST_DIR=).*" _ assign)
1591 ;; XXX ‘actual size’ differed on my system (a consistent 348160 1591 (format #f "~a~a/test-directory~%" assign (getcwd)))
1592 ;; bytes where the tests expect 540672). However, the ‘apparent 1592 ;; XXX ‘actual size’ differed on my system (a consistent 348160
1593 ;; size’ matches, as does the actual test output. Good enough…? 1593 ;; bytes where the tests expect 540672). However, the ‘apparent
1594 ((" [0-9]*B actual") " [0-9]*B actual")) 1594 ;; size’ matches, as does the actual test output. Good enough…?
1595 (when tests? 1595 ((" [0-9]*B actual") " [0-9]*B actual"))
1596 (invoke "./test.sh"))))))) ; no ‘check’ target 1596 (when tests?
1597 (invoke "./test.sh"))))))) ; no ‘check’ target
1597 (native-inputs 1598 (native-inputs
1598 (list autoconf automake libtool pkg-config)) 1599 (list autoconf automake libtool pkg-config))
1599 (inputs 1600 (inputs