aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/concurrencpp
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/concurrencpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/concurrencpp')
-rw-r--r--vcpkg/ports/concurrencpp/add-include-chrono.patch12
-rw-r--r--vcpkg/ports/concurrencpp/add-include-string.patch12
-rw-r--r--vcpkg/ports/concurrencpp/fix-include-path.patch12
-rw-r--r--vcpkg/ports/concurrencpp/portfile.cmake23
-rw-r--r--vcpkg/ports/concurrencpp/vcpkg.json18
5 files changed, 77 insertions, 0 deletions
diff --git a/vcpkg/ports/concurrencpp/add-include-chrono.patch b/vcpkg/ports/concurrencpp/add-include-chrono.patch
new file mode 100644
index 0000000..24e6191
--- /dev/null
+++ b/vcpkg/ports/concurrencpp/add-include-chrono.patch
@@ -0,0 +1,12 @@
+diff --git a/include/concurrencpp/results/impl/shared_result_state.h b/include/concurrencpp/results/impl/shared_result_state.h
+index 6c96f4b..1433e74 100644
+--- a/include/concurrencpp/results/impl/shared_result_state.h
++++ b/include/concurrencpp/results/impl/shared_result_state.h
+@@ -5,6 +5,7 @@
+ #include "concurrencpp/results/impl/result_state.h"
+
+ #include <atomic>
++#include <chrono>
+ #include <semaphore>
+
+ #include <cassert>
diff --git a/vcpkg/ports/concurrencpp/add-include-string.patch b/vcpkg/ports/concurrencpp/add-include-string.patch
new file mode 100644
index 0000000..b899309
--- /dev/null
+++ b/vcpkg/ports/concurrencpp/add-include-string.patch
@@ -0,0 +1,12 @@
+diff --git a/include/concurrencpp/threads/thread.h b/include/concurrencpp/threads/thread.h
+index 82ca58b..ecdaa27 100644
+--- a/include/concurrencpp/threads/thread.h
++++ b/include/concurrencpp/threads/thread.h
+@@ -4,6 +4,7 @@
+ #include "concurrencpp/platform_defs.h"
+
+ #include <functional>
++#include <string>
+ #include <string_view>
+ #include <thread>
+
diff --git a/vcpkg/ports/concurrencpp/fix-include-path.patch b/vcpkg/ports/concurrencpp/fix-include-path.patch
new file mode 100644
index 0000000..7984255
--- /dev/null
+++ b/vcpkg/ports/concurrencpp/fix-include-path.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -117,7 +117,7 @@ include(CMakePackageConfigHelpers)
+ include(GNUInstallDirs)
+
+ set(concurrencpp_directory "concurrencpp-${PROJECT_VERSION}")
+-set(concurrencpp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}/${concurrencpp_directory}")
++set(concurrencpp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}")
+
+ install(
+ TARGETS concurrencpp
diff --git a/vcpkg/ports/concurrencpp/portfile.cmake b/vcpkg/ports/concurrencpp/portfile.cmake
new file mode 100644
index 0000000..c316d2f
--- /dev/null
+++ b/vcpkg/ports/concurrencpp/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO David-Haim/concurrencpp
+ REF "v.${VERSION}"
+ SHA512 b87a6bd0593d6a7d35f911a0a9835e1afe416aa25d06e4d448789617c94ec2faeb5df07d68d5ccc7e986009f09016f90ef57016b1aabe567996d3ad9816add4c
+ HEAD_REF master
+ PATCHES
+ fix-include-path.patch
+ add-include-string.patch
+ add-include-chrono.patch # https://github.com/David-Haim/concurrencpp/pull/170
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/concurrencpp-${VERSION}")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/concurrencpp/vcpkg.json b/vcpkg/ports/concurrencpp/vcpkg.json
new file mode 100644
index 0000000..9823f17
--- /dev/null
+++ b/vcpkg/ports/concurrencpp/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "concurrencpp",
+ "version": "0.1.7",
+ "port-version": 2,
+ "description": "concurrencpp is a tasking library for C++ allowing developers to write highly concurrent applications easily and safely by using tasks, executors and coroutines.",
+ "homepage": "https://github.com/David-Haim/concurrencpp/",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}