From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AJi8FBZvj2R5tQAASxT56A (envelope-from ) for ; Sun, 18 Jun 2023 22:54:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iPLFFBZvj2SfMgEAauVa8A (envelope-from ) for ; Sun, 18 Jun 2023 22:54:46 +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 008C46031 for ; Sun, 18 Jun 2023 22:54:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAzPQ-0006cN-8S; Sun, 18 Jun 2023 16:54:04 -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 1qAzPO-0006bG-Pp for guix-patches@gnu.org; Sun, 18 Jun 2023 16:54: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 1qAzPO-0002E7-G6 for guix-patches@gnu.org; Sun, 18 Jun 2023 16:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAzPO-0007SZ-15 for guix-patches@gnu.org; Sun, 18 Jun 2023 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64137] [PATCH v2 2/8] gnu: Add tsl-hopscotch-map. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Jun 2023 20:54:01 +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.168712161728568 (code B ref 64137); Sun, 18 Jun 2023 20:54:01 +0000 Received: (at 64137) by debbugs.gnu.org; 18 Jun 2023 20:53:37 +0000 Received: from localhost ([127.0.0.1]:55035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAzOz-0007Qd-9R for submit@debbugs.gnu.org; Sun, 18 Jun 2023 16:53:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAzOx-0007Q4-2w for 64137@debbugs.gnu.org; Sun, 18 Jun 2023 16:53:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 62B91240028 for <64137@debbugs.gnu.org>; Sun, 18 Jun 2023 22:53:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687121609; bh=8eFSnAj+eq3M3K1R5oyXczEK1lfArpaMdhmfWnAd1JY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=V2vru+eFwmT6+bWrCIE3k5RTMe5t6XvFpWB0Tm8JFa0yZn/GeCb6KW0G2gAySg75R vxPpQ0WmSvRCVoPiaUHPe3hY1ITD+7YBCVVLj1Llk2o/FsaW94+df8qGQBorCmBNJ/ FeCWsC58Nt3z1Rul5CftPs6Ods4W3qAuNVapxNoM/g5QH5YGGVFKdIkHf0PrYEvzoU yfgdpdhigryrZagca6iJaktHoO4RfiJfVklH40c+bt1fFBHBV+EpT6/46a5DiYpW6f Kd3vUnnNPVRs/7ANAeKbvqlrPsQrfKoxbiYXEEZKkzT00VxgMOpZJXWsScYU+6+P7v KFuSCivpmsuuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QklVH5z2dz9rxT; Sun, 18 Jun 2023 22:53:27 +0200 (CEST) From: David Elsing Date: Sun, 18 Jun 2023 20:53:01 +0000 Message-Id: <68b5dda8fc0b5d59188cda3cf33f0f1537c6efed.1687121561.git.david.elsing@posteo.net> In-Reply-To: <7yh6r4ebw2.fsf@posteo.net> References: <7yh6r4ebw2.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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687121686; a=rsa-sha256; cv=none; b=kl9xD0KSoLHlBgtyhL0Yhc1FvAzI246qO2BUcowfj3RUCnyy29G1sfeThP7MurdAKmVH9g kx8+/kKTxcc8DETDoswVB3nu+X+p2SV/sa/G4/9YUHwXX6TJAmimEz3tBaVOEIp2Q9PcIt 2zrj8yNERp1+62SUE0yopIds/iuOoyXPMyscL0yNdzvna7+rgtsRDd/Q+GoePFAjskZJcE yXSNIHFPW70M7qByU/40xCw8U4Q/c2XCWQubAynIgTc5KL6dad5we6MFN7lqpBzdkSHJ3l TQVhYEb80t2ukZPoOT1flGCXGWqjwnGUuV5zSoJrp5ANnlwwmDpmkAN8pDkYig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=V2vru+eF; 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=1687121686; 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=opCjDqADJppjAmAylgt7Yuwh6IkNkYmTUbbEBKEW0WI=; b=DtJrPlD67I6sluZLZQ3DUAdI77t5k0rKiABIKqA5EUl6HfE4SfIdLy8AExt5G37m/aIRav ZZp5jCm6sqlxTn2HH8IfLP6F/xUiUG2uWmpHY5eyrs/IwaKkzLY1L3Em6t/P0/oZAu6R+c qYd4TqPYZGwp2/cib8+YPz/KKbO6BG70jkHOzQUoyyXjinkCULK6UsR+Egu3g9kv4x9+Sb 2k3qWERsrc2u71UUEgD2n6Nj/dQRXx93hQtHtu4dBces2D3EMWzktr2La9FjHP/Cc2dNc3 gTdTNd6RNh04VFsujS8jD5lI3a5dHDVwR39xDOlHFlaPm19QZdKGYn+i+Fp8Kw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=V2vru+eF; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.95 X-Spam-Score: -1.95 X-Migadu-Queue-Id: 008C46031 X-TUID: 3ZDvBJrVPzM5 * gnu/packages/cpp.scm (tsl-hopscotch-map): New variable. --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 5a6298fc4d..7878aa2a6d 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2588,3 +2588,38 @@ (define-public mpark-variant "MPark.Variant provides the C++17 std::variant for C++11/14/17. It is based on the implementation of std::variant in libc++.") (license license:boost1.0))) + +(define-public tsl-hopscotch-map + (package + (name "tsl-hopscotch-map") + (version "2.3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Tessil/hopscotch-map") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "012pw37w000pdxdvps0wsqrw6597cm6i6kr5rpl303qmiwqicb2p")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-test + (lambda _ + (let ((file (open-file "CMakeLists.txt" "a"))) + (display "\nenable_testing()\nadd_subdirectory(tests)" file) + (close-port file)) + (substitute* "tests/CMakeLists.txt" + (("set\\(Boost_USE_STATIC_LIBS.*") "") + (("add_subdirectory\\(\\.\\..*") + "add_test(tsl_hopscotch_map_tests tsl_hopscotch_map_tests)\n"))))))) + (native-inputs (list boost)) + (home-page "https://github.com/Tessil/hopscotch-map") + (synopsis "C++ implementation of a hash map and hash set using hopscotch hashing") + (description "This package provides a C++ implementation of a hash map and +a hash set using open-addressing and hopscotch hashing to resolve +collisions.") + (license license:expat))) -- 2.40.1