From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kERfOrAWQmVQdQEA9RJhRA:P1 (envelope-from ) for ; Wed, 01 Nov 2023 10:13:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kERfOrAWQmVQdQEA9RJhRA (envelope-from ) for ; Wed, 01 Nov 2023 10:13:21 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D185615A42 for ; Wed, 1 Nov 2023 10:13:20 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=IY+VkC4S; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698830000; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=73wehDc/iKaYfPrW2MkB5LutGMAqSxBlHT64QkmGcOs=; b=in61Yq34o3JOVdc8gVq8gJfLn8AIViwjk41dYcy+HXLYTl+j9XFtHUh8pf0g42gIeOIMFw hjgv3tSP6Wzuq14IBxzPR4bYCv6j626cIp31yj/zi5WvVsWgthS/EAl4KPI4q5xAcB0aSs 9xDLNXS2WyiIFnfhpq+7pRsT+5vCbhzLqVsax9JFOofPLnyWlxM0KHSzJoWBAXrHfW+fZt NYwjMr/HUIJTD+M3HSsJTCK0+hX1DLz33rIymGGw80tA8SUNJkTxd65aT2X2ZhY6RiaDQX 2R6sirS4tbf4UmAl3YENYhDaL3qylaIxZWM83dFniGB/38jY52ILVMwyVKQ4BQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=IY+VkC4S; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698830000; a=rsa-sha256; cv=none; b=sr9erI9yncbjUE9khnftHq+cffNwUAIozQgT6pL5FCq8ZTBK1rjXHbJesVZINcLxkFLKq+ 66f66cuoRLgkIaFi0lZRTWQAWYXFPRdj+VXdUF1kMQjNxPl2KZSPmYB9v+mq3Ng2wwTiQc 6JFP67juwhxmrGiPumr5O2ekC7MvUkj1HX2Xe/4KmF7tCRQPaHKvZ++vguxqvld3I6duQi ppM6hQA/KWB8m55WRDEfi8qJTnWfnmORhz7LXeZ012k2GEMDNnZDmacyGww+OwDakJ6Xu4 ojBIbvz5WGdFHSIbsIvY2x3E+0KP9h8Yl2afvBkZnWCrQ+657OSOgBKekyqt/Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qy7F9-0000Ud-Cq; Wed, 01 Nov 2023 05:10:31 -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 1qy7F7-0000Sc-ER for guix-patches@gnu.org; Wed, 01 Nov 2023 05:10:29 -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 1qy7F7-0000KJ-69 for guix-patches@gnu.org; Wed, 01 Nov 2023 05:10:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qy7Ff-0004KS-CO for guix-patches@gnu.org; Wed, 01 Nov 2023 05:11:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66870] [PATCH 3/6] gnu: Add function2. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Nov 2023 09:11:03 +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.169882984516553 (code B ref 66870); Wed, 01 Nov 2023 09:11:03 +0000 Received: (at 66870) by debbugs.gnu.org; 1 Nov 2023 09:10:45 +0000 Received: from localhost ([127.0.0.1]:49841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qy7FN-0004Ir-Fi for submit@debbugs.gnu.org; Wed, 01 Nov 2023 05:10:45 -0400 Received: from layka.disroot.org ([178.21.23.139]:48486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qy7FK-0004Ij-8r for 66870@debbugs.gnu.org; Wed, 01 Nov 2023 05:10:43 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4CED644F36; Wed, 1 Nov 2023 10:10:07 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HeH3lPEpav9f; Wed, 1 Nov 2023 10:10:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1698829806; bh=RnaNQyNHhTHG2H+Q4uC3RF8dnJXzrkdVuEiMsb5lLCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=IY+VkC4SqtUWYGNx54iU/Poy2wn5x4eJEA9vtuq7NgLuBI2O1N/uMabPmafVc51Mu dY2hj598UdB8r0w0bt/TdLsPvwYltZ+DxAS7A6BMuv6aWd7oJ2wKYnEvS7yndX9Deb 3Tt3JTqceC3CkqPbDSw6LNpV4r1H0JXznZ2YzsTREGtfPiEX/PvpSjWW5j1k7I9av0 zJy277Gq/aBTkJ0oQPtuL60AXMO+HAeVBVTZWxZg7XVe0RF8bg95Ojjq6gaNr35Ulv IMQwpVg1YmrYIi9nfTkF7NZEqrNwGWyXrd+KYXBWeEM+PaALPqc1GKzDLdxLOEzCm+ O87i2z/bhwZ8Q== Date: Wed, 1 Nov 2023 10:09:39 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.11 X-Spam-Score: -6.11 X-Migadu-Queue-Id: D185615A42 X-Migadu-Scanner: mx13.migadu.com X-TUID: fqBg7OjvB+wP From: Sughosha * gnu/packages/cpp.scm (function2): New variable. Change-Id: I29eb928aa943fa6b796d699271ca523075d44d38 --- gnu/packages/cpp.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 7d91c72489..6c99f39639 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2302,6 +2302,39 @@ (define-public bitsery (home-page "https://github.com/fraillt/bitsery") (license license:expat))) +(define-public function2 + (package + (name "function2") + (version "4.2.3") + (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 + "0zdi6jk3srjkx82kbmd9rfmj9c1rr2xlsz2hbdcjvcjp63vzzxd1")))) + (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") -- 2.41.0