From: Jack Hill <jackhill@jackhill.us>
To: 61928@debbugs.gnu.org
Subject: [bug#61928] [PATCH 2/2] gnu: rnp: Improve package style.
Date: Thu, 2 Mar 2023 23:37:13 -0500 [thread overview]
Message-ID: <20230303043713.18948-2-jackhill@jackhill.us> (raw)
In-Reply-To: <20230303043713.18948-1-jackhill@jackhill.us>
* 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.
---
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 @@ (define-public rnp
"-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 @@ (define-public rnp
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
--
2.39.1
next prev parent reply other threads:[~2023-03-03 4:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 4:31 [bug#61928] [PATCH 0/2] Update and style-ize rnp Jack Hill
2023-03-03 4:37 ` [bug#61928] [PATCH 1/2] gnu: rnp: Update to 0.16.2 Jack Hill
2023-03-03 4:37 ` Jack Hill [this message]
2023-03-13 14:07 ` bug#61928: [PATCH 0/2] Update and style-ize rnp Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230303043713.18948-2-jackhill@jackhill.us \
--to=jackhill@jackhill.us \
--cc=61928@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).