aboutsummaryrefslogtreecommitdiff
path: root/ports/any-lite
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2021-09-08 12:41:40 +0800
committerGitHub <noreply@github.com>2021-09-07 21:41:40 -0700
commitd1657f4c9b0dedbfd917fc3ffba16f0e106b9fb5 (patch)
treeca17091a4bc8f2986240a0d9e063e96e8e0bd2f6 /ports/any-lite
parent8ef3e28099e0d807c6be79520ed217dbcc5c4e85 (diff)
downloadvcpkg-d1657f4c9b0dedbfd917fc3ffba16f0e106b9fb5.tar.gz
vcpkg-d1657f4c9b0dedbfd917fc3ffba16f0e106b9fb5.zip
[arcus/any-lite/aixlog] Update to the latest version (#19977)
* [arcus/any-lite/aixlog] Update to the latest version * update version * Apply requested changes * update version * update vcpkg.json * update version
Diffstat (limited to 'ports/any-lite')
-rw-r--r--ports/any-lite/CONTROL3
-rw-r--r--ports/any-lite/portfile.cmake24
-rw-r--r--ports/any-lite/vcpkg.json15
3 files changed, 23 insertions, 19 deletions
diff --git a/ports/any-lite/CONTROL b/ports/any-lite/CONTROL
deleted file mode 100644
index 6eaf3d167..000000000
--- a/ports/any-lite/CONTROL
+++ /dev/null
@@ -1,3 +0,0 @@
-Source: any-lite
-Version: 0.2.0
-Description: A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library
diff --git a/ports/any-lite/portfile.cmake b/ports/any-lite/portfile.cmake
index 22809839c..a1b509d65 100644
--- a/ports/any-lite/portfile.cmake
+++ b/ports/any-lite/portfile.cmake
@@ -1,29 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/any-lite
- REF v0.2.0
- SHA512 703900d7bac96d41f903b6cabba4bce15ef3cf7ef0a6a66de76230498ededff110e43d68d4a3fd6996869b2edd001f69bd53039a214d06b774ce99518f384a68
+ REF d45a83b8e49d09ff5e5b66c10a56c997946436d9 #v0.4.0
+ SHA512 b73fe2d1e6de24e143337ef72f71949bf2ae4157a58a5c7e45dd0e9412dd798da6ef929fa09d104305483e769a603b37babd7ba65ab854a33483ab3ec8a921ec
)
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DANY_LITE_OPT_BUILD_TESTS=OFF
-DANY_LITE_OPT_BUILD_EXAMPLES=OFF
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
-vcpkg_fixup_cmake_targets(
- CONFIG_PATH lib/cmake/${PORT}
-)
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
-file( REMOVE_RECURSE
- ${CURRENT_PACKAGES_DIR}/debug
- ${CURRENT_PACKAGES_DIR}/lib
-)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
-file( INSTALL
- ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
-)
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/any-lite/vcpkg.json b/ports/any-lite/vcpkg.json
new file mode 100644
index 000000000..31f836c51
--- /dev/null
+++ b/ports/any-lite/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "any-lite",
+ "version-semver": "0.4.0",
+ "description": "A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}