[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/18: gnu: rnp: Improve package style.
From: |
guix-commits |
Subject: |
10/18: gnu: rnp: Improve package style. |
Date: |
Mon, 13 Mar 2023 10:11:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3e7dc94a140e8a230e91af5e57370932457e0946
Author: Jack Hill <jackhill@jackhill.us>
AuthorDate: Thu Mar 2 23:37:13 2023 -0500
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>
---
gnu/packages/openpgp.scm | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/openpgp.scm b/gnu/packages/openpgp.scm
index 422e9bdcd6..9b6f04b407 100644
--- a/gnu/packages/openpgp.scm
+++ b/gnu/packages/openpgp.scm
@@ -118,23 +118,23 @@ environments.")
"-DDOWNLOAD_RUBYRNP=off")
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'fixes
- (lambda* (#:key inputs #:allow-other-keys)
+ (add-after 'unpack 'patch-tests
+ (lambda _
(substitute* "src/tests/support.cpp"
- (("\"cp\"") (string-append "\"" (which "cp") "\"")))
- #t))
+ (("\"cp\"") (search-input-file inputs "/bin/cp")))))
(replace 'check
- (lambda _
- ;; 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"))))))
+ (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
- `(("gnupg" ,gnupg) ; for tests
- ("googletest" ,googletest)
- ("libfaketime" ,libfaketime) ; for tests
- ("pkg-config" ,pkg-config)
- ("python" ,python)))
+ (list gnupg ; for tests
+ googletest ; for tests
+ libfaketime ; for tests
+ pkg-config
+ python))
(inputs (list botan bzip2 json-c zlib))
(synopsis
"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
developers to build against. It is a “real” library, not a wrapper like GPGME
of GnuPG.")
- (home-page "https://www.rnpgp.com/")
+ (home-page "https://www.rnpgp.org/")
(license
;; RNP contains code written by Ribose and code derived from netpgp.
(list
- branch master updated (d4b2f5eace -> 8304979415), guix-commits, 2023/03/13
- 06/18: packages: 'package-input-rewriting/spec' ignores hidden packages., guix-commits, 2023/03/13
- 08/18: environment: Clear 'TERM' when checking environment., guix-commits, 2023/03/13
- 04/18: doc: %desktop-services: Fix incorrect description., guix-commits, 2023/03/13
- 10/18: gnu: rnp: Improve package style.,
guix-commits <=
- 11/18: gnu: font-iosevka: Update to 20.0.0., guix-commits, 2023/03/13
- 12/18: gnu: Add font-iosevka-ss08., guix-commits, 2023/03/13
- 13/18: gnu: Add font-iosevka-ss09., guix-commits, 2023/03/13
- 14/18: gnu: pumpa: Update upsream URL., guix-commits, 2023/03/13
- 15/18: doc: Fix incorrect @deffn usage for service-types., guix-commits, 2023/03/13
- 17/18: doc: Use @defun for procedures., guix-commits, 2023/03/13
- 16/18: doc: Fix incorrect @deffn usage for data types., guix-commits, 2023/03/13
- 02/18: system: Simplify nsswitch binding., guix-commits, 2023/03/13
- 03/18: system: Remove redundant gexp-ungexp usage., guix-commits, 2023/03/13
- 05/18: packages: Use SRFI-71 instead of SRFI-11., guix-commits, 2023/03/13