commit: 7e82ccff9a4699660a250848df2a66c49001c1f8 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> AuthorDate: Sat Jan 9 19:40:23 2016 +0000 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> CommitDate: Sun Jan 10 01:58:52 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e82ccff
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 56009a4..f057f8a 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 +}
