Date: Mon, 3 Oct 2022 17:12:35 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 34e96380886b - main - databases/leveldb: Convert to USES=cmake:testing Message-ID: <202210031712.293HCZ9K011698@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=34e96380886b2ae59b25ab4a9553c32b484a6bca commit 34e96380886b2ae59b25ab4a9553c32b484a6bca Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-10-03 17:02:51 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-10-03 17:10:15 +0000 databases/leveldb: Convert to USES=cmake:testing --- databases/leveldb/Makefile | 6 +++++- databases/leveldb/files/patch-CMakeLists.txt | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/databases/leveldb/Makefile b/databases/leveldb/Makefile index c73f1013018e..5f115e69ac25 100644 --- a/databases/leveldb/Makefile +++ b/databases/leveldb/Makefile @@ -9,10 +9,14 @@ WWW= https://github.com/google/leveldb LICENSE= BSD3CLAUSE -USES= cmake compiler:c++11-lang localbase +TEST_DEPENDS= benchmark>=0:devel/benchmark \ + googletest>=0:devel/googletest + +USES= cmake:testing compiler:c++11-lang localbase:ldflags CMAKE_OFF= LEVELDB_BUILD_TESTS CMAKE_ON= BUILD_SHARED_LIBS LEVELDB_BUILD_BENCHMARKS LEVELDB_INSTALL +CMAKE_TESTING_ON= LEVELDB_BUILD_TESTS USE_CXXSTD= c++11 USE_LDCONFIG= yes diff --git a/databases/leveldb/files/patch-CMakeLists.txt b/databases/leveldb/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..2983e1b6df73 --- /dev/null +++ b/databases/leveldb/files/patch-CMakeLists.txt @@ -0,0 +1,25 @@ +--- CMakeLists.txt.orig 2021-02-23 20:54:37 UTC ++++ CMakeLists.txt +@@ -295,22 +295,6 @@ if(LEVELDB_BUILD_TESTS) + set(install_gmock OFF) + set(build_gmock ON) + +- # This project is tested using GoogleTest. +- add_subdirectory("third_party/googletest") +- +- # This project uses Google benchmark for benchmarking. +- set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE) +- set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "" FORCE) +- add_subdirectory("third_party/benchmark") +- +- # GoogleTest triggers a missing field initializers warning. +- if(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS) +- set_property(TARGET gtest +- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers) +- set_property(TARGET gmock +- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers) +- endif(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS) +- + function(leveldb_test test_file) + get_filename_component(test_target_name "${test_file}" NAME_WE) +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210031712.293HCZ9K011698>