[asio] Download from github (#4709)

This commit is contained in:
Stanislav Ershov 2018-11-21 02:19:09 +03:00 committed by Robert Schumacher
parent ab567d90b7
commit 9eab773b8f
2 changed files with 9 additions and 15 deletions

View File

@ -1,3 +1,3 @@
Source: asio Source: asio
Version: 1.12.1 Version: 1.12.1-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,25 +1,19 @@
#header-only library #header-only library
include(vcpkg_common_functions) include(vcpkg_common_functions)
vcpkg_download_distfile( vcpkg_from_github(
ARCHIVE_FILE OUT_SOURCE_PATH SOURCE_PATH
URLS "https://sourceforge.net/projects/asio/files/asio/1.12.1%20%28Stable%29/asio-1.12.1.zip/download" REPO chriskohlhoff/asio
FILENAME "asio-1.12.1.zip" REF asio-1-12-1
SHA512 f35a519cde88824f65bde095c19d69449d0779e75da9e9ebb6a04f4847802213e8730715756a21632c4d27722cd5568ff7878d656ac79165a8bdf8652fbc1bd8 SHA512 e335eea05c27a72faae95dd5d5ca997ac8bb144cd5fb68e5538129ea6afb3b4d88e2be1c31a1effdbbbe4c93e07ee274a7e5817453c29faf56abf9ab692b2dd6
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}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(INSTALL ${SOURCE_PATH}/asio/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME 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}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.ipp") file(INSTALL ${SOURCE_PATH}/asio/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)