summaryrefslogtreecommitdiff
path: root/dev-cpp/fkYAML
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-cpp/fkYAML
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-cpp/fkYAML')
-rw-r--r--dev-cpp/fkYAML/Manifest2
-rw-r--r--dev-cpp/fkYAML/files/fkYAML-0.4.2-Remove-the-space-between-operator-and-_yaml.patch44
-rw-r--r--dev-cpp/fkYAML/files/fkYAML-0.4.2-Use-system-Catch2.patch38
-rw-r--r--dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Strip-Werror.patch30
-rw-r--r--dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Use-system-Catch2.patch13
-rw-r--r--dev-cpp/fkYAML/fkYAML-0.4.2.ebuild39
-rw-r--r--dev-cpp/fkYAML/fkYAML-0.4.2_p20250522.ebuild43
-rw-r--r--dev-cpp/fkYAML/metadata.xml12
8 files changed, 221 insertions, 0 deletions
diff --git a/dev-cpp/fkYAML/Manifest b/dev-cpp/fkYAML/Manifest
new file mode 100644
index 000000000000..0532a0a6942d
--- /dev/null
+++ b/dev-cpp/fkYAML/Manifest
@@ -0,0 +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-Remove-the-space-between-operator-and-_yaml.patch b/dev-cpp/fkYAML/files/fkYAML-0.4.2-Remove-the-space-between-operator-and-_yaml.patch
new file mode 100644
index 000000000000..52bd5e91b5cc
--- /dev/null
+++ b/dev-cpp/fkYAML/files/fkYAML-0.4.2-Remove-the-space-between-operator-and-_yaml.patch
@@ -0,0 +1,44 @@
+From: Pavel Sobolev <contact@paveloom.dev>
+Subject: [PATCH] Remove the space between `operator""` and `_yaml`.
+
+This makes it compile in C++23.
+
+Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
+
+--- a/include/fkYAML/node.hpp
++++ b/include/fkYAML/node.hpp
+@@ -1823,7 +1823,7 @@ inline namespace yaml_literals {
+ /// @param n The size of `s`.
+ /// @return The resulting `node` object deserialized from `s`.
+ /// @sa https://fktn-k.github.io/fkYAML/api/operator_literal_yaml/
+-inline fkyaml::node operator"" _yaml(const char* s, std::size_t n) {
++inline fkyaml::node operator""_yaml(const char* s, std::size_t n) {
+ return fkyaml::node::deserialize(s, s + n);
+ }
+
+@@ -1832,7 +1832,7 @@ inline fkyaml::node operator"" _yaml(const char* s, std::size_t n) {
+ /// @param n The size of `s`.
+ /// @return The resulting `node` object deserialized from `s`.
+ /// @sa https://fktn-k.github.io/fkYAML/api/operator_literal_yaml/
+-inline fkyaml::node operator"" _yaml(const char16_t* s, std::size_t n) {
++inline fkyaml::node operator""_yaml(const char16_t* s, std::size_t n) {
+ return fkyaml::node::deserialize(s, s + n);
+ }
+
+@@ -1841,7 +1841,7 @@ inline fkyaml::node operator"" _yaml(const char16_t* s, std::size_t n) {
+ /// @param n The size of `s`.
+ /// @return The resulting `node` object deserialized from `s`.
+ /// @sa https://fktn-k.github.io/fkYAML/api/operator_literal_yaml/
+-inline fkyaml::node operator"" _yaml(const char32_t* s, std::size_t n) {
++inline fkyaml::node operator""_yaml(const char32_t* s, std::size_t n) {
+ return fkyaml::node::deserialize(s, s + n);
+ }
+
+@@ -1850,7 +1850,7 @@ inline fkyaml::node operator"" _yaml(const char32_t* s, std::size_t n) {
+ /// @param s An input `char8_t` array.
+ /// @param n The size of `s`.
+ /// @return The resulting `node` object deserialized from `s`.
+-inline fkyaml::node operator"" _yaml(const char8_t* s, std::size_t n) {
++inline fkyaml::node operator""_yaml(const char8_t* s, std::size_t n) {
+ return fkyaml::node::deserialize((const char8_t*)s, (const char8_t*)s + n);
+ }
diff --git a/dev-cpp/fkYAML/files/fkYAML-0.4.2-Use-system-Catch2.patch b/dev-cpp/fkYAML/files/fkYAML-0.4.2-Use-system-Catch2.patch
new file mode 100644
index 000000000000..e736a28dcbd8
--- /dev/null
+++ b/dev-cpp/fkYAML/files/fkYAML-0.4.2-Use-system-Catch2.patch
@@ -0,0 +1,38 @@
+From: Pavel Sobolev <contact@paveloom.dev>
+Subject: [PATCH] Use system `Catch2`.
+
+Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,21 +32,7 @@ if(FK_YAML_CODE_COVERAGE OR FK_YAML_RUN_VALGRIND OR FK_YAML_RUN_CLANG_SANITIZERS
+ endif()
+
+ if(FK_YAML_BUILD_TEST OR FK_YAML_BUILD_ALL_TEST)
+- set(CATCH2_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/catch2")
+-
+- if(NOT EXISTS ${CATCH2_ROOT_DIR}/CMakeLists.txt)
+- find_package(Git REQUIRED)
+- message(STATUS "Fetching git submodule: Catch2")
+- execute_process(
+- COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive -- ${CATCH2_ROOT_DIR}
+- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+- RESULT_VARIABLE GIT_SUBMOD_RET)
+- if(NOT GIT_SUBMOD_RET EQUAL "0")
+- message(FATAL_ERROR "Failed to fetch Catch2 as a git submodule.")
+- endif()
+- endif()
+-
+- list(APPEND CMAKE_MODULE_PATH "${CATCH2_ROOT_DIR}/contrib")
++ find_package(Catch2 REQUIRED)
+ endif()
+
+ ###########################################
+@@ -140,7 +126,6 @@ endif()
+ ###########################
+
+ if(FK_YAML_BUILD_TEST OR FK_YAML_BUILD_ALL_TEST)
+- add_subdirectory(${CATCH2_ROOT_DIR})
+ include(CTest)
+ enable_testing()
+ add_subdirectory(tests)
diff --git a/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Strip-Werror.patch b/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Strip-Werror.patch
new file mode 100644
index 000000000000..8bb13654585b
--- /dev/null
+++ b/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Strip-Werror.patch
@@ -0,0 +1,30 @@
+From: Pavel Sobolev <contact@paveloom.dev>
+Subject: [PATCH] Strip `-Werror`.
+
+Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
+
+--- a/tests/unit_test/CMakeLists.txt
++++ b/tests/unit_test/CMakeLists.txt
+@@ -117,18 +117,18 @@ target_compile_options(
+ >
+ # GNU
+ $<$<CXX_COMPILER_ID:GNU>:
+- -Wall -Wextra -Werror -pedantic -Wpedantic -Wdeprecated --all-warnings --extra-warnings
++ -Wall -Wextra -pedantic -Wpedantic -Wdeprecated --all-warnings --extra-warnings
+ -Wno-deprecated-declarations # for testing deprecated functions
+ -Wno-self-move # necessary to build the detail::iterator class test
+ >
+ # Clang
+ $<$<CXX_COMPILER_ID:Clang>:
+- -Wall -Wextra -Werror -pedantic -Wdeprecated
++ -Wall -Wextra -pedantic -Wdeprecated
+ -Wno-c++98-compat -Wno-c++98-compat-pedantic
+ -Wno-deprecated-declarations # for testing deprecated functions
+ >
+ $<$<CXX_COMPILER_ID:AppleClang>:
+- -Wall -Wextra -Werror -pedantic -Wdeprecated
++ -Wall -Wextra -pedantic -Wdeprecated
+ -Wno-deprecated-declarations # for testing deprecated functions
+ >
+ # IntelLLVM
+
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 000000000000..fe40120f4290
--- /dev/null
+++ b/dev-cpp/fkYAML/files/fkYAML-0.4.2_p20250522-Use-system-Catch2.patch
@@ -0,0 +1,13 @@
+From: Pavel Sobolev <contact@paveloom.dev>
+Subject: [PATCH] Use system `Catch2`.
+
+Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
+
+--- 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.ebuild b/dev-cpp/fkYAML/fkYAML-0.4.2.ebuild
new file mode 100644
index 000000000000..a7fcd957492c
--- /dev/null
+++ b/dev-cpp/fkYAML/fkYAML-0.4.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A C++ header-only YAML library"
+HOMEPAGE="https://fktn-k.github.io/fkYAML/"
+SRC_URI="https://github.com/fktn-k/fkYAML/archive/refs/tags/v${PV}.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-Remove-the-space-between-operator-and-_yaml.patch"
+ "${FILESDIR}/${PN}-0.4.2-Use-system-Catch2.patch"
+)
+
+src_prepare() {
+ find thirdparty -mindepth 1 -not -name imapdl -delete || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DFK_YAML_BUILD_TEST=$(usex test)
+ )
+
+ cmake_src_configure
+}
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 000000000000..626cb8330b40
--- /dev/null
+++ b/dev-cpp/fkYAML/fkYAML-0.4.2_p20250522.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+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"
+
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? ( =dev-cpp/catch-2* )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.4.2_p20250522-Strip-Werror.patch"
+ "${FILESDIR}/${PN}-0.4.2_p20250522-Use-system-Catch2.patch"
+)
+
+src_prepare() {
+ find thirdparty -mindepth 1 -not -name imapdl -delete || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DFK_YAML_BUILD_TEST=$(usex test)
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-cpp/fkYAML/metadata.xml b/dev-cpp/fkYAML/metadata.xml
new file mode 100644
index 000000000000..6bd5732747b4
--- /dev/null
+++ b/dev-cpp/fkYAML/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@paveloom.dev</email>
+ <name>Pavel Sobolev</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/fktn-k/fkYAML</bugs-to>
+ <remote-id type="github">fktn-k/fkYAML</remote-id>
+ </upstream>
+</pkgmetadata>