From patchwork Tue Feb 23 14:22:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 27209 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8428327BC49; Tue, 23 Feb 2021 14:24:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F0B3327BC48 for ; Tue, 23 Feb 2021 14:24:09 +0000 (GMT) Received: from localhost ([::1]:51372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEYbh-0001OL-5s for patchwork@mira.cbaines.net; Tue, 23 Feb 2021 09:24:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEYba-0001OD-Tm for guix-patches@gnu.org; Tue, 23 Feb 2021 09:24:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEYba-0008EN-Mr for guix-patches@gnu.org; Tue, 23 Feb 2021 09:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEYba-0004qi-HN for guix-patches@gnu.org; Tue, 23 Feb 2021 09:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46719] [PATCH] gnu: Add pcg-cpp. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Feb 2021 14:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46719 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46719@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161409018518569 (code B ref -1); Tue, 23 Feb 2021 14:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Feb 2021 14:23:05 +0000 Received: from localhost ([127.0.0.1]:58603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEYaf-0004pQ-9n for submit@debbugs.gnu.org; Tue, 23 Feb 2021 09:23:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:52938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEYad-0004pH-7n for submit@debbugs.gnu.org; Tue, 23 Feb 2021 09:23:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEYad-0001LU-29 for guix-patches@gnu.org; Tue, 23 Feb 2021 09:23:03 -0500 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:39260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEYab-0007kv-2Q for guix-patches@gnu.org; Tue, 23 Feb 2021 09:23:02 -0500 Received: by mail-io1-xd2f.google.com with SMTP id s24so17223483iob.6 for ; Tue, 23 Feb 2021 06:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=rUMuoUP0ma2BHpxcWEwNBoZ/YH5KzMUC59g8nKD7BU0=; b=MzZ9QthYzdK7re/DOw38l4VVKW/gov1XM54C6K1btcjocC3ME/sa0QpbrxNTZtPH6i cNsUcWPidSxTfg0qS+mrD+bGlMfhSOl5UFU/Igmp8EEpMfm0cjhI4wdU1moQFgX/hRPO hLLDXUm9qlR7Hh3BPrm9Y9Zdo3WbU1bRLx2YHcr393ALEKssCmca5rxDzFP76t6ai74E RWz9CIX5tHgKuZ5SYFkPAhVA1LrdV6sdJzZ0lxW4txt5hS7YtCpEHf27Hyo5cagqmDkI U4VIqxgovyUopgDe+oZT44/uRHuIVtE/5rzRYg2wNXEksqSJ3kYysTWtgE2wG1clLI5y tIWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rUMuoUP0ma2BHpxcWEwNBoZ/YH5KzMUC59g8nKD7BU0=; b=PeTpHcUMmmoKDqlEDCOWE1nDNS9iCMSyjoRI436oPDipnMEk5Kg0ANs0uGzigm0ZHq sINcKsAEtjLqDqaqRwjNxXeD0JbNDtcYJ3VYsYdlQT29T5Ky5OQ9MWGBgVUG1/gydbeu OSLVjm7oYd0ZnWFj1YwuKMtvUwUiUnMCwGut57TuDUbYxk0ru82EkphmKLPeHdrKBCu0 2/eIV4KSGbUvh/TaewHhbbKShQgRKgeMC2XQbVCMZ58kClGe4qWIfxOdiXySUGAx/6hX HTqHx/ZZLMMRMD7yeVHynIcQ5G5cWLhbNMCLw70ZV2EbvO8SxJRcECl4HHUg/ti5DK9r rd7g== X-Gm-Message-State: AOAM531Xu2Nlj9VEg10baboTA7EEss6eqEz8+v5R2Zj2j91WjxiSUHpt tbMT0LDqMWMcDNGaSmowxuJ2r1UVwFD3DytUux/GFwNFiEtxnGgB X-Google-Smtp-Source: ABdhPJwNoz/CSiA/MrXV31aEo5xHWD0zC6T6oPXjIm4fpRucbQQBHyjWnDxsvyIN+n+aT5IlPx8RZjcHQYGAbm/5QH4= X-Received: by 2002:a02:7086:: with SMTP id f128mr27372717jac.104.1614090178920; Tue, 23 Feb 2021 06:22:58 -0800 (PST) MIME-Version: 1.0 From: Greg Hogan Date: Tue, 23 Feb 2021 09:22:48 -0500 Message-ID: Received-SPF: none client-ip=2607:f8b0:4864:20::d2f; envelope-from=code@greghogan.com; helo=mail-io1-xd2f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From d4d4c80b63d3f51a11f955fa20f6eefa7e9a1000 Mon Sep 17 00:00:00 2001 From: Greg Hogan 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(+) +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 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