diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-07-11 23:09:04 -0700 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-07-11 23:09:04 -0700 |
| commit | 1e542bc68defa2ecd42a2ca7fa12c200c9c94f37 (patch) | |
| tree | 1accb7e633fcee13df173e9c6475dad1660a54bd | |
| parent | 7dbe375a2c270e91f9742dd78cf2b579d1f5f2fa (diff) | |
| download | vcpkg-1e542bc68defa2ecd42a2ca7fa12c200c9c94f37.tar.gz vcpkg-1e542bc68defa2ecd42a2ca7fa12c200c9c94f37.zip | |
[rabit] Add new port. (#7234)
| -rw-r--r-- | ports/rabit/CONTROL | 4 | ||||
| -rw-r--r-- | ports/rabit/portfile.cmake | 31 |
2 files changed, 35 insertions, 0 deletions
diff --git a/ports/rabit/CONTROL b/ports/rabit/CONTROL new file mode 100644 index 000000000..7ad9bcfdb --- /dev/null +++ b/ports/rabit/CONTROL @@ -0,0 +1,4 @@ +Source: rabit
+Version: 0.1
+Homepage: https://github.com/dmlc/rabit
+Description: rabit is a light weight library that provides a fault tolerant interface of Allreduce and Broadcast. It is designed to support easy implementations of distributed machine learning programs, many of which fall naturally under the Allreduce abstraction.
\ No newline at end of file diff --git a/ports/rabit/portfile.cmake b/ports/rabit/portfile.cmake new file mode 100644 index 000000000..cd009150f --- /dev/null +++ b/ports/rabit/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions)
+
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "${PORT} does not currently support UWP.")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO dmlc/rabit
+ REF v0.1
+ SHA512 145fd839898cb95eaab9a88ad3301a0ccac0c8b672419ee2b8eb6ba273cc9a26e069e5ecbc37a3078e46dc64d11efb3e5ab10e5f8fed714e7add85b9e6ac2ec7
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
+
|
