gnu: ncdu2: Delete pregenerated man page from source.
* gnu/packages/ncdu.scm (ncdu2)[source]: Add a snippet. [arguments]: Adjust 'build-manpage phase accordingly.master
parent
a4e98faa1e
commit
7951892d39
|
@ -66,7 +66,12 @@ ncurses installed.")
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0hfimrr7z9zrfkiyj09i8nh4a1rjn7d00y9xzpc7mkyqpkvghjjy"))))
|
"0hfimrr7z9zrfkiyj09i8nh4a1rjn7d00y9xzpc7mkyqpkvghjjy"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
#~(begin
|
||||||
|
;; Delete a pregenerated man page. We'll build it ourselves.
|
||||||
|
(delete-file "ncdu.1")))))
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:make-flags
|
#:make-flags
|
||||||
|
@ -83,7 +88,6 @@ ncurses installed.")
|
||||||
(mkdtemp "/tmp/zig-cache-XXXXXX"))))
|
(mkdtemp "/tmp/zig-cache-XXXXXX"))))
|
||||||
(add-after 'build 'build-manpage
|
(add-after 'build 'build-manpage
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file "ncdu.1")
|
|
||||||
(invoke "make" "doc")))
|
(invoke "make" "doc")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
|
Reference in New Issue