From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qGGrItdMzmQ0tgAASxT56A (envelope-from ) for ; Sat, 05 Aug 2023 15:21:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qK+kIddMzmSMhgEAG6o9tA (envelope-from ) for ; Sat, 05 Aug 2023 15:21:27 +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 4023537EB3 for ; Sat, 5 Aug 2023 15:21:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=MJLx3hvV; 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=1691241687; a=rsa-sha256; cv=none; b=keMrQ/QLxjWiocs/M1MDCtAnQI9XTTQpOFnNCSHMcnE4Liz8YkMpzDMKYWPehEMq4TCyN6 mVIe2TFL0pumlh81sUsSfXSoSAkSQmjJjcLhIq8vkLPe0SicIL436Q7CTNr2nTWBymMNSs f/wkD1pE0yhHWuLnXM73ytVjCQkVihzEFMxJ/QvgdhlyfIvpV8YiH7jAjOmkASY3ccjbLK +D+z2MT+/fb1jTjgt1RMa9ynD2+A0rAdh1nlabd/XFuoJAVELTzqTmfUq2YOFMstPMsWlU JrGslAGI/jYtUq58djH/ZqOtnLTvTUdH+ID2DLQbGHQwfhM2HcvEswjxMjqcwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691241687; 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=FygTZswsdRyK/PqSJE15v4RuoxE878smeuc17Mga9WU=; b=uS/AdwZcDjDqQayTShQv7cpZFbB/72/IsWYcMLo4Mvu8AQf266VllfNBG7Nfo6EaIDUEtD 1XuM0qc1rXN4j/Zhhs9ShsV/L/kpufkv3qKwXXyAzerRi9Q9Q2qFCuOIpsIQmrqifiwPPv qOwmeuer1qiO5+5eNfniqeyqwN7CrR/NsfRfZ9y8eDqoOZQ/NJNBwiN0r1fCDuKNZursDq vsF8lAjN+szTZjeySfqE3RgEmWMcNPn63rapa5Q/6Pa6nUdNZYSqolEybKTEgVgNzpWr7q e6xBRbIRP92dKreu45AxU/64oTQOFb2uW3XuYVXWIoDsM4Xk38jjrMefVIz54g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=MJLx3hvV; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSHDP-0003PY-J8; Sat, 05 Aug 2023 09:21: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 1qSHDN-0003N0-Ev for guix-patches@gnu.org; Sat, 05 Aug 2023 09:21:05 -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 1qSHDN-0003Z3-5D for guix-patches@gnu.org; Sat, 05 Aug 2023 09:21:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSHDN-00067U-1Z for guix-patches@gnu.org; Sat, 05 Aug 2023 09:21:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63765] [PATCH v6 07/10] gnu: Add tcb-span. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Aug 2023 13:21:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63765@debbugs.gnu.org Cc: Hilton Chain Received: via spool by 63765-submit@debbugs.gnu.org id=B63765.169124165623428 (code B ref 63765); Sat, 05 Aug 2023 13:21:05 +0000 Received: (at 63765) by debbugs.gnu.org; 5 Aug 2023 13:20:56 +0000 Received: from localhost ([127.0.0.1]:56142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSHDE-00065o-3G for submit@debbugs.gnu.org; Sat, 05 Aug 2023 09:20:56 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:57234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSHDC-00065g-I3 for 63765@debbugs.gnu.org; Sat, 05 Aug 2023 09:20:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691241646; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FygTZswsdRyK/PqSJE15v4RuoxE878smeuc17Mga9WU=; b=MJLx3hvVIoT0Xwo6JAHKAD/Ve47iwgXROKL/oZWBfeZrqSLBQrxUqNPSbzlsqDzVj2dApU uUWui0K45Ghh6u0tMv4tJHHdqBSsF5meo470pjx0CocMxsDQJhOU4BIC6Cgfwh1RUu0C4e z8vs3M8YnncUeklyueEz0wB0f8CBzFNE7ScStYYJKk1UtKi6YNFeIGIKo25oLwBAl77WLo XkiPubqd9O+/b3VhOxo0eS+0ApJqFINQCDB3YA9Xt1jb+UtV8MfmSeErdOCisnE/8ghgIC 66FwwKhmnwnu7N1LAS1ke1B0Pxx2KEN8PbYvbP3iouhNkrhQr5vHHkr2gtH9wA== Date: Sat, 5 Aug 2023 21:19:03 +0800 Message-ID: <90badab8a63e441ca70c8b4a7decf3e7e676fafa.1691240736.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- 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: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain 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.14 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 4023537EB3 X-Spam-Score: -6.14 X-TUID: Da8LW+jAnJrb * gnu/packages/cpp.scm (tcb-span): New variable. --- gnu/packages/cpp.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 5d1361173f..8d20e698bb 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1023,6 +1023,50 @@ (define-public sobjectizer development of concurrent and multithreaded applications in C++.") (license license:bsd-3))) +(define-public tcb-span + ;; No released versions + (let ((commit "836dc6a0efd9849cb194e88e4aa2387436bb079b") + (revision "0")) + (package + (name "tcb-span") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tcbrindle/span") + (commit commit))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file "test/catch.hpp") + (substitute* "test/CMakeLists.txt" + (("add_library.*" line) + (string-append + line "find_package(Catch2 REQUIRED)\n"))) + (substitute* (find-files "test" "\\.cpp") + (("\"catch.hpp\"") "")))) + (sha256 + (base32 + "1v3x1mj4if8jrr7cmrcbhv8n8ygla0liqb0dic6g6ji7px2pr6jf")))) + (build-system cmake-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda _ + (copy-recursively + "../source/include" + (string-append #$output "/include"))))))) + (native-inputs (list catch2)) + (home-page "https://github.com/tcbrindle/span") + (synopsis "@code{std::span} implementation for older compilers") + (description + "This package provides a single-header implementation of C++20's +@code{std::span}, conforming to the C++20 committee draft. It is compatible +with C++11, but will use newer language features if they are available.") + (license license:boost1.0)))) + (define-public tweeny (package (name "tweeny") -- 2.41.0