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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8684115802E for ; Tue, 25 Jun 2024 09:52:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BCF6E2A0F; Tue, 25 Jun 2024 09:52:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2FD0E2A0F for ; Tue, 25 Jun 2024 09:52:08 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D15933BE4D for ; Tue, 25 Jun 2024 09:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EEF91D51 for ; Tue, 25 Jun 2024 09:52:05 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1719100249.8b17e78ebd7732d76fb4a4f38097b1d6f514f75d.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master 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: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 8b17e78ebd7732d76fb4a4f38097b1d6f514f75d X-VCS-Branch: master Date: Tue, 25 Jun 2024 09:52:05 +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: 392d5cc6-16df-473c-a2c9-95b59581ebc5 X-Archives-Hash: 30fb20280e5852de7a7d52f6c92d5a6c commit: 8b17e78ebd7732d76fb4a4f38097b1d6f514f75d Author: Lucio Sauer posteo net> AuthorDate: Sat Jun 22 23:50:49 2024 +0000 Commit: David Roman gmail com> 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? (