aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-06-07 17:09:02 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-06-18 17:10:18 -0700
commitc351a758a563a1368970e4e718e0d9d3e541fbb6 (patch)
treef5e543d19a24d5ab117dfb61e00d7083233844f2
parentbaf6d78a4518b188c7440c26f3aca5685621c8c7 (diff)
downloadvcpkg-c351a758a563a1368970e4e718e0d9d3e541fbb6.tar.gz
vcpkg-c351a758a563a1368970e4e718e0d9d3e541fbb6.zip
[nanorange] Introduce port
-rw-r--r--ports/nanorange/CONTROL3
-rw-r--r--ports/nanorange/portfile.cmake25
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/nanorange/CONTROL b/ports/nanorange/CONTROL
new file mode 100644
index 000000000..5e8ff295c
--- /dev/null
+++ b/ports/nanorange/CONTROL
@@ -0,0 +1,3 @@
+Source: nanorange
+Version: 60be62
+Description: NanoRange is a new C++14 implementation of the C++20 Ranges proposals. \ No newline at end of file
diff --git a/ports/nanorange/portfile.cmake b/ports/nanorange/portfile.cmake
new file mode 100644
index 000000000..841df0890
--- /dev/null
+++ b/ports/nanorange/portfile.cmake
@@ -0,0 +1,25 @@
+# header-only
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tcbrindle/NanoRange
+ REF 60be620449c762794b0664e4232c461ed4a51d82
+ SHA512 9f03597c80a4fa2d287dca571cdfbddc9d93ee4402bf73d9dcb3dbc45b93931b0f028e068ff2d165a9efdfdb5761223139f7f0966d405689dcc1794710281c80
+ HEAD_REF master
+)
+
+#<tests>
+#vcpkg_configure_cmake(
+# SOURCE_PATH ${SOURCE_PATH}
+# PREFER_NINJA
+#)
+#vcpkg_build_cmake()
+#</tests>
+
+file(COPY ${SOURCE_PATH}/single_include/nanorange.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/nanorange)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/nanorange/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/nanorange/copyright)
+