aboutsummaryrefslogtreecommitdiff
path: root/ports/concurrencpp
diff options
context:
space:
mode:
Diffstat (limited to 'ports/concurrencpp')
-rw-r--r--ports/concurrencpp/fix-include-path.patch13
-rw-r--r--ports/concurrencpp/portfile.cmake21
-rw-r--r--ports/concurrencpp/vcpkg.json17
3 files changed, 51 insertions, 0 deletions
diff --git a/ports/concurrencpp/fix-include-path.patch b/ports/concurrencpp/fix-include-path.patch
new file mode 100644
index 000000000..7b2da1920
--- /dev/null
+++ b/ports/concurrencpp/fix-include-path.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 351aa65..ab06584 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -94,7 +94,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
+ EXPORT concurrencppTargets
diff --git a/ports/concurrencpp/portfile.cmake b/ports/concurrencpp/portfile.cmake
new file mode 100644
index 000000000..43578ea88
--- /dev/null
+++ b/ports/concurrencpp/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO David-Haim/concurrencpp
+ REF v.0.1.3
+ SHA512 2f4530ba93d768a7a1ae14c532c8ef443745e48cceeca8a0e9da9f91633876ae4971caad70eeff9e18c7a45e8cf7c0b7bb79720a62026850244fb2377ad10df7
+ HEAD_REF master
+ PATCHES
+ fix-include-path.patch
+)
+
+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-0.1.3)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/concurrencpp RENAME copyright)
diff --git a/ports/concurrencpp/vcpkg.json b/ports/concurrencpp/vcpkg.json
new file mode 100644
index 000000000..c4c8482f1
--- /dev/null
+++ b/ports/concurrencpp/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "concurrencpp",
+ "version-string": "0.1.3",
+ "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/",
+ "supports": "(windows & static) | linux | osx",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}