From 97431cb93e5088992dc8f05f45948b2984071b29 Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Wed, 15 May 2019 16:46:28 -0700 Subject: [cpp-netlib] Add new port (#6424) * [cpp-netlib] Add new port * Fix the problem on Linux. * Add the unsupported message for UWP. --- ports/cpp-netlib/CONTROL | 4 ++++ ports/cpp-netlib/portfile.cmake | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 ports/cpp-netlib/CONTROL create mode 100644 ports/cpp-netlib/portfile.cmake (limited to 'ports/cpp-netlib') diff --git a/ports/cpp-netlib/CONTROL b/ports/cpp-netlib/CONTROL new file mode 100644 index 000000000..010786d53 --- /dev/null +++ b/ports/cpp-netlib/CONTROL @@ -0,0 +1,4 @@ +Source: cpp-netlib +Version: 0.13.0-rc3 +Description: A collection of network-related routines/implementations geared towards providing a robust cross-platform networking library +Build-Depends: boost \ No newline at end of file diff --git a/ports/cpp-netlib/portfile.cmake b/ports/cpp-netlib/portfile.cmake new file mode 100644 index 000000000..ff9870e46 --- /dev/null +++ b/ports/cpp-netlib/portfile.cmake @@ -0,0 +1,37 @@ +include(vcpkg_common_functions) + +if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") + message(FATAL_ERROR "${PORT} does not currently support UWP") +endif() + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cpp-netlib/cpp-netlib + REF cpp-netlib-0.13.0-rc3 + SHA512 ddc4178381ebc4179bc243d19ecd4c7e424a61a7b75b6fd59d1f9e9fbcc1383c0afba97bcbef1b791eedb5a7a2cd63a633454f3848dfc5d76a41cc8a2c6ed302 + HEAD_REF master +) + + vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DCPP-NETLIB_BUILD_TESTS=off + -DCPP-NETLIB_BUILD_EXAMPLES=off + +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +if(WIN32 AND NOT CYGWIN) + vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/${PORT}) +else() + vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cppnetlib) +endif() + +file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) + -- cgit v1.2.3 From 33af90d42af68ef343edb00a69b1e11548a9e2e1 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Tue, 21 May 2019 21:00:24 -0700 Subject: [many ports] Updates 2019.05.19 (#6524) --- ports/cpp-netlib/CONTROL | 2 +- ports/cpp-netlib/portfile.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ports/cpp-netlib') diff --git a/ports/cpp-netlib/CONTROL b/ports/cpp-netlib/CONTROL index 010786d53..361c4dced 100644 --- a/ports/cpp-netlib/CONTROL +++ b/ports/cpp-netlib/CONTROL @@ -1,4 +1,4 @@ Source: cpp-netlib -Version: 0.13.0-rc3 +Version: 0.13.0-final Description: A collection of network-related routines/implementations geared towards providing a robust cross-platform networking library Build-Depends: boost \ No newline at end of file diff --git a/ports/cpp-netlib/portfile.cmake b/ports/cpp-netlib/portfile.cmake index ff9870e46..b57efdbf1 100644 --- a/ports/cpp-netlib/portfile.cmake +++ b/ports/cpp-netlib/portfile.cmake @@ -9,8 +9,8 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO cpp-netlib/cpp-netlib - REF cpp-netlib-0.13.0-rc3 - SHA512 ddc4178381ebc4179bc243d19ecd4c7e424a61a7b75b6fd59d1f9e9fbcc1383c0afba97bcbef1b791eedb5a7a2cd63a633454f3848dfc5d76a41cc8a2c6ed302 + REF cpp-netlib-0.13.0-final + SHA512 1839bf1acb7917acd2957f1008a44ed26a38849afb5843bfa0d5c557dde530afab4183d8d273a87d6416aad2b3a59fdecdef5fbb62bc91ed484486c80a1de5eb HEAD_REF master ) -- cgit v1.2.3