commit: 48ef28dfa8a660c33f16798fe5763b71c3926299 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> AuthorDate: Wed Nov 17 23:02:46 2021 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Wed Nov 17 23:02:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=48ef28df
dev-libs/mtxclient: Version bump 0.6.0. Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> dev-libs/mtxclient/Manifest | 1 + .../files/0.6.0_remove_network_tests.patch | 89 ++++++++++++++++++++++ dev-libs/mtxclient/mtxclient-0.6.0.ebuild | 42 ++++++++++ 3 files changed, 132 insertions(+) diff --git a/dev-libs/mtxclient/Manifest b/dev-libs/mtxclient/Manifest index ca390a5cf..6a08e74f6 100644 --- a/dev-libs/mtxclient/Manifest +++ b/dev-libs/mtxclient/Manifest @@ -1,2 +1,3 @@ DIST mtxclient-0.5.1.tar.gz 582367 BLAKE2B d30a5e0e16d6783d8d1175e5f4144d845fe62897dcc7952cb1598470befa1da47a2b06cd70a60f511a1c2e7656eca2cf5a87734cbc61b79d2a05df295fd256e0 SHA512 f0a5e823bd7f3cccdf5f919c04c36a1a5ab4d2627a6f8f3fac78e4b300eda3b9e1f5060fb31e6e47267bbafc3a03f6c2a2d16c2323e63ce4889f551860e7703f DIST mtxclient-0.5.2_pre20210916.tar.gz 588702 BLAKE2B 643e37c13348d0fff65b38e16581918d1b9555d6d6cc19ce4965eaa5e34620a6d0f60af7bb075ffded4b585f38b889565c3cfd42f02c2749e4a8c8f013b6c125 SHA512 778257173c08930a05d3bef91afe34d4cf963f57e75159f99a2468513df80669215002ecf5f10c3639a8fef944aeb814cb447e4984c5e1c8ffd87d53b8938030 +DIST mtxclient-0.6.0.tar.gz 593602 BLAKE2B 61e9f332e2056727c0d8e6b473e42591e3a8fc4841b8f76a1fe3ac61b1ccc9ba40c0dd248201ae301ce56d21aa0e034d65c5a7e7c33b202361b6ab6fd763aa01 SHA512 8ee9cd6cfab64625029ed18b5de72523a8d7dc1ac67ff8d9f32d730f15e473248ec11447a480ce9f76629d1bd5722785f229857489a63e71e92aae0990a3d20f diff --git a/dev-libs/mtxclient/files/0.6.0_remove_network_tests.patch b/dev-libs/mtxclient/files/0.6.0_remove_network_tests.patch new file mode 100644 index 000000000..46a2dc8a4 --- /dev/null +++ b/dev-libs/mtxclient/files/0.6.0_remove_network_tests.patch @@ -0,0 +1,89 @@ +From 6fecee0d675e65b75d67c66218a7655cb285bb5c Mon Sep 17 00:00:00 2001 +From: tastytea <[email protected]> +Date: Sat, 23 Oct 2021 01:42:27 +0200 +Subject: [PATCH] Remove network tests. + +--- + CMakeLists.txt | 51 -------------------------------------------------- + 1 file changed, 51 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0d13a72..98c2782 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -360,36 +360,6 @@ if(BUILD_LIB_TESTS) + + file(COPY tests/fixtures DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + +- add_executable(client_api tests/client_api.cpp) +- target_link_libraries(client_api +- MatrixClient::MatrixClient +- GTest::GTest +- GTest::Main) +- target_include_directories(client_api PRIVATE +- ${CMAKE_CURRENT_SOURCE_DIR}/tests) +- +- add_executable(media_api tests/media_api.cpp) +- target_link_libraries(media_api +- MatrixClient::MatrixClient +- GTest::GTest +- GTest::Main) +- target_include_directories(media_api PRIVATE +- ${CMAKE_CURRENT_SOURCE_DIR}/tests) +- +- add_executable(e2ee tests/e2ee.cpp) +- target_link_libraries(e2ee +- MatrixClient::MatrixClient +- GTest::GTest +- GTest::Main) +- target_include_directories(e2ee PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests) +- +- add_executable(device tests/device.cpp) +- target_link_libraries(device +- MatrixClient::MatrixClient +- GTest::GTest +- GTest::Main) +- target_include_directories(device PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests) +- + add_executable(utils tests/utils.cpp) + target_link_libraries(utils + MatrixClient::MatrixClient +@@ -397,21 +367,6 @@ if(BUILD_LIB_TESTS) + GTest::Main) + target_include_directories(utils PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests) + +- add_executable(pushrules tests/pushrules.cpp) +- target_link_libraries(pushrules +- MatrixClient::MatrixClient +- GTest::GTest +- GTest::Main) +- target_include_directories(pushrules PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests) +- +- add_executable(connection tests/connection.cpp) +- target_link_libraries(connection +- MatrixClient::MatrixClient +- GTest::GTest +- GTest::Main) +- target_include_directories(connection PRIVATE +- ${CMAKE_CURRENT_SOURCE_DIR}/tests) +- + add_executable(identifiers tests/identifiers.cpp) + target_link_libraries(identifiers + MatrixClient::MatrixClient +@@ -454,13 +409,7 @@ if(BUILD_LIB_TESTS) + GTest::GTest + GTest::Main) + +- add_test(BasicConnectivity connection) +- add_test(ClientAPI client_api) +- add_test(MediaAPI media_api) +- add_test(Encryption e2ee) +- add_test(Devices device) + add_test(Utilities utils) +- add_test(Pushrules pushrules) + add_test(Identifiers identifiers) + add_test(Errors errors) + add_test(CryptoStructs crypto) +-- +2.32.0 + diff --git a/dev-libs/mtxclient/mtxclient-0.6.0.ebuild b/dev-libs/mtxclient/mtxclient-0.6.0.ebuild new file mode 100644 index 000000000..525e24dc1 --- /dev/null +++ b/dev-libs/mtxclient/mtxclient-0.6.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio" +HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient" +SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/olm + >=dev-libs/openssl-1.1.0 + dev-libs/spdlog + >=dev-cpp/coeurl-0.1.0 +" +DEPEND=" + ${RDEPEND} + dev-cpp/nlohmann_json + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}/0.6.0_remove_network_tests.patch" +) + +src_configure() { + local -a mycmakeargs=( + -DBUILD_LIB_TESTS="$(usex test)" + -DBUILD_LIB_EXAMPLES=OFF + ) + + cmake_src_configure +}
