summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/yaml-cpp/Manifest5
-rw-r--r--dev-libs/yaml-cpp/files/gcc4.6-null.patch24
-rw-r--r--dev-libs/yaml-cpp/yaml-cpp-0.2.6.ebuild36
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/yaml-cpp/Manifest b/dev-libs/yaml-cpp/Manifest
new file mode 100644
index 0000000..1cc5e4a
--- /dev/null
+++ b/dev-libs/yaml-cpp/Manifest
@@ -0,0 +1,5 @@
+AUX gcc4.6-null.patch 639 RMD160 94e3b76f44182bf6af6b77630c93934b8644cf8e SHA1 e1d97c0762fc8e4d26cbdefe86e8196c267b5453 SHA256 bac45fc4bb18a1daed928f9392d7fdcf8ab926927309342cb4f04fb38d7f6976
+AUX gcc4.6-null.patch~ 298 RMD160 ff068ac58cb2ad512da160a47e48e708272ed492 SHA1 e8cfa848f099e2787b7f0d89369a0ba0010ac453 SHA256 43e981ecff7e361b3b297adddd89bc9d86f48968d5657f69bc671848c2a80314
+AUX series 18 RMD160 00f6301d08d980930fd47d2d9f710f664703ad46 SHA1 e4e703acd4feb536037ee519c7a1d23d2f557f5b SHA256 18584aa7b3c6e044c69233f8877ced0cc0742b88064efe2b24e76d80e6aa4691
+DIST yaml-cpp-0.2.6.tar.gz 74708 RMD160 b7f4e76267ae15e320ea88ce4549eed3750f3a56 SHA1 5141c5a3beecbe80e6772d3d9ece1d668940906f SHA256 72dd9fbc7549e77756a1358729e5789f4ac713499c375856f6493f498a1d8adc
+EBUILD yaml-cpp-0.2.6.ebuild 739 RMD160 485287556d784cb046d896a2d6fbbcee5a294071 SHA1 b59c956fbba59c09c1bd24bfffe618e65a0718e5 SHA256 96128876db6dd2765436f0c90b45c75124de7e0f7fde1a79294b185001922b31
diff --git a/dev-libs/yaml-cpp/files/gcc4.6-null.patch b/dev-libs/yaml-cpp/files/gcc4.6-null.patch
new file mode 100644
index 0000000..96ec572
--- /dev/null
+++ b/dev-libs/yaml-cpp/files/gcc4.6-null.patch
@@ -0,0 +1,24 @@
+Index: yaml-cpp/src/ptr_vector.h
+===================================================================
+--- yaml-cpp.orig/src/ptr_vector.h
++++ yaml-cpp/src/ptr_vector.h
+@@ -8,6 +8,7 @@
+ #include "yaml-cpp/noncopyable.h"
+ #include <memory>
+ #include <vector>
++#include <cstdlib>
+
+ namespace YAML {
+
+Index: yaml-cpp/src/ptr_stack.h
+===================================================================
+--- yaml-cpp.orig/src/ptr_stack.h
++++ yaml-cpp/src/ptr_stack.h
+@@ -8,6 +8,7 @@
+ #include "yaml-cpp/noncopyable.h"
+ #include <memory>
+ #include <vector>
++#include <cstdlib>
+
+ template <typename T>
+ class ptr_stack: private YAML::noncopyable
diff --git a/dev-libs/yaml-cpp/yaml-cpp-0.2.6.ebuild b/dev-libs/yaml-cpp/yaml-cpp-0.2.6.ebuild
new file mode 100644
index 0000000..e568461
--- /dev/null
+++ b/dev-libs/yaml-cpp/yaml-cpp-0.2.6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit cmake-utils
+
+
+DESCRIPTION="YAML parser and emitter in C++ matching the YAML 1.2 spec"
+LICENSE="MIT"
+HOMEPAGE="http://code.google.com/p/yaml-cpp/"
+SRC_URI="http://yaml-cpp.googlecode.com/files/${P}.tar.gz"
+SLOT="0"
+
+# No version in root dir of tarball:
+S="${WORKDIR}/${PN}"
+
+KEYWORDS="~x86 ~amd64"
+IUSE="+shared-libs +static-libs"
+REQUIRED_USE="|| ( shared-libs static-libs )"
+
+
+src_prepare() {
+ epatch "${FILESDIR}/gcc4.6-null.patch"
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_build static-libs STATIC_LIBS)
+ $(cmake-utils_use_build shared-libs SHARED_LIBS)
+ )
+
+ cmake-utils_src_configure
+}
+