Upgrade asio to version 1.12.1 (#3634)

This commit is contained in:
Robert Schumacher 2018-06-05 00:50:33 -07:00 committed by GitHub
parent ee6c993a74
commit ec2157154f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,3 @@
Source: asio Source: asio
Version: 1.12.0-2 Version: 1.12.1
Description: Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach. Description: Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.

View File

@ -1,20 +1,25 @@
#header-only library #header-only library
include(vcpkg_common_functions) include(vcpkg_common_functions)
vcpkg_from_github( vcpkg_download_distfile(
OUT_SOURCE_PATH SOURCE_PATH ARCHIVE_FILE
REPO chriskohlhoff/asio URLS "https://netix.dl.sourceforge.net/project/asio/asio/1.12.1%20%28Stable%29/asio-1.12.1.zip"
REF asio-1-12-0 FILENAME "asio-1.12.1.zip"
SHA512 a0e341fd6a848784e1533df84d1e6b361c8468f59d4fbde68c1500c1f8a2124ad78db0169098dbbc594ce26717eb9760f37af13cb288a549e2bda563eecf2be3 SHA512 f35a519cde88824f65bde095c19d69449d0779e75da9e9ebb6a04f4847802213e8730715756a21632c4d27722cd5568ff7878d656ac79165a8bdf8652fbc1bd8
HEAD_REF master
) )
vcpkg_extract_source_archive(
${ARCHIVE_FILE}
)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/asio-1.12.1)
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/asio/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
# Copy the asio header files # Copy the asio header files
file(INSTALL ${SOURCE_PATH}/asio/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.ipp") file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.ipp")
# Always use "ASIO_STANDALONE" to avoid boost dependency # Always use "ASIO_STANDALONE" to avoid boost dependency
file(READ "${CURRENT_PACKAGES_DIR}/include/asio/detail/config.hpp" _contents) file(READ "${CURRENT_PACKAGES_DIR}/include/asio/detail/config.hpp" _contents)