diff options
author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2021-08-11 23:47:34 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-08-16 09:58:26 +0300 |
commit | c813626ffa5a15c38562bcb793e4a107a66fe95f (patch) | |
tree | 1b9eba0dca591711ae7e4b0c5021091882b07b9b /dev-cpp/yaml-cpp/yaml-cpp-0.7.0-r1.ebuild | |
parent | media-gfx/solvespace: call xdg_mimeinfo_database_update on 3.0 (diff) | |
download | gentoo-c813626ffa5a15c38562bcb793e4a107a66fe95f.tar.gz gentoo-c813626ffa5a15c38562bcb793e4a107a66fe95f.tar.bz2 gentoo-c813626ffa5a15c38562bcb793e4a107a66fe95f.zip |
dev-cpp/yaml-cpp: install cmake and .pc files to lib/
Closes: https://bugs.gentoo.org/807745
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/21953
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-cpp/yaml-cpp/yaml-cpp-0.7.0-r1.ebuild')
-rw-r--r-- | dev-cpp/yaml-cpp/yaml-cpp-0.7.0-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.7.0-r1.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.7.0-r1.ebuild new file mode 100644 index 000000000000..dec50f0fe463 --- /dev/null +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.7.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS="cmake" +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/${P}.tar.gz" +S="${WORKDIR}/yaml-cpp-${P}" + +LICENSE="MIT" +SLOT="0/0.7" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )" + +PATCHES=( + "${FILESDIR}/${P}-gtest.patch" + "${FILESDIR}/${P}-pkg-config.patch" +) + +src_prepare() { + rm -r test/gtest-* || 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 +} |