summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-09-20 12:01:07 +0200
committerMarek Szuba <marecki@gentoo.org>2021-09-20 12:02:05 +0200
commitfa495d33063e04a705c9a4b7e8daa0c076e62d4c (patch)
tree99dd95c2c186ae7185e0cd29d575c635f76d6c84 /dev-cpp/benchmark/files
parentx11-misc/xdotool: drop 3.20210804.2 (diff)
downloadgentoo-fa495d33063e04a705c9a4b7e8daa0c076e62d4c.tar.gz
gentoo-fa495d33063e04a705c9a4b7e8daa0c076e62d4c.tar.bz2
gentoo-fa495d33063e04a705c9a4b7e8daa0c076e62d4c.zip
dev-cpp/benchmark: add 1.6.0
WARNING: This version features a breaking API change. See https://github.com/google/benchmark/releases/tag/v1.6.0 for details. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-cpp/benchmark/files')
-rw-r--r--dev-cpp/benchmark/files/benchmark-1.6.0-disable_Werror.patch12
-rw-r--r--dev-cpp/benchmark/files/benchmark-1.6.0-versioned_docdir.patch9
2 files changed, 21 insertions, 0 deletions
diff --git a/dev-cpp/benchmark/files/benchmark-1.6.0-disable_Werror.patch b/dev-cpp/benchmark/files/benchmark-1.6.0-disable_Werror.patch
new file mode 100644
index 000000000000..8a3de98008ea
--- /dev/null
+++ b/dev-cpp/benchmark/files/benchmark-1.6.0-disable_Werror.patch
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -160,9 +160,6 @@
+ add_cxx_compiler_flag(-Wall)
+ add_cxx_compiler_flag(-Wextra)
+ add_cxx_compiler_flag(-Wshadow)
+- add_cxx_compiler_flag(-Werror RELEASE)
+- add_cxx_compiler_flag(-Werror RELWITHDEBINFO)
+- add_cxx_compiler_flag(-Werror MINSIZEREL)
+ if (NOT BENCHMARK_ENABLE_TESTING)
+ # Disable warning when compiling tests as gtest does not use 'override'.
+ add_cxx_compiler_flag(-Wsuggest-override)
diff --git a/dev-cpp/benchmark/files/benchmark-1.6.0-versioned_docdir.patch b/dev-cpp/benchmark/files/benchmark-1.6.0-versioned_docdir.patch
new file mode 100644
index 000000000000..156e8b0c2a67
--- /dev/null
+++ b/dev-cpp/benchmark/files/benchmark-1.6.0-versioned_docdir.patch
@@ -0,0 +1,9 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -120,5 +120,5 @@
+
+ install(
+ DIRECTORY "${PROJECT_SOURCE_DIR}/docs/"
+- DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME}")
++ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME}-${CMAKE_PROJECT_VERSION}")
+ endif()