aboutsummaryrefslogtreecommitdiff
path: root/ports/asio
diff options
context:
space:
mode:
authorMathis Logemann <mathisloge@gmail.com>2020-10-30 20:47:16 +0100
committerGitHub <noreply@github.com>2020-10-30 12:47:16 -0700
commit416bb1c67769a32f7c090408715117bfebb0215e (patch)
tree7a303d434f386616c28a9b544b67cb3eb10ecda1 /ports/asio
parent20b665e2985e4af6dce0589807c7064df0e84c3b (diff)
downloadvcpkg-416bb1c67769a32f7c090408715117bfebb0215e.tar.gz
vcpkg-416bb1c67769a32f7c090408715117bfebb0215e.zip
[asio] update to version 1.18.0 (#14095) (#14167)
Diffstat (limited to 'ports/asio')
-rw-r--r--ports/asio/CONTROL4
-rw-r--r--ports/asio/portfile.cmake11
-rw-r--r--ports/asio/vcpkg.json27
3 files changed, 32 insertions, 10 deletions
diff --git a/ports/asio/CONTROL b/ports/asio/CONTROL
deleted file mode 100644
index c0da68a9b..000000000
--- a/ports/asio/CONTROL
+++ /dev/null
@@ -1,4 +0,0 @@
-Source: asio
-Version: 1.12.2-2
-Homepage: https://github.com/chriskohlhoff/asio
-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.
diff --git a/ports/asio/portfile.cmake b/ports/asio/portfile.cmake
index 685aa5be6..00edbed09 100644
--- a/ports/asio/portfile.cmake
+++ b/ports/asio/portfile.cmake
@@ -1,16 +1,15 @@
#header-only library
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO chriskohlhoff/asio
- REF asio-1-12-2
- SHA512 7c2e213ff154bb2e5776b37906d437a62206f973316c94706e6d42e3c2f0866e7d97f3e40225ab5f28bf2c4a33fa0b38a4b75421aef86ddf9f2da0811caa2d00
+ REF asio-1-18-0
+ SHA512 c79529d16a51f40c9faff8549ef7dd7074aaf2574c8c338a8885aa04b3bb261a493f57498d1bd271cfcb4083e561344e286f784c77ea20e355bf86f7a39cfb39
HEAD_REF master
)
# Always use "ASIO_STANDALONE" to avoid boost dependency
-file(READ "${SOURCE_PATH}/asio/include/asio/detail/config.hpp" _contents)
-string(REPLACE "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)" _contents "${_contents}")
-file(WRITE "${SOURCE_PATH}/asio/include/asio/detail/config.hpp" "${_contents}")
+vcpkg_replace_string("${SOURCE_PATH}/asio/include/asio/detail/config.hpp" "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)")
# CMake install
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
@@ -23,7 +22,7 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/asio")
file(INSTALL
${CMAKE_CURRENT_LIST_DIR}/asio-config.cmake
- DESTINATION ${CURRENT_PACKAGES_DIR}/share/asio/
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
diff --git a/ports/asio/vcpkg.json b/ports/asio/vcpkg.json
new file mode 100644
index 000000000..1a838e0e7
--- /dev/null
+++ b/ports/asio/vcpkg.json
@@ -0,0 +1,27 @@
+{
+ "name": "asio",
+ "version-string": "1.18.0",
+ "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.",
+ "homepage": "https://github.com/chriskohlhoff/asio",
+ "documentation": "https://think-async.com/Asio/asio-1.18.0/doc/",
+ "features": {
+ "coroutine": {
+ "description": "Boost.Coroutine (optional) if you use spawn() to launch coroutines",
+ "dependencies": [
+ "boost-coroutine"
+ ]
+ },
+ "openssl": {
+ "description": "OpenSSL (optional) if you use Asio's SSL support.",
+ "dependencies": [
+ "openssl"
+ ]
+ },
+ "regex": {
+ "description": "Boost.Regex (optional) if you use any of the read_until() or async_read_until() overloads that take a boost::regex parameter.",
+ "dependencies": [
+ "boost-regex"
+ ]
+ }
+ }
+}