diff options
| author | Tom G. Huang <tomghuang@gmail.com> | 2021-06-11 09:40:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-11 09:40:53 -0700 |
| commit | e4357173ab48b9869652d18064f97bdf7bb79c10 (patch) | |
| tree | ac2e98d292fc41dba43e0dfab02eda513145f25e /ports | |
| parent | d9538eb345c1312379d5039574901a7742837ec7 (diff) | |
| download | vcpkg-e4357173ab48b9869652d18064f97bdf7bb79c10.tar.gz vcpkg-e4357173ab48b9869652d18064f97bdf7bb79c10.zip | |
[argtable3] Update to v3.2.1 (#18325)
* chore: Update to v3.2.1
Since we have modified CMake scripts in Argtable3, which now supports
the vcpkg manifest mechanism, we also remove unnecessary code snippets
and deprecated targets.
* chore: Update version information
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/argtable3/portfile.cmake | 28 | ||||
| -rw-r--r-- | ports/argtable3/vcpkg-cmake-wrapper.cmake | 9 | ||||
| -rw-r--r-- | ports/argtable3/vcpkg.json | 2 |
3 files changed, 9 insertions, 30 deletions
diff --git a/ports/argtable3/portfile.cmake b/ports/argtable3/portfile.cmake index 4e90c02e0..5cb94bc15 100644 --- a/ports/argtable3/portfile.cmake +++ b/ports/argtable3/portfile.cmake @@ -1,9 +1,12 @@ -vcpkg_from_github(
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/argtable/argtable3/releases/download/v3.2.1.52f24e5/argtable-v3.2.1.52f24e5.tar.gz"
+ FILENAME "argtable-v3.2.1.52f24e5.tar.gz"
+ SHA512 cec77d56048b38bb7af8553cb660e745972bbd90378eeea4e928579af78190c8a41fdb29c972263e18955e3a497e09c42f705f7c4d548c3c523c5cb104c97a10
+)
+
+vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
- REPO argtable/argtable3
- REF 1c1bb23b305c8cf349328fc0cacd7beb7a575ff4 # v3.1.5
- SHA512 13150c8adc1eda107b6df65a2e276510a66bd912f6067d7cc72951735a4c20307144b04cda959cdd24f160da3810ba8bb35e48992ff4281e44ed2331d030fb1d
- HEAD_REF master
+ ARCHIVE ${ARCHIVE}
)
vcpkg_configure_cmake(
@@ -12,7 +15,6 @@ vcpkg_configure_cmake( OPTIONS
-DARGTABLE3_ENABLE_CONAN=OFF
-DARGTABLE3_ENABLE_TESTS=OFF
- -DARGTABLE3_BUILD_STATIC_EXAMPLES=OFF
)
vcpkg_install_cmake()
@@ -25,20 +27,6 @@ elseif(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}) vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
endif()
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
-
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- vcpkg_replace_string(
- "${CURRENT_PACKAGES_DIR}/include/argtable3.h"
- "defined(argtable3_IMPORTS)"
- "1 // defined(argtable3_IMPORTS)"
- )
-endif()
-
-if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
- file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
-endif()
-
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
diff --git a/ports/argtable3/vcpkg-cmake-wrapper.cmake b/ports/argtable3/vcpkg-cmake-wrapper.cmake deleted file mode 100644 index 9000246de..000000000 --- a/ports/argtable3/vcpkg-cmake-wrapper.cmake +++ /dev/null @@ -1,9 +0,0 @@ -_find_package(${ARGS})
-
-if(TARGET argtable3 AND NOT TARGET argtable3_static)
- add_library(argtable3_static INTERFACE IMPORTED)
- set_target_properties(argtable3_static PROPERTIES INTERFACE_LINK_LIBRARIES argtable3)
-elseif(TARGET argtable3_static AND NOT TARGET argtable3)
- add_library(argtable3 INTERFACE IMPORTED)
- set_target_properties(argtable3 PROPERTIES INTERFACE_LINK_LIBRARIES argtable3_static)
-endif()
diff --git a/ports/argtable3/vcpkg.json b/ports/argtable3/vcpkg.json index 37c2ec78b..d28ccb745 100644 --- a/ports/argtable3/vcpkg.json +++ b/ports/argtable3/vcpkg.json @@ -1,6 +1,6 @@ { "name": "argtable3", - "version-string": "3.1.5", + "version-string": "3.2.1", "description": "A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options", "homepage": "www.argtable.org" } |
