diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-05 08:13:23 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-05 08:13:23 +0000 |
| commit | 3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2 (patch) | |
| tree | cb83708f1390fccc0f8521b61b63a2d9ea7bd752 /dev-cpp/yaml-cpp | |
| parent | 5ce2273fa2607278dbc7825cd7f518b2f2c8561a (diff) | |
| download | baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.tar.gz baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.tar.xz baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/yaml-cpp')
| -rw-r--r-- | dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-cmake2.patch | 39 | ||||
| -rw-r--r-- | dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild | 2 | ||||
| -rw-r--r-- | dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild (renamed from dev-cpp/yaml-cpp/yaml-cpp-0.8.0.ebuild) | 11 |
3 files changed, 49 insertions, 3 deletions
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?= <foss@grueninger.de> +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/yaml-cpp-0.8.0-r1.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild index 1303ecdc4613..21f8f1065c53 100644 --- a/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://github.com/jbeder/yaml-cpp/archive/refs/tags/${PV}.tar.gz -> ${ LICENSE="MIT" SLOT="0/0.8" -KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.8.0.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild index 5691f9d3a803..552cf0c1d8d4 100644 --- a/dev-cpp/yaml-cpp/yaml-cpp-0.8.0.ebuild +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -11,7 +11,7 @@ SRC_URI="https://github.com/jbeder/yaml-cpp/archive/refs/tags/${PV}.tar.gz -> ${ LICENSE="MIT" SLOT="0/0.8" -KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" IUSE="test" RESTRICT="!test? ( test )" @@ -23,8 +23,15 @@ 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 |
