Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions devel/parallel-hashmap/Portfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

Check warning on line 1 in devel/parallel-hashmap/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port test parallel-hashmap: Warning: parallel-hashmap is configured to build for the architecture(s) 'x86_64', but did not install any Mach-O files.

Check warning on line 1 in devel/parallel-hashmap/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port test parallel-hashmap: Warning: parallel-hashmap is configured to build for the architecture(s) 'arm64', but did not install any Mach-O files.

Check warning on line 1 in devel/parallel-hashmap/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port test parallel-hashmap: Warning: parallel-hashmap is configured to build for the architecture(s) 'arm64', but did not install any Mach-O files.

PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup greg7mdp parallel-hashmap 1.3.12 v
github.setup greg7mdp parallel-hashmap 2.0.0 v
revision 0
categories devel
license Apache-2
Expand All @@ -16,21 +16,16 @@
description A family of header-only, very fast and memory-friendly hashmap and btree containers
long_description {*}${description}
homepage https://greg7mdp.github.io/parallel-hashmap
checksums rmd160 2562cd557a276f73ac823465b4781d6bb2efc9ed \
sha256 0cc203144321924cfbfcc401f42d8204c0dd24e2760c7a1c091baa16d9777c08 \
size 2047800
checksums rmd160 a37046afe248c835966a3b66e5d242b5f3b8dd30 \
sha256 4f462f51a3468166ea4cf87c80e001dc1999093264cf55cbda3492ca39a7730b \
size 2059086

github.tarball_from archive
depends_build-append port:gtest

platform darwin {
if {${os.major} < 14} {
# Lion+ (with Xcode 4.1+) have git; earlier need to bring their own.
# On 10.9 git fetch fails with ssl error.
depends_build-append port:git
git.cmd ${prefix}/bin/git
}
}
patchfiles gtest-patch.diff

compiler.cxx_standard 2011
compiler.cxx_standard 2014
compiler.thread_local_storage yes

configure.args-append -DPHMAP_INSTALL=ON \
Expand Down
25 changes: 25 additions & 0 deletions devel/parallel-hashmap/files/gtest-patch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- CMakeLists.txt_orig 2025-10-16 17:31:07
+++ CMakeLists.txt 2025-10-16 17:31:59
@@ -96,12 +96,17 @@
if (PHMAP_BUILD_TESTS)

if (NOT PHMAP_GTEST_LIBS)
- include(cmake/DownloadGTest.cmake)
+ find_package(GTest CONFIG)
+ if (GTest_FOUND)
+ set(PHMAP_GTEST_LIBS GTest::gmock_main)
+ else()
+ include(cmake/DownloadGTest.cmake)

- check_target(gtest)
- check_target(gtest_main)
- check_target(gmock)
- set(PHMAP_GTEST_LIBS gmock_main)
+ check_target(gtest)
+ check_target(gtest_main)
+ check_target(gmock)
+ set(PHMAP_GTEST_LIBS gmock_main)
+ endif()
endif()

enable_testing()