From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E24D15817D for ; Sat, 22 Jun 2024 23:51:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 247DAE2B07; Sat, 22 Jun 2024 23:51:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3921E2B07 for ; Sat, 22 Jun 2024 23:51:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A8B3E340C7C for ; Sat, 22 Jun 2024 23:51:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DFAAE9BE for ; Sat, 22 Jun 2024 23:51:41 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1719100249.8b17e78ebd7732d76fb4a4f38097b1d6f514f75d.watermanpaint@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/mustache/, dev-cpp/mustache/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-cpp/mustache/files/mustache-4.1_p20211210-unbundle-catch.patch dev-cpp/mustache/mustache-4.1_p20211210.ebuild X-VCS-Directories: dev-cpp/mustache/ dev-cpp/mustache/files/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: 8b17e78ebd7732d76fb4a4f38097b1d6f514f75d X-VCS-Branch: dev Date: Sat, 22 Jun 2024 23:51:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b6b2c9fd-3baf-463a-8754-92fb1a54561e X-Archives-Hash: 17bd65cac62a7b3ed20dda0ca103e8d5 commit: 8b17e78ebd7732d76fb4a4f38097b1d6f514f75d Author: Lucio Sauer posteo net> AuthorDate: Sat Jun 22 23:50:49 2024 +0000 Commit: Lucio Sauer posteo net> CommitDate: Sat Jun 22 23:50:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8b17e78e dev-cpp/mustache: unbundle test dependency Make test compilation optional. Signed-off-by: Lucio Sauer posteo.net> .../mustache-4.1_p20211210-unbundle-catch.patch | 48 ++++++++++++++++++++++ dev-cpp/mustache/mustache-4.1_p20211210.ebuild | 13 ++++++ 2 files changed, 61 insertions(+) diff --git a/dev-cpp/mustache/files/mustache-4.1_p20211210-unbundle-catch.patch b/dev-cpp/mustache/files/mustache-4.1_p20211210-unbundle-catch.patch new file mode 100644 index 000000000..bb68eb4c1 --- /dev/null +++ b/dev-cpp/mustache/files/mustache-4.1_p20211210-unbundle-catch.patch @@ -0,0 +1,48 @@ +Unbundle test dependency dev-cpp/catch and make test compilation optional. + +Author: Lucio Sauer +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,7 +2,12 @@ cmake_minimum_required(VERSION 3.0.2) + project(mustache) + add_library(mustache INTERFACE) + ++option(TESTS "build tests") ++ + target_compile_features(mustache INTERFACE cxx_std_17) + target_sources(mustache INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/mustache.hpp) + target_include_directories(mustache INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) +-add_subdirectory(tests) +\ No newline at end of file ++ ++if (TESTS) ++ add_subdirectory(tests) ++endif (TESTS) +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -1,10 +1,12 @@ ++find_package(Catch2 REQUIRED) ++ + add_executable(mustache-unit-tests + ../mustache.hpp # to show in IDE +- catch.hpp # to show in IDE + tests.cpp + ) + +-target_link_libraries(mustache-unit-tests PRIVATE mustache) ++ ++target_link_libraries(mustache-unit-tests PRIVATE mustache Catch2::Catch2) + + if (UNIX) + target_compile_options(mustache-unit-tests PRIVATE -Wall -Wextra -Werror -Wconversion) +--- a/tests/tests.cpp ++++ b/tests/tests.cpp +@@ -29,7 +29,7 @@ + #include "mustache.hpp" + + #define CATCH_CONFIG_MAIN +-#include "catch.hpp" ++#include + + using namespace kainjow::mustache; + diff --git a/dev-cpp/mustache/mustache-4.1_p20211210.ebuild b/dev-cpp/mustache/mustache-4.1_p20211210.ebuild index ee71cb14a..6739909f5 100644 --- a/dev-cpp/mustache/mustache-4.1_p20211210.ebuild +++ b/dev-cpp/mustache/mustache-4.1_p20211210.ebuild @@ -14,6 +14,19 @@ S="${WORKDIR}/Mustache-${COMMIT}" LICENSE="Boost-1.0" SLOT="0" KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? (