aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvin <52727318+AlvinZhangH@users.noreply.github.com>2019-09-10 01:54:43 +0800
committerVictor Romero <romerosanchezv@gmail.com>2019-09-09 10:54:43 -0700
commit1e30941c015c7f1f4f52a0af4467a22c77d83654 (patch)
treeba2735e75a2bfcf60f5fa0d646d60968e2d86040
parentfb9c83a3bab367f4d30d0395f820ecd11d544283 (diff)
downloadvcpkg-1e30941c015c7f1f4f52a0af4467a22c77d83654.tar.gz
vcpkg-1e30941c015c7f1f4f52a0af4467a22c77d83654.zip
[magic-get] Add new port (#8072)
* fix8031issue-add_port_magic-get * fix8031issue-Change download license file name Signed-off-by: AlvinZhangH <260137639@qq.com>
-rw-r--r--ports/magic-get/CONTROL4
-rw-r--r--ports/magic-get/portfile.cmake21
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/magic-get/CONTROL b/ports/magic-get/CONTROL
new file mode 100644
index 000000000..c59f8b85c
--- /dev/null
+++ b/ports/magic-get/CONTROL
@@ -0,0 +1,4 @@
+Source: magic-get
+Version: 2019-09-02
+Homepage: https://github.com/apolukhin/magic_get
+Description: This C++14 library is meant for accessing structure elements by index and providing other std::tuple like methods for user defined types without any macro or boilerplate code. \ No newline at end of file
diff --git a/ports/magic-get/portfile.cmake b/ports/magic-get/portfile.cmake
new file mode 100644
index 000000000..f66b4310c
--- /dev/null
+++ b/ports/magic-get/portfile.cmake
@@ -0,0 +1,21 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO apolukhin/magic_get
+ REF abb467c0e22a83bf75a46a9e6610370fabfc39af #Branch develop, Commits on Sep 2, 2019
+ SHA512 1feb5d105d13a20aec8ab2c748dbd79ecc5d2267c8c0ee7db93a3d0c6b7186ea0c475fdc14712e78502ea839788f6dfb0b359e3fedbec59d331dafe137326fa4
+ HEAD_REF develop
+)
+
+vcpkg_download_distfile(OCV_DOWNLOAD
+ URLS "https://www.boost.org/LICENSE_1_0.txt"
+ FILENAME "boost_license_1_0.txt"
+ SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
+)
+
+file(COPY ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR})
+
+# Handle copyright
+# On Homepage README.md, License Distributed under the Boost Software License, Version 1.0. https://www.boost.org/LICENSE_1_0.txt
+file(INSTALL ${VCPKG_ROOT_DIR}/downloads/boost_license_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file