From d48876bab0ee18522b99aadde212f5444130e05b Mon Sep 17 00:00:00 2001 From: Daniel Marshall Date: Fri, 22 Mar 2019 06:19:36 +0000 Subject: [PATCH] Add new port cli (#5762) --- ports/cli/CONTROL | 4 ++++ ports/cli/portfile.cmake | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ports/cli/CONTROL create mode 100644 ports/cli/portfile.cmake diff --git a/ports/cli/CONTROL b/ports/cli/CONTROL new file mode 100644 index 0000000000..32d58ecfb6 --- /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 0000000000..0f6aae9879 --- /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)