Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/yaml-cpp/
Date: Sat, 04 Jan 2020 11:32:14
Message-Id: 1578137517.eb910ac08b8fc17443442e34353ef5d4a5d7414e.johu@gentoo
1 commit: eb910ac08b8fc17443442e34353ef5d4a5d7414e
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 4 11:31:27 2020 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 4 11:31:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb910ac0
7
8 dev-cpp/yaml-cpp: Version bump 0.6.3
9
10 Closes: https://bugs.gentoo.org/700772
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Johannes Huber <johu <AT> gentoo.org>
13
14 dev-cpp/yaml-cpp/Manifest | 1 +
15 dev-cpp/yaml-cpp/yaml-cpp-0.6.3.ebuild | 43 ++++++++++++++++++++++++++++++++++
16 2 files changed, 44 insertions(+)
17
18 diff --git a/dev-cpp/yaml-cpp/Manifest b/dev-cpp/yaml-cpp/Manifest
19 index 4a2a21dbeb9..9a5094e8b59 100644
20 --- a/dev-cpp/yaml-cpp/Manifest
21 +++ b/dev-cpp/yaml-cpp/Manifest
22 @@ -1 +1,2 @@
23 DIST yaml-cpp-0.6.2.tar.gz 1396250 BLAKE2B be342c212c980cdb03349dbafbe1db0bb581123b4dd6909393d3cdc86145b997a9d2f9b57a5e9d7c8cc60cdfd03f1c37e9db610d8784f2d29fdeada5ab322894 SHA512 fea8ce0a20a00cbc75023d1db442edfcd32d0ac57a3c41b32ec8d56f87cc1d85d7dd7a923ce662f5d3a315f91a736d6be0d649997acd190915c1d68cc93795e4
24 +DIST yaml-cpp-0.6.3.tar.gz 1398768 BLAKE2B 07abe1c56740105a0af2335bb1cd48086cb614d9d04c61342e53788bfb043fd7eb2629e441a0a5be50898b288f3526f1707c5fdf1d734395b6450c3103773b14 SHA512 68b9ce987cabc1dec79382f922de20cc2c222cb9c090ecb93dc686b048da5c917facf4fce6d8f72feea44b61e5a6770ed3b0c199c4cd4e6bde5b6245c09f8e49
25
26 diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.6.3.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.6.3.ebuild
27 new file mode 100644
28 index 00000000000..cc5377b8d0f
29 --- /dev/null
30 +++ b/dev-cpp/yaml-cpp/yaml-cpp-0.6.3.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +CMAKE_ECLASS="cmake"
38 +inherit cmake-multilib
39 +
40 +DESCRIPTION="YAML parser and emitter in C++"
41 +HOMEPAGE="https://github.com/jbeder/yaml-cpp"
42 +SRC_URI="https://github.com/jbeder/${PN}/archive/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0/0.6"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="test"
48 +
49 +# test breaks build
50 +# RESTRICT="!test? ( test )"
51 +RESTRICT+="test"
52 +
53 +DEPEND="test? ( dev-cpp/gtest )"
54 +
55 +S="${WORKDIR}/${PN}-${P}"
56 +
57 +src_prepare() {
58 + sed -i \
59 + -e 's:INCLUDE_INSTALL_ROOT_DIR:INCLUDE_INSTALL_DIR:g' \
60 + yaml-cpp.pc.cmake || die
61 +
62 + cmake_src_prepare
63 +}
64 +
65 +src_configure() {
66 + local mycmakeargs=(
67 + -DBUILD_SHARED_LIBS=ON
68 + -DYAML_BUILD_SHARED_LIBS=ON
69 + -DYAML_CPP_BUILD_TOOLS=OFF # Don't have install rule
70 + -DYAML_CPP_BUILD_TESTS=$(usex test)
71 + )
72 +
73 + cmake-multilib_src_configure
74 +}