From patchwork Thu Jun 29 10:18:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 51414 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 6235927BBE9; Thu, 29 Jun 2023 11:19:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 50F9F27BBE2 for ; Thu, 29 Jun 2023 11:19:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEojy-0008Vx-5u; Thu, 29 Jun 2023 06:19:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEojv-0008Vd-EZ for guix-patches@gnu.org; Thu, 29 Jun 2023 06:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEoju-0005iV-NC for guix-patches@gnu.org; Thu, 29 Jun 2023 06:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEoju-0003ZH-Ik for guix-patches@gnu.org; Thu, 29 Jun 2023 06:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63065] [PATCH v2 03/16] gnu: Add function2. References: In-Reply-To: Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Jun 2023 10:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63065 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "63065@debbugs.gnu.org" <63065@debbugs.gnu.org> Received: via spool by 63065-submit@debbugs.gnu.org id=B63065.168803392713687 (code B ref 63065); Thu, 29 Jun 2023 10:19:02 +0000 Received: (at 63065) by debbugs.gnu.org; 29 Jun 2023 10:18:47 +0000 Received: from localhost ([127.0.0.1]:52323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEoje-0003Yh-LM for submit@debbugs.gnu.org; Thu, 29 Jun 2023 06:18:46 -0400 Received: from mail-4324.protonmail.ch ([185.70.43.24]:26569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEojb-0003Y9-WE for 63065@debbugs.gnu.org; Thu, 29 Jun 2023 06:18:45 -0400 Date: Thu, 29 Jun 2023 10:18:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1688033917; x=1688293117; bh=mNGBJZQKyQSVZeCQghMp+sbjFQTOdEYDez5HKaMKu+o=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=P/YHdgl88YI19oDzNFvTgkMuHxLZQH5m9QaYZVdNBM27H6XcWn/s5FSBNyP0bBnhk rh/m6Nl7kG5GXoScf5QGlqSD2EMb2f+acsFqZcrT7fR8CEw+i8XZFbftUBM8ZKHsE/ 46odfCb+fFMqemsi1tuTMet1dgwf/NwGsmFsbp5xVtUE3ZZoGQ9uvQm5X8OgPm8YCb dmKrldvfk8lrtP9R5THfRq6ebhk2EiQwi5L6/VT0VbBkCKfS6fqVSZaS3O2w8wH6Ei YGD+SlJLim6HaBL06PlmqL5vvOvEFcuxHSx+EyLTeKQCvoSBpM4vIUtPnpmcvFSul0 7R2LoGme4l2YA== Message-ID: Feedback-ID: 45211691:user:proton MIME-Version: 1.0 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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (function2): New variable. --- gnu/packages/cpp.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 40640202f9..46a7b61021 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2118,6 +2118,39 @@ (define-public bitsery (home-page "https://github.com/fraillt/bitsery") (license license:expat))) +(define-public function2 + (package + (name "function2") + (version "4.2.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Naios/function2") + (commit version) + ;; Tests require to compile googletest with custom + ;; features. + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xayd46d19k2b4q8413kp0453wc2k4jbrq7fq9rilcgmdk9m5bmc")))) + (build-system cmake-build-system) + ;; The test size_match_layout fails on i586/i686. For more info: + ;; https://github.com/Naios/function2/issues/57 + (arguments + (list #:tests? #f)) + (synopsis "Improved implementations of std::function") + (description "This package provides the following implementations of +std::function: +@itemize +@item copyable fu2::function +@item move-only fu2::unique_function (capable of holding move only types) +@item non-owning fu2::function_view (capable of referencing callables in a non +owning way) +@end itemize") + (home-page "https://naios.github.io/function2/") + (license license:boost1.0))) + (define-public cpp-mustache (package (name "cpp-mustache")