unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46719] [PATCH] gnu: Add pcg-cpp.
@ 2021-02-23 14:22 Greg Hogan
  2021-03-02 19:34 ` bug#46719: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Hogan @ 2021-02-23 14:22 UTC (permalink / raw)
  To: 46719


[-- Attachment #1.1: Type: text/plain, Size: 1987 bytes --]

From d4d4c80b63d3f51a11f955fa20f6eefa7e9a1000 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code@greghogan.com>
Date: Tue, 23 Feb 2021 14:11:06 +0000
Subject: [PATCH] gnu: Add pcg-cpp.

* gnu/packages/cpp.scm (pcg-cpp): New variable.
---
 gnu/packages/cpp.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 685dc02fca..53f20e46af 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -954,3 +954,32 @@ conversions to and from strings, iteration and related
functionality.")
 feature set with a simple and intuitive interface.")
     (home-page "https://cliutils.github.io/CLI11/book/")
     (license license:bsd-3)))
+
+(define-public pcg-cpp
+  (let ((commit "5b5cac8d61339e810c5dbb4692d868a1d7ca1b2d")
+        (revision "1"))
+    (package
+      (name "pcg-cpp")
+      (version (git-version "0.98.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/imneme/pcg-cpp")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+
 "1s9dcd4iydlc1xj9m6f7c52nlyx99klk043sk7arqy6kp7gdaa33"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:test-target "test"
+         #:phases
+          (modify-phases %standard-phases
+            (delete 'configure))
+         #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs
"out")))))
+      (synopsis "C++11 header only library for random number generation")
+      (description "The Permuted Congruential Generator (PCG) extends the
+Linear Congruential Generator (LCG) with a permutation function to increase
+output randomness while retaining speed, simplicity, and conciseness.")
+      (home-page "http://www.pcg-random.org")
+      (license (list license:expat license:asl2.0))))) ; dual licensed
--
2.30.1

[-- Attachment #1.2: Type: text/html, Size: 3012 bytes --]

[-- Attachment #2: 0001-gnu-Add-pcg-cpp.patch --]
[-- Type: application/octet-stream, Size: 2005 bytes --]

From d4d4c80b63d3f51a11f955fa20f6eefa7e9a1000 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code@greghogan.com>
Date: Tue, 23 Feb 2021 14:11:06 +0000
Subject: [PATCH] gnu: Add pcg-cpp.

* gnu/packages/cpp.scm (pcg-cpp): New variable.
---
 gnu/packages/cpp.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 685dc02fca..53f20e46af 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -954,3 +954,32 @@ conversions to and from strings, iteration and related functionality.")
 feature set with a simple and intuitive interface.")
     (home-page "https://cliutils.github.io/CLI11/book/")
     (license license:bsd-3)))
+
+(define-public pcg-cpp
+  (let ((commit "5b5cac8d61339e810c5dbb4692d868a1d7ca1b2d")
+        (revision "1"))
+    (package
+      (name "pcg-cpp")
+      (version (git-version "0.98.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/imneme/pcg-cpp")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1s9dcd4iydlc1xj9m6f7c52nlyx99klk043sk7arqy6kp7gdaa33"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:test-target "test"
+         #:phases
+          (modify-phases %standard-phases
+            (delete 'configure))
+         #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
+      (synopsis "C++11 header only library for random number generation")
+      (description "The Permuted Congruential Generator (PCG) extends the
+Linear Congruential Generator (LCG) with a permutation function to increase
+output randomness while retaining speed, simplicity, and conciseness.")
+      (home-page "http://www.pcg-random.org")
+      (license (list license:expat license:asl2.0))))) ; dual licensed
-- 
2.30.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#46719: [PATCH] gnu: Add pcg-cpp.
  2021-02-23 14:22 [bug#46719] [PATCH] gnu: Add pcg-cpp Greg Hogan
@ 2021-03-02 19:34 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-03-02 19:34 UTC (permalink / raw)
  To: Greg Hogan; +Cc: 46719-done

Hi,

Greg Hogan <code@greghogan.com> skribis:

> From d4d4c80b63d3f51a11f955fa20f6eefa7e9a1000 Mon Sep 17 00:00:00 2001
> From: Greg Hogan <code@greghogan.com>
> Date: Tue, 23 Feb 2021 14:11:06 +0000
> Subject: [PATCH] gnu: Add pcg-cpp.
>
> * gnu/packages/cpp.scm (pcg-cpp): New variable.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-02 19:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-23 14:22 [bug#46719] [PATCH] gnu: Add pcg-cpp Greg Hogan
2021-03-02 19:34 ` bug#46719: " Ludovic Courtès

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).