From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B577158232 for ; Thu, 5 Dec 2024 12:00:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1993BE07D0; Thu, 5 Dec 2024 12:00:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9574E0954 for ; Thu, 5 Dec 2024 12:00:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBEA0342F9D for ; Thu, 5 Dec 2024 12:00:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 376C11F0B for ; Thu, 5 Dec 2024 12:00:13 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1733328663.db6a0d41d1528c759210c5a2017632ce41bd2531.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/parallel-hashmap/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-cpp/parallel-hashmap/Manifest dev-cpp/parallel-hashmap/parallel-hashmap-1.4.1.ebuild X-VCS-Directories: dev-cpp/parallel-hashmap/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: db6a0d41d1528c759210c5a2017632ce41bd2531 X-VCS-Branch: master Date: Thu, 5 Dec 2024 12:00:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ee2e2635-81a7-4f23-af7b-e5e995b84822 X-Archives-Hash: e991f9b1abebdadf5acd9c2f9053df85 commit: db6a0d41d1528c759210c5a2017632ce41bd2531 Author: Denis Reva gmail com> AuthorDate: Wed Dec 4 16:10:52 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Wed Dec 4 16:11:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db6a0d41 dev-cpp/parallel-hashmap: add 1.4.1 Signed-off-by: Denis Reva gmail.com> dev-cpp/parallel-hashmap/Manifest | 1 + .../parallel-hashmap/parallel-hashmap-1.4.1.ebuild | 46 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/dev-cpp/parallel-hashmap/Manifest b/dev-cpp/parallel-hashmap/Manifest index 38c813229..033019f01 100644 --- a/dev-cpp/parallel-hashmap/Manifest +++ b/dev-cpp/parallel-hashmap/Manifest @@ -1 +1,2 @@ DIST parallel-hashmap-1.3.8.tar.gz 2047306 BLAKE2B b56bd2a8f958f69c400e8b736669f7bbe875823ca28370a6ce0f25a6de995a81b4ff8269f84eea3bbdcd62ec96d2a7613d8d414abcf2da6215e476f81927d4ad SHA512 499f132aa1513942762ae5214e9a37915529d60142439d32276d9e68a446c93ecea66caa32ac00bea683e2c932101cd999c8839a89211e91032f777f236181f7 +DIST parallel-hashmap-1.4.1.tar.gz 2058024 BLAKE2B bcb5886173a25325c6381f0f174f08de33a2c9c9a0bd43eed6eee6273a2dba357fdfc09064a35aef219c03f7460cf10949808ea982e2dede89f4e103bcbe4b8f SHA512 80fc90b1545ef6d05b33f29cd694fc5687d29c87463bd648bd91f84177e596432bc2630b5e57be80476c07e549689c65cb30d0e1901adfb2b34f57caa81d0751 diff --git a/dev-cpp/parallel-hashmap/parallel-hashmap-1.4.1.ebuild b/dev-cpp/parallel-hashmap/parallel-hashmap-1.4.1.ebuild new file mode 100644 index 000000000..35fd6b2d7 --- /dev/null +++ b/dev-cpp/parallel-hashmap/parallel-hashmap-1.4.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR=emake + +inherit cmake + +DESCRIPTION="Family of header-only, fast and memory-friendly hashmap and btree containers" +HOMEPAGE=" + https://greg7mdp.github.io/parallel-hashmap/ + https://github.com/greg7mdp/parallel-hashmap +" +SRC_URI="https://github.com/greg7mdp/parallel-hashmap/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="examples test" + +CDEPEND="dev-libs/cereal" +DEPEND="${CDEPEND} test? ( dev-cpp/gtest )" +RDEPEND="${CDEPEND}" + +# tests will download gtest, not trivial to use the system one +# https://github.com/greg7mdp/parallel-hashmap/issues/154 +RESTRICT="!test? ( test )" +src_configure() { + local mycmakeargs=( + -DPHMAP_BUILD_EXAMPLES=$(usex examples) + -DPHMAP_BUILD_TESTS=$(usex test) + ) + if use test; then + mycmakeargs+=( -DPHMAP_GTEST_LIBS="gmock -lgmock_main -lgtest -lgtest_main" ) + fi + cmake_src_configure +} + +src_install() { + cmake_src_install + if use examples ; then + dodoc -r examples + docompress -x "/usr/share/doc/${PF}/examples" + fi +}