aboutsummaryrefslogtreecommitdiff
path: root/ports/msgpack11
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-07-14 12:46:05 -0700
committerGitHub <noreply@github.com>2021-07-14 12:46:05 -0700
commit957d2024b8d6ef44164559645dd898c306066964 (patch)
tree7efb14324d139bc22556cdf9d3896469a5846399 /ports/msgpack11
parentd369df7ecf194005eaca46f07368779cd486badd (diff)
downloadvcpkg-957d2024b8d6ef44164559645dd898c306066964.tar.gz
vcpkg-957d2024b8d6ef44164559645dd898c306066964.zip
Update to Ubuntu 20.04. (#18892)
* Update Ubuntu to 20.04. * [tfhe] Disable -Wall -Werror * [sophus] Disable -Werror. * Fix typo in deployment of CUDA. * Add libxxf86vm-dev for opensubdiv. * [opensubdiv] Fix OpenCL search on Ubuntu 20.04, and document libxxf86vm-dev dependency * [msgpack11] Disable -Werror. * [qtwayland, qt5wayland] Add system library notice. * Add python-is-python3 to unbreak tensorflow, v8, and others * [graphqlparser] Remove directive rejected by Bison 3.5.1 * [ogdf] Mark as failing in ci.baseline.txt. Issue filed https://github.com/microsoft/vcpkg/issues/18936 * [bde] Mark failing in ci.baseline.txt, issue filed https://github.com/microsoft/vcpkg/issues/18937 * [soem] Patch out -Werror * Update pool.
Diffstat (limited to 'ports/msgpack11')
-rw-r--r--ports/msgpack11/CONTROL6
-rw-r--r--ports/msgpack11/disable-werror.patch14
-rw-r--r--ports/msgpack11/portfile.cmake9
-rw-r--r--ports/msgpack11/vcpkg.json10
4 files changed, 29 insertions, 10 deletions
diff --git a/ports/msgpack11/CONTROL b/ports/msgpack11/CONTROL
deleted file mode 100644
index 3fde8f39c..000000000
--- a/ports/msgpack11/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: msgpack11
-Version: 0.0.10-1
-Homepage: https://msgpack.org
-Build-Depends: gtest
-Description: msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.
-
diff --git a/ports/msgpack11/disable-werror.patch b/ports/msgpack11/disable-werror.patch
new file mode 100644
index 000000000..eb4a17e08
--- /dev/null
+++ b/ports/msgpack11/disable-werror.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 080cefa..b73072a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -9,9 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ add_library(msgpack11 STATIC msgpack11.cpp)
+ target_include_directories(msgpack11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+ target_compile_options(msgpack11 PRIVATE -fno-rtti)
+-if(NOT MSVC)
+- target_compile_options(msgpack11 PRIVATE -Wall -Wextra -Werror)
+-endif()
+ configure_file("msgpack11.pc.in" "msgpack11.pc" @ONLY)
+
+ if (MSGPACK11_BUILD_TESTS)
diff --git a/ports/msgpack11/portfile.cmake b/ports/msgpack11/portfile.cmake
index cf828f6b1..f4dc73c63 100644
--- a/ports/msgpack11/portfile.cmake
+++ b/ports/msgpack11/portfile.cmake
@@ -8,19 +8,20 @@ vcpkg_from_github(
PATCHES
msvc.patch
fix-additerator.patch
+ disable-werror.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
- -DMSGPACK11_BUILD_TESTS=OFF
- -DMSGPACK11_BUILD_EXAMPLES=OFF
+ -DMSGPACK11_BUILD_TESTS=OFF
+ -DMSGPACK11_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/msgpack11/vcpkg.json b/ports/msgpack11/vcpkg.json
new file mode 100644
index 000000000..0072e7dfd
--- /dev/null
+++ b/ports/msgpack11/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "msgpack11",
+ "version": "0.0.10",
+ "port-version": 2,
+ "description": "msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.",
+ "homepage": "https://msgpack.org",
+ "dependencies": [
+ "gtest"
+ ]
+}