aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Marshall <xandan@gmail.com>2019-03-22 06:19:36 +0000
committerPhil Christensen <philc@microsoft.com>2019-03-21 23:19:36 -0700
commitd48876bab0ee18522b99aadde212f5444130e05b (patch)
tree3c537db03111de999b43524e0e31a68c48130b89
parentde4add711d578c2872eaf3a0cbbab719448dbaff (diff)
downloadvcpkg-d48876bab0ee18522b99aadde212f5444130e05b.tar.gz
vcpkg-d48876bab0ee18522b99aadde212f5444130e05b.zip
Add new port cli (#5762)
-rw-r--r--ports/cli/CONTROL4
-rw-r--r--ports/cli/portfile.cmake20
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/cli/CONTROL b/ports/cli/CONTROL
new file mode 100644
index 000000000..32d58ecfb
--- /dev/null
+++ b/ports/cli/CONTROL
@@ -0,0 +1,4 @@
+Source: cli
+Version: 2019-03-21
+Description: A library for interactive command line interfaces in modern C++
+Build-Depends: boost-asio \ No newline at end of file
diff --git a/ports/cli/portfile.cmake b/ports/cli/portfile.cmake
new file mode 100644
index 000000000..0f6aae987
--- /dev/null
+++ b/ports/cli/portfile.cmake
@@ -0,0 +1,20 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO daniele77/cli
+ REF f74c6eea9616e0a62f5b3be4e1d07ad432232e90
+ SHA512 9a5e25175844a7e9eacb05056c2e56e21be82efed6991d9c0e7d33e3a76f83d815455ec6e79d045ec15453354a1c50b0f91feef2766ae323931b4d4eb6caf1cf
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cli TARGET_PATH share/cli)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cli RENAME copyright)