From patchwork Mon Oct 28 09:46:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 69586 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 907AA27BBEA; Mon, 28 Oct 2024 09:48:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A autolearn=ham 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 3987127BBE2 for ; Mon, 28 Oct 2024 09:48:54 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5MMQ-0004ZO-VY; Mon, 28 Oct 2024 05:48:30 -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 1t5MMN-0004YP-EO for guix-patches@gnu.org; Mon, 28 Oct 2024 05:48:28 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5MMM-0002fv-E8 for guix-patches@gnu.org; Mon, 28 Oct 2024 05:48:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=UursR2eJc5NRKHjOrL9U3P75dZn1pH3p/fk28R1Wf1c=; b=NmRCkZcKjWnNhB81JD9hWlxB4FGmkl0tkdoNxirz3Gi/se2QjUgEUW1lcagDdDI4wyXr8M1Iv80yRrzz+lRpJLg4YOA+3fDB8+HuEAt3FOlEbmqqWmmSqID0s8jJZFOqGxQnTV0AI10jeYKdomyngKhYKzft6yKo52yRAH1xRBMHqMtQS+c/rGFqr1r0kVNH9LkVM1Ivbz49X7+a8UPEr/9/f34zNEGoE2/W71kzkeMLdh9/NtyNt7GKTPHl3wDd6rIYsW+OOt4kGNDhiIjtrTbyy7SN3OWoRzYY89JhNpYJ0LbcTFKjz57Oc5cvLLvTzvcy+XFtOsy0ARK3mLhkvQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5MMw-0006nU-7P for guix-patches@gnu.org; Mon, 28 Oct 2024 05:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66870] [PATCH v4 2/5] gnu: Add function2. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Oct 2024 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66870 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66870@debbugs.gnu.org Cc: Sughosha Received: via spool by 66870-submit@debbugs.gnu.org id=B66870.173010888626026 (code B ref 66870); Mon, 28 Oct 2024 09:49:02 +0000 Received: (at 66870) by debbugs.gnu.org; 28 Oct 2024 09:48:06 +0000 Received: from localhost ([127.0.0.1]:52586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5MM1-0006lh-PV for submit@debbugs.gnu.org; Mon, 28 Oct 2024 05:48:06 -0400 Received: from 20.mo583.mail-out.ovh.net ([91.121.55.239]:48579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5MLw-0006kv-TK for 66870@debbugs.gnu.org; Mon, 28 Oct 2024 05:48:02 -0400 Received: from director2.ghost.mail-out.ovh.net (unknown [10.109.176.32]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4XcT7m2Mtgz1WHL for <66870@debbugs.gnu.org>; Mon, 28 Oct 2024 09:47:15 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-rdg64 (unknown [10.110.101.126]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 781011FEEA; Mon, 28 Oct 2024 09:46:56 +0000 (UTC) Received: from ngraves.fr ([37.59.142.100]) by ghost-submission-5b5ff79f4f-rdg64 with ESMTPSA id ouFdDJBdH2coECMAGFRN/A (envelope-from ); Mon, 28 Oct 2024 09:46:56 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-100R003868fd224-c4f2-4612-b5ef-e8323ff5e9de, 2EBFFEBE9A2CEA4974D3D0C7E73B7B071B2C9EDA) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 89.85.243.20 Date: Mon, 28 Oct 2024 10:46:34 +0100 Message-ID: <20241028094646.3557-2-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241028094646.3557-1-ngraves@ngraves.fr> References: <20241028094646.3557-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 6741888645220590090 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 49 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejjedgieelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucgoufhushhpvggtthffohhmrghinhculdegledmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeduteehuedtjeejteelfeduhfefvdehledtjeefgeefjeeiledufffgveevvdfgudenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgihhthhhusgdrihhonecukfhppeduvdejrddtrddtrddupdekledrkeehrddvgeefrddvtddpfeejrdehledrudegvddruddttdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepieeikeejtdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=UursR2eJc5NRKHjOrL9U3P75dZn1pH3p/fk28R1Wf1c=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1730108836; v=1; b=ITrKe0NhuC58FA4GKkSm/4fPNyuecNL+88Ac9dx08HViK64UKIne5JZGZGJb/QPR7v4ozp7v KsetzRuHhu2pYwvQQ/hBype+JrdblXay/dS1K5B0RVIjyEgMfI6a8dzZWfLBW34O7f8DWKJ2EY+ 3M35hrHlhxuG8UHzLzuJ/vh4Cx6bCEMMyvsHeESVDtr4K4Yd0QU10+/LqdRxNhz0K7kqdbYwfBQ zqU/OWqH/FE+76YSCyNMvCVKJ5DAp9Xml/wR93eeEW1d6jj/st62mRQI5vZ6eTl8M+W3G/BwrQI zon6YeIttctwo2q+flM8+O+Q83Kvh49LPskDnWwX7JidQ== 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: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves 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 From: Sughosha * gnu/packages/cpp.scm (function2): New variable. Change-Id: I29eb928aa943fa6b796d699271ca523075d44d38 --- gnu/packages/cpp.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 8cc7cfb1b0..9899fc595d 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2595,6 +2595,36 @@ (define-public bitsery (home-page "https://github.com/fraillt/bitsery") (license license:expat))) +(define-public function2 + (package + (name "function2") + (version "4.2.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Naios/function2") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15k8i872s2jpwbpxfq42lr96q9wplvr8gjs2msf5i4ylyp846dgf")))) + (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")