diff options
| author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2025-08-03 15:55:21 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-09-04 21:46:56 +0100 |
| commit | 485ea72f644fc219c93830b75675e048186e7dbc (patch) | |
| tree | b1bc2bdded6001684cf8aafee5645ead7b560ff6 /dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild | |
| parent | bb351ac2a359eab5c75e172cc67d0dee0a68cc03 (diff) | |
| download | gentoo-485ea72f644fc219c93830b75675e048186e7dbc.tar.gz gentoo-485ea72f644fc219c93830b75675e048186e7dbc.tar.bz2 gentoo-485ea72f644fc219c93830b75675e048186e7dbc.zip | |
dev-cpp/yaml-cpp: fix cmake4 compatibility
Removed bundled gtest; it wasn't used, but its existence was triggering cmake QA warning
Closes: https://bugs.gentoo.org/957557
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43303
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild')
| -rw-r--r-- | dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
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..552cf0c1d8d4 --- /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 ~amd64-linux ~x86-linux" +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 +} |
