summaryrefslogtreecommitdiff
path: root/dev-cpp/yaml-cpp
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-02-13 07:19:18 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-02-13 07:19:18 +0000
commitc060b8498cd3bf6df26316b364251d64d06c0909 (patch)
tree85579da9d0374b1df0278d97b7094cfb782b3fa6 /dev-cpp/yaml-cpp
parent3ba870c3659426f9f69a3e4c41e4122c9ebbe2f0 (diff)
downloadbaldeagleos-repo-c060b8498cd3bf6df26316b364251d64d06c0909.tar.gz
baldeagleos-repo-c060b8498cd3bf6df26316b364251d64d06c0909.tar.xz
baldeagleos-repo-c060b8498cd3bf6df26316b364251d64d06c0909.zip
Adding metadata
Diffstat (limited to 'dev-cpp/yaml-cpp')
-rw-r--r--dev-cpp/yaml-cpp/Manifest1
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch32
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cmakever.patch10
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch25
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-precision.patch24
-rw-r--r--dev-cpp/yaml-cpp/yaml-cpp-0.9.0.ebuild (renamed from dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild)24
6 files changed, 76 insertions, 40 deletions
diff --git a/dev-cpp/yaml-cpp/Manifest b/dev-cpp/yaml-cpp/Manifest
index 0be9ed4f7b7a..28650589cdf8 100644
--- a/dev-cpp/yaml-cpp/Manifest
+++ b/dev-cpp/yaml-cpp/Manifest
@@ -1 +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-cmake.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch
deleted file mode 100644
index 52c6321983d7..000000000000
--- a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-https://bugs.gentoo.org/951842
-https://github.com/jbeder/yaml-cpp/pull/1211
-
-From 8153a1add19018f65527faad3c4d3941705baf39 Mon Sep 17 00:00:00 2001
-From: Craig Scott <craig.scott@crascit.com>
-Date: Wed, 16 Aug 2023 15:55:44 +1000
-Subject: [PATCH] Specify CMake policy range to avoid deprecation warning
-
-CMake 3.27 started issuing a deprecation warning for any
-cmake_minimum_required() call that specified a minimum
-version older than 3.5. Specifying a version range instead of
-a simple minimum version avoids that warning without
-raising the minimum supported CMake version. The NEW
-policy behavior will be used for all policies introduced up to
-CMake 3.14 with this change.
----
- CMakeLists.txt | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 46dc18059..1ae92e2b7 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, but this a good minimum.
-+# 3.14 as the upper policy limit avoids CMake deprecation warnings.
-+cmake_minimum_required(VERSION 3.4...3.14)
-
- # enable MSVC_RUNTIME_LIBRARY target property
- # see https://cmake.org/cmake/help/latest/policy/CMP0091.html
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..d017b11d0ac1
--- /dev/null
+++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.9.0-cxxstd.patch
@@ -0,0 +1,25 @@
+dev-cpp/gtest requires c++ 14+
+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 14)
+ 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 14)
+ 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 <simon@gottliebtfreitag.de>
+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/yaml-cpp-0.8.0-r1.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.9.0.ebuild
index 9b71a0395c63..e9ac46d80afb 100644
--- a/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild
+++ b/dev-cpp/yaml-cpp/yaml-cpp-0.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,11 +7,12 @@ 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"
+SRC_URI="https://github.com/jbeder/yaml-cpp/archive/refs/tags/${P}.tar.gz"
+S="${WORKDIR}/yaml-cpp-${P}"
LICENSE="MIT"
-SLOT="0/0.8"
-KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
+SLOT="0/$(ver_cut 0-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
@@ -20,17 +21,24 @@ DEPEND="
"
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-cmake.patch"
+ "${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