diff options
Diffstat (limited to 'vcpkg/ports/immer')
| -rw-r--r-- | vcpkg/ports/immer/portfile.cmake | 34 | ||||
| -rw-r--r-- | vcpkg/ports/immer/vcpkg.json | 22 |
2 files changed, 56 insertions, 0 deletions
diff --git a/vcpkg/ports/immer/portfile.cmake b/vcpkg/ports/immer/portfile.cmake new file mode 100644 index 0000000..93da11e --- /dev/null +++ b/vcpkg/ports/immer/portfile.cmake @@ -0,0 +1,34 @@ +# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO arximboldi/immer
+ REF "v${VERSION}"
+ SHA512 3a9aafeb5daad1881d00fb999b78f86b1c8f0e8ef2d6befe9025d8eea10392557ce7186f14878b36cbce0f2f5d38c8ffb39c9115a9496803acfc0ef2289f5cbf
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ "docs" immer_BUILD_DOCS
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DENABLE_PYTHON=OFF
+ -DENABLE_GUILE=OFF
+ -DENABLE_BOOST_COROUTINE=OFF
+ -Dimmer_BUILD_TESTS=OFF
+ -Dimmer_BUILD_EXAMPLES=OFF
+ -Dimmer_BUILD_EXTRAS=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Immer)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/immer/vcpkg.json b/vcpkg/ports/immer/vcpkg.json new file mode 100644 index 0000000..54edb53 --- /dev/null +++ b/vcpkg/ports/immer/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "immer", + "version": "0.8.1", + "description": "Postmodern immutable and persistent data structures for C++", + "homepage": "https://sinusoid.es/immer/", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "docs": { + "description": "Build documentation" + } + } +} |