aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/osp-collection/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/osp-collection/portfile.cmake')
-rw-r--r--vcpkg/ports/osp-collection/portfile.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/osp-collection/portfile.cmake b/vcpkg/ports/osp-collection/portfile.cmake
new file mode 100644
index 0000000..6cf163e
--- /dev/null
+++ b/vcpkg/ports/osp-collection/portfile.cmake
@@ -0,0 +1,17 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO open-source-patterns/collection
+ REF "${VERSION}"
+ SHA512 58222ec24da5414852f66dc3afe12396cfa92671ef06b67a7da51e2fab4673e8c133b4b4d3517218c7aa5172d59aa6347901f2863044230e91e7eec946023749
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME "collection" CONFIG_PATH "lib/cmake/collection")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") # usage
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")