From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wJvAAW0RmGQ3VQAASxT56A (envelope-from ) for ; Sun, 25 Jun 2023 12:05:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oPo7AW0RmGQNMgEAauVa8A (envelope-from ) for ; Sun, 25 Jun 2023 12:05:33 +0200 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 D36993AA93 for ; Sun, 25 Jun 2023 12:05:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Jf+VW7hP; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687687532; a=rsa-sha256; cv=none; b=JhZ/ZUzth6WOvUCx0310i1sNxVOsnyfiYivAxWKcwOhSzgGuODLZ5F0S0S4Pe2G44pFmTF wxJkb4x2pkqMfj/3pydnFfNR1J9hXJEuaq6edjEVrHNqWSXp3V0RoPjV5NrYHWPWbtlv4i wR3JQeFu+TIsMQ09oh5GAiW8PhTNtvVNRswNKYUcbsTyIQ+i+E+HlB6Gj0BHXWJ2mrxP7q K0qzl2dt35wDWuTgG4BMzQrCS+5qOingn45GZaY8Rt/HYup/CFMZluQd6QKZOIdWUSjijZ Z+hrAFnllaIkokAQKJKl0xv3c/RTqsvNk3Y4t3xgA4MGCWgb+/CCXOhLF+R1hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Jf+VW7hP; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687687532; h=from:from:sender:sender: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=p9dPbv1ABbo8yRRDk+LnGqhEsVOE4FW+e869HI1uRxY=; b=Kbs/Yvvv5BJ+eWeIy7/mgc1YDWHcfpDxRaqYYa7jjuroo539tzwzzrRfLhAX1CHt0ltTOm yulYj6aOrrJhGIdeCXLTYGc4UkQiXNcduITIJy8u8hJD2pejQg8gMAnYHF2xohbH+5W3RA YexozQCJ0pDNUi2uwUQ5oLl6HE3tkyi+ok2gXr+ALukEic995ssktcxc7+NY6r0kpWSNcE wlpiMvJ4c2ol1Nft6Zs/ejq086CPI/DNga9jlIHVNeRZD59BdklUAfmqQe3I4+48jxhBRP FZwZuaLNHpaQlp05Xir/F2TUB2bekFPKjDl75BfMRX1DCpgaYxLDUId1tiHCGA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDMcF-0002tG-8f; Sun, 25 Jun 2023 06:05:07 -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 1qDMcC-0002q6-PE for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:04 -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 1qDMcC-0008SJ-FU for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDMcC-0000LV-Au for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64137] [PATCH v3 5/7] gnu: Add tl-optional. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jun 2023 10:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64137 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64137@debbugs.gnu.org Cc: David Elsing Received: via spool by 64137-submit@debbugs.gnu.org id=B64137.16876874831245 (code B ref 64137); Sun, 25 Jun 2023 10:05:04 +0000 Received: (at 64137) by debbugs.gnu.org; 25 Jun 2023 10:04:43 +0000 Received: from localhost ([127.0.0.1]:42049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDMbr-0000K0-CS for submit@debbugs.gnu.org; Sun, 25 Jun 2023 06:04:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDMbm-0000JO-6U for 64137@debbugs.gnu.org; Sun, 25 Jun 2023 06:04:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AB6E7240027 for <64137@debbugs.gnu.org>; Sun, 25 Jun 2023 12:04:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687687472; bh=3iOix3E1jH1V27tWxlQrSTINo0DC3WO0vaVFIBN/lxk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=Jf+VW7hPsAy1/nn42rcZVfcsGr/fGA0D3aDAi1vuvbKBTdaTgweBSKi5+Iz6U7evr MnpjXc8FS6yjGnS4L+VKbrbjpJFefbWn8NyP/evEzIVsnTeuBlnPYXht/jGEXB4d7h M4CwSMBfwAOc3/+HMg58832mFFKQ+wR+xbxJfGGNDHLLa4uYW8qNKaAFO2CTuxcHu2 +oIx8yNZ+YDor+AOo4dAU8UO4oVloxUA+4Rlskfofo4SMG5SukVDKMj50q7Dba7mdl HqUZ1WM73QNxbJo0moBole4q+Z27d2gFK/VzIUbDHmXL0poCyQ9hXdQqKca8o5nWbI K/+5Q2PlRahXA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QpmmH5kxQz9rxB; Sun, 25 Jun 2023 12:04:31 +0200 (CEST) From: David Elsing Date: Sun, 25 Jun 2023 10:03:57 +0000 Message-Id: <4285ed9466bf8588533b2e83290ab83a2ca3133d.1687687428.git.david.elsing@posteo.net> In-Reply-To: <7yo7l3x3ll.fsf@posteo.net> References: <7yo7l3x3ll.fsf@posteo.net> 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 0.65 X-Migadu-Queue-Id: D36993AA93 X-Spam-Score: 0.65 X-TUID: zvZ50+RhBW1b * gnu/packages/cpp.scm (tl-optional): 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 efce934e6d..7e89b9d80a 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2696,3 +2696,36 @@ (define-public tsl-ordered-map efficient ordered insertions and lookup, while sacrifing performance for ordered erase operations.") (license license:expat))) + +(define-public tl-optional + (package + (name "tl-optional") + (version "1.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TartanLlama/optional") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qkjplmhilbi1iqxx3pz0grcx5355ymk6wwd4h4309mk156xgx2q")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-test + (lambda _ + (substitute* "CMakeLists.txt" + (("FetchContent_Declare.*") "") + ((".*http.*catchorg/Catch2.*") "") + (("FetchContent_MakeAvailable\\(Catch2\\)") + "find_package(Catch2 REQUIRED)"))))))) + (native-inputs (list catch2)) + (home-page "https://github.com/TartanLlama/optional") + (synopsis "Implementation of std::optional with extensions for C++11/14/17") + (description "tl-optional provides a single-header implementation of the +C++17 std::optional for C++11/14/17. It includes functional-style extensions +and support for references.") + (license license:cc0))) -- 2.40.1