From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-cpp/yaml-cpp/Manifest | 2 + dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch | 39 +++++++++++++++++++ dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch | 32 +++++++++++++++ dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch | 30 +++++++++++++++ .../files/yaml-cpp-0.8.0-include-cstdint.patch | 33 ++++++++++++++++ .../yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch | 10 +++++ dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch | 25 ++++++++++++ .../yaml-cpp/files/yaml-cpp-0.9.0-precision.patch | 24 ++++++++++++ dev-cpp/yaml-cpp/metadata.xml | 16 ++++++++ dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild | 43 +++++++++++++++++++++ dev-cpp/yaml-cpp/yaml-cpp-0.9.0-r1.ebuild | 45 ++++++++++++++++++++++ 11 files changed, 299 insertions(+) create mode 100644 dev-cpp/yaml-cpp/Manifest create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch create mode 100644 dev-cpp/yaml-cpp/metadata.xml create mode 100644 dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild create mode 100644 dev-cpp/yaml-cpp/yaml-cpp-0.9.0-r1.ebuild (limited to 'dev-cpp/yaml-cpp') diff --git a/dev-cpp/yaml-cpp/Manifest b/dev-cpp/yaml-cpp/Manifest new file mode 100644 index 000000000000..28650589cdf8 --- /dev/null +++ b/dev-cpp/yaml-cpp/Manifest @@ -0,0 +1,2 @@ +DIST yaml-cpp-0.8.0.gh.tar.gz 1017151 BLAKE2B 5fd3eaec06bc04215afd2aa14ae8cd35f829f700f104931a51dbd8bb22e4e87f5cd5f2f975d3a2f464226d7165d3d106aa17bc7eab8a812c2545d2212011cf11 SHA512 aae9d618f906117d620d63173e95572c738db518f4ff1901a06de2117d8deeb8045f554102ca0ba4735ac0c4d060153a938ef78da3e0da3406d27b8298e5f38e +DIST yaml-cpp-0.9.0.tar.gz 1056093 BLAKE2B c686fa5d51e9f28eea191647385e2cdef1269ad5dd361fe876b18bf45f85dd1872f4a30b6abe1cdcb534793c16bd9073ee5fb14fb8940885163a1ce0643f8068 SHA512 59f730e8c5744f1ccd542c1144db8d4d949012f72aab0b84ba4a818db25a0f847569b61238ab72ed5b0b2e9482b8d5007651b7185f4ca9e99045d5160259b565 diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch new file mode 100644 index 000000000000..220dc5452772 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch @@ -0,0 +1,39 @@ +https://bugs.gentoo.org/957557 +From c9371de7836d113c0b14bfa15ca70f00ebb3ac6f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= +Date: Mon, 24 Mar 2025 08:32:25 +0100 +Subject: [PATCH] [cmake] Require minimum CMake version 3.5 + +Soon CMake 4.0 will be released. It requires that projects +set a minimum required CMake version of 3.5. There is a +workaround with an additional flag, but it would is better +to increase the minimum required version. +--- + CMakeLists.txt | 6 +++--- + test/CMakeLists.txt | 1 - + 2 files changed, 3 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7e8a528d8..0df533a5a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,6 @@ +-# 3.5 is actually available almost everywhere, but this a good minimum +-cmake_minimum_required(VERSION 3.4) ++# 3.5 is actually available almost everywhere. ++# 3.30 as the upper policy limit avoids CMake deprecation warnings. ++cmake_minimum_required(VERSION 3.5...3.30) + + # enable MSVC_RUNTIME_LIBRARY target property + # see https://cmake.org/cmake/help/latest/policy/CMP0091.html +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 1c60c07c5..6949d29c1 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -3,6 +3,5 @@ find_package(Threads REQUIRED) + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + set(BUILD_MOCK ON CACHE BOOL "" FORCE) +-set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + + if(YAML_USE_SYSTEM_GTEST) + find_package(GTest) diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch new file mode 100644 index 000000000000..f024b797eb47 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gcc13.patch @@ -0,0 +1,32 @@ +Fix test https://bugs.gentoo.org/917243 + +From fcbb8193b94921e058be7b563aea053531e5b2d9 Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna +Date: Sat, 19 Aug 2023 21:36:16 +0200 +Subject: [PATCH] Fix testsuite with gcc-13 (#1216) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +cd /<>/build-static/test && /usr/bin/c++ -DYAML_CPP_STATIC_DEFINE -I/<>/test/integration -I/<>/test -I/<>/src -I/<>/include -isystem /usr/src/googletest/googlemock/include -isystem /usr/src/googletest/googlemock -isystem /usr/src/googletest/googletest/include -isystem /usr/src/googletest/googletest -g -O2 -ffile-prefix-map=/<>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<>=/usr/src/yaml-cpp-0.8.0+dfsg-1~build1 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wno-variadic-macros -Wno-sign-compare -DGTEST_HAS_PTHREAD=1 -MD -MT test/CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o -MF CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o.d -o CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o -c /<>/test/binary_test.cpp +/<>/test/binary_test.cpp: In member function ‘virtual void BinaryTest_DecodingNoCrashOnNegative_Test::TestBody()’: +/<>/test/binary_test.cpp:11:38: error: narrowing conversion of ‘-58’ from ‘int’ to ‘char’ [-Wnarrowing] + 11 | std::string input{-58, -1, -99, 109}; + | ^ +--- + test/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 351b03f81..c9e7f041b 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -33,7 +33,7 @@ target_include_directories(yaml-cpp-tests + target_compile_options(yaml-cpp-tests + PRIVATE + $<$:-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare> +- $<$:-Wno-variadic-macros -Wno-sign-compare>) ++ $<$:-Wno-variadic-macros -Wno-sign-compare -Wno-narrowing>) + target_link_libraries(yaml-cpp-tests + PRIVATE + Threads::Threads diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch new file mode 100644 index 000000000000..5386f8ec7c2f --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch @@ -0,0 +1,30 @@ +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index c9e7f04..58973ea 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -1,15 +1,10 @@ + find_package(Threads REQUIRED) ++find_package(GTest REQUIRED CONFIG) + + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + set(BUILD_MOCK ON CACHE BOOL "" FORCE) + set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + +-add_subdirectory( +- "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.11.0" +- "${CMAKE_CURRENT_BINARY_DIR}/prefix") +- +-include_directories(SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.11.0/googletest/include") +- + set(test-new-api-pattern "new-api/*.cpp") + set(test-source-pattern "*.cpp" "integration/*.cpp" "node/*.cpp") + if (CMAKE_VERSION VERSION_GREATER 3.11) +@@ -38,7 +33,7 @@ target_link_libraries(yaml-cpp-tests + PRIVATE + Threads::Threads + yaml-cpp +- gmock) ++ GTest::gmock) + + set_property(TARGET yaml-cpp-tests PROPERTY CXX_STANDARD_REQUIRED ON) + if (NOT DEFINED CMAKE_CXX_STANDARD) diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch new file mode 100644 index 000000000000..d017b43fa440 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch @@ -0,0 +1,33 @@ +https://github.com/jbeder/yaml-cpp/pull/1310 + +From: Christopher Fore +Date: Wed, 14 Aug 2024 21:02:32 -0400 +Subject: [PATCH] emitterutils: Explicitly include + +GCC 15 will no longer include it by default, resulting in build +failures in projects that do not explicitly include it. + +Error: +src/emitterutils.cpp:221:11: error: 'uint16_t' was not declared in this scope + 221 | std::pair EncodeUTF16SurrogatePair(int codePoint) { + | ^~~~~~~~ +src/emitterutils.cpp:13:1: note: 'uint16_t' is defined in header ''; +this is probably fixable by adding '#include ' + 12 | #include "yaml-cpp/null.h" + +++ |+#include + 13 | #include "yaml-cpp/ostream_wrapper.h" + +Tests pass. + +Closes: #1307 +See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html +See-also: https://bugs.gentoo.org/937412 +Signed-off-by: Christopher Fore +--- a/src/emitterutils.cpp ++++ b/src/emitterutils.cpp +@@ -1,4 +1,5 @@ + #include ++#include + #include + #include + diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch new file mode 100644 index 000000000000..0d6b98dc273a --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch @@ -0,0 +1,10 @@ +https://github.com/jbeder/yaml-cpp/pull/1400 + +--- a/test/cmake/CMakeLists.txt ++++ b/test/cmake/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.5...3.30) + project(yaml-cpp-consumer LANGUAGES CXX) + + find_package(yaml-cpp CONFIG REQUIRED) diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch new file mode 100644 index 000000000000..b499af84e6c9 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch @@ -0,0 +1,25 @@ +dev-cpp/gtest requires c++ 17+ +https://github.com/jbeder/yaml-cpp/pull/1374 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -105,7 +105,7 @@ target_include_directories(yaml-cpp + if (NOT DEFINED CMAKE_CXX_STANDARD) + set_target_properties(yaml-cpp + PROPERTIES +- CXX_STANDARD 11) ++ CXX_STANDARD 17) + endif() + + if(YAML_CPP_MAIN_PROJECT) +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -49,7 +49,7 @@ target_link_libraries(yaml-cpp-tests + + set_property(TARGET yaml-cpp-tests PROPERTY CXX_STANDARD_REQUIRED ON) + if (NOT DEFINED CMAKE_CXX_STANDARD) +- set_target_properties(yaml-cpp-tests PROPERTIES CXX_STANDARD 11) ++ set_target_properties(yaml-cpp-tests PROPERTIES CXX_STANDARD 17) + endif() + + diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch new file mode 100644 index 000000000000..8fecc8c28aa1 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch @@ -0,0 +1,24 @@ +https://github.com/jbeder/yaml-cpp/pull/1401 + +From 8d58b447fa7cafc3b9fdb5d4ca3e80239c111198 Mon Sep 17 00:00:00 2001 +From: Simon Gene Gottlieb +Date: Wed, 11 Feb 2026 17:55:43 +0100 +Subject: [PATCH] fix: floating point conversion on x86 (32bit) + +--- + src/fptostring.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/fptostring.cpp b/src/fptostring.cpp +index e1722aeed..9176d73bd 100644 +--- a/src/fptostring.cpp ++++ b/src/fptostring.cpp +@@ -28,7 +28,7 @@ namespace fp_formatting { + * assert(buffer[1] == '2'); + * assert(buffer[2] == '3'); + */ +-int ConvertToChars(char* begin, char* end, size_t value, int width=1) { ++int ConvertToChars(char* begin, char* end, uint64_t value, int width=1) { + // precondition of this function (will trigger in debug build) + assert(width >= 1); + assert(end >= begin); // end must be after begin diff --git a/dev-cpp/yaml-cpp/metadata.xml b/dev-cpp/yaml-cpp/metadata.xml new file mode 100644 index 000000000000..13901493d8bd --- /dev/null +++ b/dev-cpp/yaml-cpp/metadata.xml @@ -0,0 +1,16 @@ + + + + + alexey+gentoo@asokolov.org + Alexey Sokolov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + cpe:/a:yaml-cpp_project:yaml-cpp + + baldeagleos-repo + diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild new file mode 100644 index 000000000000..19c0b23865bd --- /dev/null +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.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-multilib + +DESCRIPTION="YAML parser and emitter in C++" +HOMEPAGE="https://github.com/jbeder/yaml-cpp" +SRC_URI="https://github.com/jbeder/yaml-cpp/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0/0.8" +KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}/yaml-cpp-0.8.0-gtest.patch" + "${FILESDIR}/yaml-cpp-0.8.0-gcc13.patch" + "${FILESDIR}/yaml-cpp-0.8.0-include-cstdint.patch" + "${FILESDIR}/yaml-cpp-0.8.0-cmake2.patch" +) + +src_prepare() { + rm -r test/gtest-1.11.0 || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DYAML_BUILD_SHARED_LIBS=ON + -DYAML_CPP_BUILD_TOOLS=OFF # Don't have install rule + -DYAML_CPP_BUILD_TESTS=$(usex test) + ) + + cmake-multilib_src_configure +} diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.9.0-r1.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.9.0-r1.ebuild new file mode 100644 index 000000000000..e9ac46d80afb --- /dev/null +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.9.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="YAML parser and emitter in C++" +HOMEPAGE="https://github.com/jbeder/yaml-cpp" +SRC_URI="https://github.com/jbeder/yaml-cpp/archive/refs/tags/${P}.tar.gz" +S="${WORKDIR}/yaml-cpp-${P}" + +LICENSE="MIT" +SLOT="0/$(ver_cut 0-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}/yaml-cpp-0.9.0-cmakever.patch" + "${FILESDIR}/yaml-cpp-0.9.0-cxxstd.patch" + "${FILESDIR}/yaml-cpp-0.9.0-precision.patch" +) + +src_prepare() { + rm -r test/googletest-* || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DYAML_BUILD_SHARED_LIBS=ON + -DYAML_CPP_BUILD_TOOLS=OFF # Don't have install rule + -DYAML_CPP_BUILD_TESTS=$(usex test) + -DYAML_USE_SYSTEM_GTEST=ON + -DYAML_CPP_FORMAT_SOURCE=OFF + ) + + cmake-multilib_src_configure +} -- cgit v1.3.1