From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1648677-garchives=archives.gentoo.org@lists.gentoo.org>
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 00E9515802E
	for <garchives@archives.gentoo.org>; Mon,  1 Jul 2024 12:38:29 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 313C62BC013;
	Mon,  1 Jul 2024 12:38:29 +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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1355D2BC013
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Jul 2024 12:38:28 +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 221FF342FA2
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Jul 2024 12:38:28 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 803E61D9C
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Jul 2024 12:38:26 +0000 (UTC)
From: "David Roman" <davidroman96@gmail.com>
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" <davidroman96@gmail.com>
Message-ID: <1719837500.8902205cc79af29bc6226672308c5ee13250a9d5.davidroman@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpptrace/files/, dev-cpp/cpptrace/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-cpp/cpptrace/Manifest dev-cpp/cpptrace/cpptrace-0.6.2.ebuild dev-cpp/cpptrace/files/cpptrace-fix-tests.patch
X-VCS-Directories: dev-cpp/cpptrace/ dev-cpp/cpptrace/files/
X-VCS-Committer: davidroman
X-VCS-Committer-Name: David Roman
X-VCS-Revision: 8902205cc79af29bc6226672308c5ee13250a9d5
X-VCS-Branch: dev
Date: Mon,  1 Jul 2024 12:38:26 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: d1f551b8-b524-4f90-9724-8ac35a265b96
X-Archives-Hash: 37afc4e657a5c14e7b9cebbd00829107
Message-ID: <20240701123826.vdCrjKlfIHQQ5wMioHdYBKOw6VKUTpmH9SsEHONlFZk@z>

commit:     8902205cc79af29bc6226672308c5ee13250a9d5
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Jul  1 12:38:20 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jul  1 12:38:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8902205c

dev-cpp/cpptrace: add 0.6.2

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-cpp/cpptrace/Manifest                       |  1 +
 dev-cpp/cpptrace/cpptrace-0.6.2.ebuild          | 33 +++++++++++++++++++++++++
 dev-cpp/cpptrace/files/cpptrace-fix-tests.patch | 12 +++++++++
 3 files changed, 46 insertions(+)

diff --git a/dev-cpp/cpptrace/Manifest b/dev-cpp/cpptrace/Manifest
index edb2d9526..94b46d347 100644
--- a/dev-cpp/cpptrace/Manifest
+++ b/dev-cpp/cpptrace/Manifest
@@ -1,2 +1,3 @@
 DIST cpptrace-0.5.2.tar.gz 311215 BLAKE2B 77f5bce58ac088c5430cfa6b427bc8f019590520be8648a848108f4dbb23d3ce1260f6a3dd1d6bc9acf3a069218f3a25853083f88700d9dbdbeeadd20f9bc873 SHA512 e05a8a070ec7be0a1b36f25901c3ed7b566e4ca69e8e87cde558a0e65743d2dabd4cbad614af32d62a4da4b6a77144853adf7cb1be33335a86f7b1ef2d08c72f
 DIST cpptrace-0.6.0.tar.gz 318375 BLAKE2B 5c1694b6e579fb097379e9e9788ae84f89e1cd65848cf6fce79c8f9415e1b047fb018142a4d6fd868c021ae1d140d21e955d30f7eeb55f341f74ce7a4de68e32 SHA512 c5ebd1a733e22006abe2ef2b5e65a9f967ef2a433194d1c2dbed2dea7a81034a56717ad54698eaad20b3c53b941a2766587dc32936b3703ef87fda29eafc5dbf
+DIST cpptrace-0.6.2.tar.gz 319911 BLAKE2B 63531a4097f45dd5f24bc0b4227b7872c0b5303443bec7394da5dea3e25df56865673d3d0243fcb59213c00d2b6d3bb28fb525cf5d40ec639f686c4e552f6ca2 SHA512 aaf14207dbcb3e3fd551cfc4a4dbee265f9454f205362eb061fd5672ee54d19e3966a5f497bc90689a4c426ab4f9225f083d3a84bf4a0060b851cdf252f22615

diff --git a/dev-cpp/cpptrace/cpptrace-0.6.2.ebuild b/dev-cpp/cpptrace/cpptrace-0.6.2.ebuild
new file mode 100644
index 000000000..c96500dae
--- /dev/null
+++ b/dev-cpp/cpptrace/cpptrace-0.6.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Simple, portable, and self-contained stacktrace library for C++"
+HOMEPAGE="https://github.com/jeremy-rifkin/cpptrace"
+SRC_URI="https://github.com/jeremy-rifkin/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+KEYWORDS="~amd64"
+
+DEPEND="dev-libs/libdwarf
+	test? ( dev-cpp/gtest )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-fix-tests.patch" )
+
+
+src_configure() {
+	local mycmakeargs=(
+		-DCPPTRACE_USE_EXTERNAL_LIBDWARF=On
+		-DCPPTRACE_USE_EXTERNAL_GTEST=On
+		-DCPPTRACE_BUILD_TESTING=$(usex test)
+	)
+
+	cmake_src_configure
+}

diff --git a/dev-cpp/cpptrace/files/cpptrace-fix-tests.patch b/dev-cpp/cpptrace/files/cpptrace-fix-tests.patch
new file mode 100644
index 000000000..e9dd0c8cd
--- /dev/null
+++ b/dev-cpp/cpptrace/files/cpptrace-fix-tests.patch
@@ -0,0 +1,12 @@
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 1fc6c66..ec60849 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -60,6 +60,6 @@ if(NOT CPPTRACE_SKIP_UNIT)
+   )
+   target_compile_features(unittest PRIVATE cxx_std_20)
+   target_link_libraries(unittest PRIVATE ${target_name} GTest::gtest_main GTest::gmock_main)
+-  target_compile_options(unittest PRIVATE ${warning_options} $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-pedantic -Wno-attributes>)
++  target_compile_options(unittest PRIVATE ${warning_options} $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-pedantic -Wno-attributes -ggdb>)
+   add_test(NAME unittest COMMAND unittest)
+ endif()