me
/
guix
Archived
1
0
Fork 0

gnu: rnp: Improve package style.

* gnu/package/openpgp.scm (rnp)[phases]{fixes}: Rename fixes to patch-tests, use
search-input-file, and remove trailing #t.
{check}: Respect tests?.
[native-inputs]: Remove labels.
[home-page]: Update URL.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Jack Hill 2023-03-02 23:37:13 -05:00 committed by Ludovic Courtès
parent bc65415fb1
commit 3e7dc94a14
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 16 additions and 16 deletions

View File

@ -118,23 +118,23 @@ environments.")
"-DDOWNLOAD_RUBYRNP=off") "-DDOWNLOAD_RUBYRNP=off")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fixes (add-after 'unpack 'patch-tests
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/tests/support.cpp"
(("\"cp\"") (string-append "\"" (which "cp") "\"")))
#t))
(replace 'check
(lambda _ (lambda _
;; Some OpenPGP certificates used by the tests expire. (substitute* "src/tests/support.cpp"
;; To work around that, set the time to roughly the (("\"cp\"") (search-input-file inputs "/bin/cp")))))
;; release date. (replace 'check
(invoke "faketime" ,day-of-release "make" "test")))))) (lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Some OpenPGP certificates used by the tests expire.
;; To work around that, set the time to roughly the
;; release date.
(invoke "faketime" ,day-of-release "make" "test")))))))
(native-inputs (native-inputs
`(("gnupg" ,gnupg) ; for tests (list gnupg ; for tests
("googletest" ,googletest) googletest ; for tests
("libfaketime" ,libfaketime) ; for tests libfaketime ; for tests
("pkg-config" ,pkg-config) pkg-config
("python" ,python))) python))
(inputs (list botan bzip2 json-c zlib)) (inputs (list botan bzip2 json-c zlib))
(synopsis (synopsis
"RFC4880-compliant OpenPGP library written in C++") "RFC4880-compliant OpenPGP library written in C++")
@ -146,7 +146,7 @@ NetPGP, itself originally written for NetBSD.
librnp is the library used by rnp for all OpenPGP functions, useful for librnp is the library used by rnp for all OpenPGP functions, useful for
developers to build against. It is a real library, not a wrapper like GPGME developers to build against. It is a real library, not a wrapper like GPGME
of GnuPG.") of GnuPG.")
(home-page "https://www.rnpgp.com/") (home-page "https://www.rnpgp.org/")
(license (license
;; RNP contains code written by Ribose and code derived from netpgp. ;; RNP contains code written by Ribose and code derived from netpgp.
(list (list