aboutsummaryrefslogtreecommitdiff
path: root/ports/cli11
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2021-09-08 22:55:21 +0800
committerGitHub <noreply@github.com>2021-09-08 07:55:21 -0700
commitf4f8bba9d4429a030153e6fda2d8d6b262a54c8f (patch)
tree5c3743ef769aea3cb4751595974831c771bb2197 /ports/cli11
parentf4a827c2a7c3fb12ecfe69bdd32dfff6b4fe15e9 (diff)
downloadvcpkg-f4f8bba9d4429a030153e6fda2d8d6b262a54c8f.tar.gz
vcpkg-f4f8bba9d4429a030153e6fda2d8d6b262a54c8f.zip
[libfort/libgit2/cli11] update to the latest version (#20024)
* [libfort/libgit2/cli11] update to the latest version * update version * delete useless dependencies * update version
Diffstat (limited to 'ports/cli11')
-rw-r--r--ports/cli11/CONTROL4
-rw-r--r--ports/cli11/portfile.cmake19
-rw-r--r--ports/cli11/vcpkg.json16
3 files changed, 25 insertions, 14 deletions
diff --git a/ports/cli11/CONTROL b/ports/cli11/CONTROL
deleted file mode 100644
index e9e64abc6..000000000
--- a/ports/cli11/CONTROL
+++ /dev/null
@@ -1,4 +0,0 @@
-Source: cli11
-Version: 1.9.1
-Description: CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.
-Homepage: https://github.com/CLIUtils/CLI11
diff --git a/ports/cli11/portfile.cmake b/ports/cli11/portfile.cmake
index 69f0a26fe..78776fdbe 100644
--- a/ports/cli11/portfile.cmake
+++ b/ports/cli11/portfile.cmake
@@ -1,25 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO CLIUtils/CLI11
- REF 2b059cbdbe844450e1675a5dda3cb8acb1147631 #version 1.9.1
- SHA512 8b7999ae3692ccb7b324bef033ad4cedccbf720b904aa3aa8d07d1cbc8f09f4ecbd9701d2a50a6266f81fe877e30a63a3b6e07d746fa738291b07476405e866d
+ REF 0d06d21b56eadef9dcb24907ee2866b2b6f0babe #version 2.0.0
+ SHA512 1952ce0e9fd3bc6646f00abdd7f0f7bae541c383b691a985b0f70ca53fe80a9acbcf68c07c59e021c92aae7b1e062fd7ffe4c9f9b198b95525dde3a1ce83c2f5
HEAD_REF master
)
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCLI11_BUILD_EXAMPLES=OFF
-DCLI11_BUILD_DOCS=OFF
-DCLI11_BUILD_TESTS=OFF
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
-vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/CLI11)
-
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CLI11)
+vcpkg_fixup_pkgconfig()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/cli11/vcpkg.json b/ports/cli11/vcpkg.json
new file mode 100644
index 000000000..93f45475d
--- /dev/null
+++ b/ports/cli11/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "cli11",
+ "version-semver": "2.0.0",
+ "description": "CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.",
+ "homepage": "https://github.com/CLIUtils/CLI11",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}