summaryrefslogtreecommitdiff
path: root/dev-cpp/yaml-cpp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-cpp/yaml-cpp
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-cpp/yaml-cpp')
-rw-r--r--dev-cpp/yaml-cpp/Manifest7
-rw-r--r--dev-cpp/yaml-cpp/files/yaml-cpp-0.5.3-gcc6.patch44
-rw-r--r--dev-cpp/yaml-cpp/metadata.xml11
-rw-r--r--dev-cpp/yaml-cpp/yaml-cpp-0.5.3-r1.ebuild37
-rw-r--r--dev-cpp/yaml-cpp/yaml-cpp-0.5.3.ebuild37
5 files changed, 136 insertions, 0 deletions
diff --git a/dev-cpp/yaml-cpp/Manifest b/dev-cpp/yaml-cpp/Manifest
new file mode 100644
index 000000000000..49a402d90dd6
--- /dev/null
+++ b/dev-cpp/yaml-cpp/Manifest
@@ -0,0 +1,7 @@
+AUX yaml-cpp-0.5.3-gcc6.patch 1768 SHA256 3f27f8430891cfb4f32098bc2c354d4c09cd6fb44291b007cd88220d7cd3595e SHA512 be0d4cab18312329e37c114cf739fe143a6f635669a741f149fd32cf54bc0307f80a5383025dc04700a8c1ae33de68185f85d516ceb32e364317db06563a8b39 WHIRLPOOL ec409dc918356f5d51cf34920a1513a3c0a541eebd0aa744546b74acab145d8b62c7416ca392023e2a084d69dbdec16265f879c0fceaa9b5d9df70ecef6c3e73
+DIST yaml-cpp-0.5.3.tar.gz 2016737 SHA256 ac50a27a201d16dc69a881b80ad39a7be66c4d755eda1f76c3a68781b922af8f SHA512 5ed15fee3c6455c08e6bd8f74256b230f274ef18f8e144491e940640e41626517c7eaaf4a1f380c4179066a2a757c8a0f61878df9dc3caa15e37c4954be47fe0 WHIRLPOOL 93be1e627bf75e456e486eef2f9d5a9bbbf165d9aaa774ab4bb013d2797455ccaae4f312f09ff87e5693719996202f7e4d61fb65bd948e1f215c74b5747c0817
+EBUILD yaml-cpp-0.5.3-r1.ebuild 798 SHA256 cca6f23fd99a620847a100eb118545e3b5adb68aa01c78d44a34ed148feb4aea SHA512 f1bb48e5ea79c1ec1ab1a53e2947bbaf6d0d857dd66c8216e2d31048b0b0a8e1d2decd0e8bd943cbdbf6628b8db812bf598900cb19d29aa6a5720a5a3ca638f2 WHIRLPOOL d79760ffa76cf8c62f54df718158602a2cb383e7d5175b4cb67c408a2da2dccca970246590308d42acaa461d827684829840731009554adb6c08fd461797545f
+EBUILD yaml-cpp-0.5.3.ebuild 791 SHA256 f00bb450b257ef98a75657aa517144db1be44ed9512c994e256b866c06e0ec28 SHA512 f9fe1e85c809d4a1a7e94e33e36dd828a7ca840cff21318e527cba4eab4964e053ecf328fd1e33ceb3e2fb2e7fa399c03411bd2085f8751488f93da1e48cb9d6 WHIRLPOOL 8558338896d63f5cee87c562811642524092d65b2c6bce33ff1f85f0bbb75cf02949fb61318bab79f08ff35ae385e1da1ab913249c31365718fcb4dffcc63a9c
+MISC ChangeLog 4033 SHA256 f45a4e853e26a10e72b01996e611af0b33cc851d2c9e29bb3838ce96e77788ec SHA512 e5611fca070c12cdfc719973c36a6954cec54795580488740e3c84ca67631074532c218d29cde5bdcf2ad36bbb1813581350f86826a3995d4e6264ef5b2df956 WHIRLPOOL 76f2efa6884cd2265bc1e2157ea8d02b17f2d0499957b731b9f01cce442e005b7cf1bfaf047e3ade2fe9e62a3216eb8e17b33394953f79f57a283f57a5a39cf8
+MISC ChangeLog-2015 2126 SHA256 1d0bbb874e2afc428cc99b4dd61691551478ce6eb794cd432f62350d1fd19633 SHA512 076c36a37e2875aa69ee8f8e6de54bc081bcb9782052213dc3cf5e4ff25fdf7099eee0061c6471354f53c0921abdb0fa7edab2072da75a6283fc63b499e61860 WHIRLPOOL 8f0aa1ce3621475f3f0bc329b1e16156fd57a7ca382e55ac8395c3abfdfc692cfc51c383535378951f181d044543d9afd3e0a6fcb3308525e0adc5d195f5aae3
+MISC metadata.xml 325 SHA256 0a1d9b5e57beafb8541a74c2c70f5b78ba84646a724132b45bd62b9642cb047c SHA512 a4a5de1911c7bfeb37a3ca5aca8b3c044d51230164ac7d14566a9a4064e5202fac0e613089191ea959d0bb3df157049932d394d167e32fc8a432ab35e4cf24ae WHIRLPOOL 6f58cfc7f2eb02d267b9d9313cc7e984fe476ff2f2cb07ecdd3aab1479f7dec182172cf18a8a29be407aba6b0046629110ba8fbd74e947f8f30674be3a3af333
diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.5.3-gcc6.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.5.3-gcc6.patch
new file mode 100644
index 000000000000..88ee25fa0acb
--- /dev/null
+++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.5.3-gcc6.patch
@@ -0,0 +1,44 @@
+Bug: https://bugs.gentoo.org/609176
+Upstream PR: https://github.com/jbeder/yaml-cpp/pull/514
+
+From a83a1b3a7bd0a5a4eb458d898b057f6a8d409b7e Mon Sep 17 00:00:00 2001
+From: Peter-Levine <plevine457@gmail.com>
+Date: Mon, 24 Jul 2017 02:00:24 -0400
+Subject: [PATCH] Fix segfault in gmock when running tests
+
+Taken from https://github.com/google/googletest/issues/705#issuecomment-235067917
+---
+ test/gmock-1.7.0/include/gmock/gmock-spec-builders.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/test/gmock-1.7.0/include/gmock/gmock-spec-builders.h b/test/gmock-1.7.0/include/gmock/gmock-spec-builders.h
+index 312fbe87..2dd733b6 100644
+--- a/test/gmock-1.7.0/include/gmock/gmock-spec-builders.h
++++ b/test/gmock-1.7.0/include/gmock/gmock-spec-builders.h
+@@ -1370,6 +1370,8 @@ class ActionResultHolder : public UntypedActionResultHolderBase {
+ template <>
+ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
+ public:
++ explicit ActionResultHolder() {}
++
+ void GetValueAndDelete() const { delete this; }
+
+ virtual void PrintAsActionResult(::std::ostream* /* os */) const {}
+@@ -1381,7 +1383,7 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
+ const typename Function<F>::ArgumentTuple& args,
+ const string& call_description) {
+ func_mocker->PerformDefaultAction(args, call_description);
+- return NULL;
++ return new ActionResultHolder();
+ }
+
+ // Performs the given action and returns NULL.
+@@ -1390,7 +1392,7 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
+ const Action<F>& action,
+ const typename Function<F>::ArgumentTuple& args) {
+ action.Perform(args);
+- return NULL;
++ return new ActionResultHolder();
+ }
+ };
+
diff --git a/dev-cpp/yaml-cpp/metadata.xml b/dev-cpp/yaml-cpp/metadata.xml
new file mode 100644
index 000000000000..f1c1935f78d5
--- /dev/null
+++ b/dev-cpp/yaml-cpp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>johu@gentoo.org</email>
+ <name>Johannes Huber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jbeder/yaml-cpp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.5.3-r1.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..6bf29f127ca7
--- /dev/null
+++ b/dev-cpp/yaml-cpp/yaml-cpp-0.5.3-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="YAML parser and emitter in C++"
+HOMEPAGE="https://github.com/jbeder/yaml-cpp"
+SRC_URI="https://github.com/jbeder/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=">=dev-libs/boost-1.49.0-r2:="
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-release-${PV}"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
+
+src_prepare() {
+ sed -i \
+ -e 's:INCLUDE_INSTALL_ROOT_DIR:INCLUDE_INSTALL_DIR:g' \
+ yaml-cpp.pc.cmake || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ )
+ cmake-utils_src_configure
+}
diff --git a/dev-cpp/yaml-cpp/yaml-cpp-0.5.3.ebuild b/dev-cpp/yaml-cpp/yaml-cpp-0.5.3.ebuild
new file mode 100644
index 000000000000..503d7e2b9ff4
--- /dev/null
+++ b/dev-cpp/yaml-cpp/yaml-cpp-0.5.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="YAML parser and emitter in C++"
+HOMEPAGE="https://github.com/jbeder/yaml-cpp"
+SRC_URI="https://github.com/jbeder/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=">=dev-libs/boost-1.49.0-r2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-release-${PV}"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
+
+src_prepare() {
+ sed -i \
+ -e 's:INCLUDE_INSTALL_ROOT_DIR:INCLUDE_INSTALL_DIR:g' \
+ yaml-cpp.pc.cmake || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ )
+ cmake-utils_src_configure
+}