mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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>
This commit is contained in:
parent
19cd76e3f7
commit
939ed8515c
1 changed files with 28 additions and 27 deletions
|
@ -1567,33 +1567,34 @@ (define-public duc
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue