aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/continuable
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/continuable')
-rw-r--r--vcpkg/ports/continuable/fix-cmakelists.patch24
-rw-r--r--vcpkg/ports/continuable/portfile.cmake29
-rw-r--r--vcpkg/ports/continuable/vcpkg.json18
3 files changed, 71 insertions, 0 deletions
diff --git a/vcpkg/ports/continuable/fix-cmakelists.patch b/vcpkg/ports/continuable/fix-cmakelists.patch
new file mode 100644
index 0000000..5d619e8
--- /dev/null
+++ b/vcpkg/ports/continuable/fix-cmakelists.patch
@@ -0,0 +1,24 @@
+Index: 4.2.0-0b164f3722.clean/CMakeLists.txt
+===================================================================
+--- 4.2.0-0b164f3722.clean.orig/CMakeLists.txt
++++ 4.2.0-0b164f3722.clean/CMakeLists.txt
+@@ -82,7 +82,7 @@ if(NOT TARGET Threads::Threads)
+ find_package(Threads REQUIRED)
+ endif()
+
+-if(CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT)
++if(false)
+ include(cmake/CMakeLists.txt)
+ add_subdirectory(dep)
+ else()
+@@ -168,8 +168,8 @@ if(CTI_CONTINUABLE_WITH_INSTALL)
+ # Create an install target: Headers and license files
+ install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/continuable"
+ DESTINATION "include")
+- install(FILES "LICENSE.txt" DESTINATION .)
+- install(FILES "Readme.md" DESTINATION .)
++ install(FILES "LICENSE.txt" DESTINATION share/${PROJECT_NAME} RENAME copyright)
++ install(FILES "Readme.md" DESTINATION share/${PROJECT_NAME})
+
+ # Config.cmake
+ write_basic_package_version_file(
diff --git a/vcpkg/ports/continuable/portfile.cmake b/vcpkg/ports/continuable/portfile.cmake
new file mode 100644
index 0000000..23498cc
--- /dev/null
+++ b/vcpkg/ports/continuable/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Naios/continuable
+ REF "${VERSION}"
+ SHA512 069b1fe37d5dd3495639942af40b9d5fe90408ee0f92f61e85c8aab3e1132300eb75df216a84595cb05c35e0fcb1b789fda4dae3fd2b263ac70910f5374536cc
+ HEAD_REF master
+ PATCHES
+ fix-cmakelists.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCTI_CONTINUABLE_WITH_INSTALL=ON
+ -DCTI_CONTINUABLE_WITH_TESTS=OFF
+ -DCTI_CONTINUABLE_WITH_EXAMPLES=OFF
+ -DCTI_CONTINUABLE_WITH_BENCHMARKS=OFF
+ -DCTI_CONTINUABLE_WITH_NO_EXCEPTIONS=OFF
+ -DCTI_CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS=ON
+ -DCTI_CONTINUABLE_WITH_EXPERIMENTAL_COROUTINE=ON
+ -DCTI_CONTINUABLE_WITH_CPP_LATEST=ON # requires cxx_std_17
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib"
+ "${CURRENT_PACKAGES_DIR}/debug"
+)
diff --git a/vcpkg/ports/continuable/vcpkg.json b/vcpkg/ports/continuable/vcpkg.json
new file mode 100644
index 0000000..8ed3a9e
--- /dev/null
+++ b/vcpkg/ports/continuable/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "continuable",
+ "version": "4.2.2",
+ "description": "C++14 asynchronous allocation aware futures (supporting then, exception handling, coroutines and connections)",
+ "homepage": "https://naios.github.io/continuable/",
+ "license": "MIT",
+ "dependencies": [
+ "function2",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}