mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: gnupg: Clean up arguments.
* gnu/packages/gnupg.scm (gnupg)[arguments]: Shorten the 'patch-test-paths phase.
This commit is contained in:
parent
e184de5748
commit
92cc6a5801
1 changed files with 12 additions and 20 deletions
|
@ -250,26 +250,18 @@ (define-public gnupg
|
|||
(string-append (getcwd) "/tests/gpgscm/gpgscm")))
|
||||
#t))
|
||||
(add-before 'build 'patch-test-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let* ((coreutils (assoc-ref inputs "coreutils"))
|
||||
(cat (string-append coreutils "/bin/cat"))
|
||||
(pwd (string-append coreutils "/bin/pwd"))
|
||||
(true (string-append coreutils "/bin/true"))
|
||||
(false (string-append coreutils "/bin/false")))
|
||||
(substitute* '("tests/inittests"
|
||||
"tests/pkits/inittests"
|
||||
"tests/Makefile"
|
||||
"tests/pkits/common.sh"
|
||||
"tests/pkits/Makefile"
|
||||
)
|
||||
(("/bin/pwd") pwd))
|
||||
(substitute* "common/t-exectool.c"
|
||||
(("/bin/cat") cat))
|
||||
(substitute* "common/t-exectool.c"
|
||||
(("/bin/true") true))
|
||||
(substitute* "common/t-exectool.c"
|
||||
(("/bin/false") false))
|
||||
#t))))))
|
||||
(lambda _
|
||||
(substitute* '("tests/inittests"
|
||||
"tests/pkits/inittests"
|
||||
"tests/Makefile"
|
||||
"tests/pkits/common.sh"
|
||||
"tests/pkits/Makefile")
|
||||
(("/bin/pwd") (which "pwd")))
|
||||
(substitute* "common/t-exectool.c"
|
||||
(("/bin/cat") (which "cat"))
|
||||
(("/bin/true") (which "true"))
|
||||
(("/bin/false") (which "false")))
|
||||
#t)))))
|
||||
(home-page "https://gnupg.org/")
|
||||
(synopsis "GNU Privacy Guard")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue