From 7e82ccff9a4699660a250848df2a66c49001c1f8 Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Sat, 9 Jan 2016 22:40:23 +0300 Subject: [PATCH] media-libs/ffmpegsource: add compiler check for C++11 support Package-Manager: portage-2.2.26 --- media-libs/ffmpegsource/ffmpegsource-9999.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/media-libs/ffmpegsource/ffmpegsource-9999.ebuild b/media-libs/ffmpegsource/ffmpegsource-9999.ebuild index 56009a4e259c..f057f8af1935 100644 --- a/media-libs/ffmpegsource/ffmpegsource-9999.ebuild +++ b/media-libs/ffmpegsource/ffmpegsource-9999.ebuild @@ -6,7 +6,7 @@ EAPI=5 AUTOTOOLS_AUTORECONF=1 -inherit autotools-utils git-r3 +inherit autotools-utils flag-o-matic git-r3 DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access" HOMEPAGE="https://github.com/FFMS/ffms2" @@ -25,3 +25,9 @@ RDEPEND=" DEPEND="${RDEPEND} virtual/pkgconfig " + +pkg_pretend() { + if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then + die "Your compiler lacks C++11 support. Use GCC>=4.7.0 or Clang>=3.3." + fi +} -- 2.26.2