aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2018-10-20 00:11:27 +0800
committerRobert Schumacher <roschuma@microsoft.com>2018-10-19 09:11:27 -0700
commit1e78b6e21311e52b4d3dfe53454a8343b056c51d (patch)
tree43042b7c95b539ce942cad2df5ec7db4c1b40018
parent560ff74a5c6ba6be41b371763e56e138c96e7be8 (diff)
downloadvcpkg-1e78b6e21311e52b4d3dfe53454a8343b056c51d.tar.gz
vcpkg-1e78b6e21311e52b4d3dfe53454a8343b056c51d.zip
[mio] Add new port (#4503)
* [mio] Add new port * [mio] Clean * [mio] Use vcpkg_fixup_cmake_targets
-rw-r--r--ports/mio/CONTROL3
-rw-r--r--ports/mio/portfile.cmake26
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/mio/CONTROL b/ports/mio/CONTROL
new file mode 100644
index 000000000..c174396d1
--- /dev/null
+++ b/ports/mio/CONTROL
@@ -0,0 +1,3 @@
+Source: mio
+Version: 2018-10-18-1
+Description: Cross-platform header-only C++11 library for memory mapped file IO.
diff --git a/ports/mio/portfile.cmake b/ports/mio/portfile.cmake
new file mode 100644
index 000000000..6fe1a5622
--- /dev/null
+++ b/ports/mio/portfile.cmake
@@ -0,0 +1,26 @@
+# header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mandreyel/mio
+ REF 365a80c9acaab2a7d23a40a3add7071f9b739f85
+ SHA512 a134dde60e6ada796bffc795563e3c4d4d4f3abd07ef3da7c15472951bf3f13d9fd37a05de71cd662ec5ff6e7048cfb1e7af76a35259c0ff58a53df792a6640e
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -Dmio.tests=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/mio)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mio RENAME copyright)