From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-856282-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 69E241388BF
	for <garchives@archives.gentoo.org>; Sun, 10 Jan 2016 01:59:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D271521C00E;
	Sun, 10 Jan 2016 01:59:34 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CADE021C009
	for <gentoo-commits@lists.gentoo.org>; Sun, 10 Jan 2016 01:59:33 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 17B9E33D3CF
	for <gentoo-commits@lists.gentoo.org>; Sun, 10 Jan 2016 01:59:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id BEAE6D22
	for <gentoo-commits@lists.gentoo.org>; Sun, 10 Jan 2016 01:59:28 +0000 (UTC)
From: "Ian Delaney" <idella4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ian Delaney" <idella4@gentoo.org>
Message-ID: <1452391132.7e82ccff9a4699660a250848df2a66c49001c1f8.idella4@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/ffmpegsource/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/ffmpegsource/ffmpegsource-9999.ebuild
X-VCS-Directories: media-libs/ffmpegsource/
X-VCS-Committer: idella4
X-VCS-Committer-Name: Ian Delaney
X-VCS-Revision: 7e82ccff9a4699660a250848df2a66c49001c1f8
X-VCS-Branch: master
Date: Sun, 10 Jan 2016 01:59:28 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 67ac4f90-6184-4272-9d0b-5dcc4101d1cd
X-Archives-Hash: dcd8f2c6f0e339272cd13646260354d2

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
+}