Subject: [bug#55379] [PATCH 01/14] gnu: Add r-gpg.

From: Kyle Andrews <[email-masked]>
Date: Sun, 15 May 2022 16:24:42 +0000

Hi Maxime,

Here is the version of the GPG package which I intended to send in the
first place with the verbiage about GPG4WIN removed per your suggestion.

8<------------------------------------------------------------------------------------
(define-public r-gpg
  (package
    (name "r-gpg")
    (version "1.2.6")
    (source
     (origin
       (method url-fetch)
       (uri (cran-uri "gpg" version))
       (sha256
        (base32 "17rvi3qff2kanqr3g20dzhn48bfh5sv57g0wsamndzcif7rhjhby"))))
    (properties `((upstream-name . "gpg")))
    (build-system r-build-system)
    (propagated-inputs (list r-askpass r-curl))
    (native-inputs (list pkg-config r-knitr gpgme gnupg))
    (home-page "https://github.com/jeroen/gpg")
    (synopsis "GNU Privacy Guard for R")
    (description
     "Bindings to GnuPG for working with OpenGPG (RFC4880) cryptographic methods.
Includes utilities for public key encryption, creating and verifying digital
signatures, and managing your local keyring.  Some functionality depends on the
version of GnuPG that is installed on the system.")
    (license license:expat)))
------------------------------------------------------------------------------------>8

I have also attached a new patch.

Kyle

>From 23af100007b123ee093cff333b2235b9cb394d2e Mon Sep 17 00:00:00 2001
Message-Id: <[email-masked]>
From: Kyle Andrews <[email-masked]>
Date: Sun, 15 May 2022 12:33:26 -0400
Subject: [PATCH] gnu: Add r-gpg.

---
 gnu/packages/cran.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 5c05f20ea7..b34eba8f76 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -33255,3 +33255,26 @@ (define-public r-zoeppritz
 coefficients or scattering amplitudes, for seismological P and S-waves at an
 interface.")
     (license license:gpl2+)))
+
+(define-public r-gpg
+  (package
+    (name "r-gpg")
+    (version "1.2.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "gpg" version))
+       (sha256
+        (base32 "17rvi3qff2kanqr3g20dzhn48bfh5sv57g0wsamndzcif7rhjhby"))))
+    (properties `((upstream-name . "gpg")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-askpass r-curl))
+    (native-inputs (list pkg-config r-knitr gpgme gnupg))
+    (home-page "https://github.com/jeroen/gpg")
+    (synopsis "GNU Privacy Guard for R")
+    (description
+     "Bindings to GnuPG for working with OpenGPG (RFC4880) cryptographic methods.
+Includes utilities for public key encryption, creating and verifying digital
+signatures, and managing your local keyring.  Some functionality depends on the
+version of GnuPG that is installed on the system.")
+    (license license:expat)))
-- 
2.36.0

Maxime Devos <[email-masked]> writes:

> [[PGP Signed Part:Undecided]]
> Kyle Andrews schreef op za 14-05-2022 om 16:53 [+0000]:
>> > [[PGP Signed Part:Undecided]]
>> > kyle schreef op do 12-05-2022 om 02:10 [+0000]:
>> > > +   (propagated-inputs
>> > > +    `(("r-askpass" ,r-askpass) ("r-curl" ,r-curl)))
>> > 
>> > Can probably be simplified to (propagated-inputs (list r-askpass)).
>> > 
>> 
>> According to the ~DESCRIPTION~ file the package will not build
>> without
>> both askpass and curl R packages. So, I will leave those in.
>
> Oops I meant (propagated-inputs (list r-askpass r-curl)) here -- keep
> the inputs, but remove the labels, as per
> <https://guix.gnu.org/en/blog/2021/the-big-change/>.
>
> Greetings,
> Maxime.
>
> [[End of PGP Signed Part]]