commit:     34564c919468c7206b76be2a26387125ce6cba72
Author:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Sun Jul 13 07:58:59 2025 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Jul 13 08:24:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=34564c91

dev-cpp/fkYAML: add 0.4.2_p20250522

Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>

 dev-cpp/fkYAML/Manifest                            |  1 +
 .../fkYAML-0.4.2_p20250522-Use-system-Catch2.patch | 13 +++++++
 dev-cpp/fkYAML/fkYAML-0.4.2_p20250522.ebuild       | 40 ++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/dev-cpp/fkYAML/Manifest b/dev-cpp/fkYAML/Manifest
index 2830808597..0532a0a694 100644
--- a/dev-cpp/fkYAML/Manifest
+++ b/dev-cpp/fkYAML/Manifest
@@ -1 +1,2 @@
 DIST fkYAML-0.4.2.tar.gz 437972 BLAKE2B 
24afade617172a5af8b0be3c91b069ed1782140101a67b86bb3afad230656d22e4e55f24883499ca1764a095c87a64370fdba9b0aa617c51815b25d4bdd2f374
 SHA512 
20a7e2a236f77e27a676348585cbf6c36d8c46f1ad0964b879eb61925e3d6545d6dda46379b897712890faa2b8d5e837b7f9cc312448a3d762f0017c618cbcd1
+DIST fkYAML-0.4.2_p20250522.tar.gz 586601 BLAKE2B 
236e9c3e09fd6aaf94e3c7740790ac362bcd19e949fa5570e480ce9d30fcf8bde0e2ff6c948d9082c1efc347be1c46c381834ebaf640d082035f5e7d4c60c1cb
 SHA512 
80cdbab5ca5a8d2d9f7a9c98b7a75a5807e46609c4c6e5e3a162ece60ba820e890413f09048e53f094edeb52e03c9592187cbb008812c77bc598f2868f85f8f7

diff --git 
a/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Use-system-Catch2.patch 
b/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Use-system-Catch2.patch
new file mode 100644
index 0000000000..fe40120f42
--- /dev/null
+++ b/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Use-system-Catch2.patch
@@ -0,0 +1,13 @@
+From: Pavel Sobolev <[email protected]>
+Subject: [PATCH] Use system `Catch2`.
+
+Signed-off-by: Pavel Sobolev <[email protected]>
+
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -1,5 +1,4 @@
+-set(CATCH2_ROOT_DIR "${PROJECT_SOURCE_DIR}/thirdparty/Catch2")
+-list(APPEND CMAKE_MODULE_PATH "${CATCH2_ROOT_DIR}/contrib")
++find_package(Catch2 REQUIRED)
+ 
+ add_subdirectory(unit_test)

diff --git a/dev-cpp/fkYAML/fkYAML-0.4.2_p20250522.ebuild 
b/dev-cpp/fkYAML/fkYAML-0.4.2_p20250522.ebuild
new file mode 100644
index 0000000000..0fae4ad5cb
--- /dev/null
+++ b/dev-cpp/fkYAML/fkYAML-0.4.2_p20250522.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake vcs-snapshot
+
+EGIT_COMMIT="721edb3e1a817e527fd9e1e18a3bea300822522e"
+
+DESCRIPTION="A C++ header-only YAML library"
+HOMEPAGE="https://fktn-k.github.io/fkYAML/";
+SRC_URI="https://github.com/fktn-k/fkYAML/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? ( =dev-cpp/catch-2* )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.4.2_p20250522-Use-system-Catch2.patch"
+)
+
+src_prepare() {
+       find thirdparty -mindepth 1 -not -name imapdl -delete
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DFK_YAML_BUILD_TEST=$(usex test)
+       )
+
+       cmake_src_configure
+}

Reply via email to