Skip to content

Commit

Permalink
[argtable3] Update to 3.1.5 (microsoft#12421)
Browse files Browse the repository at this point in the history
* [argtable3] Update to 3.1.5

* Replace CONTROL file with vcpkg.json

* Remove comma at the end of json file

* Remove bin folder on static build
  • Loading branch information
PhoebeHui authored and hellozee committed Sep 11, 2020
1 parent 13dcd3b commit 9d8ed6d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 119 deletions.
4 changes: 0 additions & 4 deletions ports/argtable3/CONTROL

This file was deleted.

98 changes: 0 additions & 98 deletions ports/argtable3/fix-cmake.patch

This file was deleted.

25 changes: 8 additions & 17 deletions ports/argtable3/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO argtable/argtable3
REF bbc4ec20991e87ecf8dcf288aef777b55b78daa7
SHA512 050f54ead2d029715d8f10e63ff555027ead61fbfa18bd955e3b99e080f9178ad5c41937c5d62477885143f27bb9e7e505a7120b95bfcd899a60719584191f1c
REF 1c1bb23b305c8cf349328fc0cacd7beb7a575ff4 # v3.1.5
SHA512 13150c8adc1eda107b6df65a2e276510a66bd912f6067d7cc72951735a4c20307144b04cda959cdd24f160da3810ba8bb35e48992ff4281e44ed2331d030fb1d
HEAD_REF master
PATCHES
fix-cmake.patch
)

vcpkg_configure_cmake(
Expand All @@ -29,14 +25,9 @@ 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(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})

file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
vcpkg_replace_string(
Expand All @@ -46,8 +37,8 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
)
endif()

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
6 changes: 6 additions & 0 deletions ports/argtable3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "argtable3",
"version-string": "3.1.5",
"description": "A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options",
"homepage": "www.argtable.org"
}

0 comments on commit 9d8ed6d

Please sign in to comment.