diff options
| author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2025-03-22 21:31:58 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-03-25 04:34:56 +0000 |
| commit | 6e886a60292fb9223414b29aa5aac97e79e289b0 (patch) | |
| tree | 5a69a4898462ae1bb9b1f844878fdd470808d31a /dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild | |
| parent | 44c3b0ad1f11ef69078f59527bb5df665f8cae6a (diff) | |
| download | gentoo-6e886a60292fb9223414b29aa5aac97e79e289b0.tar.gz gentoo-6e886a60292fb9223414b29aa5aac97e79e289b0.tar.bz2 gentoo-6e886a60292fb9223414b29aa5aac97e79e289b0.zip | |
dev-cpp/yaml-cpp: fix cmake warning
Closes: https://bugs.gentoo.org/951842
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/41226
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild')
| -rw-r--r-- | dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
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 new file mode 100644 index 000000000000..8bdd15895875 --- /dev/null +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.8.0-r1.ebuild @@ -0,0 +1,37 @@ +# 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-cmake.patch" +) + +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 +} |
