me
/
guix
Archived
1
0
Fork 0

gnu: gnupg@2.0: Add the 'gpg' and 'gpgv' commands.

* gnu/packages/gnupg.scm (gnupg-2.0)[arguments]: Add
'rename-v2-commands' phase.
master
Ludovic Courtès 2016-07-24 22:15:54 +02:00
parent 80c47cf8e4
commit bc85b127df
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 14 additions and 1 deletions

View File

@ -284,7 +284,20 @@ libskba (working with X.509 certificates and CMS data).")
(lambda _
(substitute* "tests/openpgp/Makefile.in"
(("/bin/sh") (which "bash")))
#t)))))))
#t))
(add-after 'install 'rename-v2-commands
(lambda* (#:key outputs #:allow-other-keys)
;; Upstream suggests removing the trailing '2' from command names:
;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>.
(let ((out (assoc-ref outputs "out")))
(with-directory-excursion (string-append out "/bin")
(rename-file "gpgv2" "gpgv")
(rename-file "gpg2" "gpg")
;; Keep the old name around to ease transition.
(symlink "gpgv" "gpgv2")
(symlink "gpg" "gpg2")
#t)))))))))
(define-public gnupg-1
(package (inherit gnupg)