commit:     5ca0e6f72c367f505b823e03935877838b5b11d2
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Wed Oct 19 18:23:54 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Oct 20 23:39:03 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ca0e6f7

media-libs/ffmpegsource: update live ebuild

Prefer HTTPS URI, drop unneeded '--modules' argument for
prune_libtool_files, do compiler checks in pkg_setup too.

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/ffmpegsource/ffmpegsource-9999.ebuild | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/media-libs/ffmpegsource/ffmpegsource-9999.ebuild 
b/media-libs/ffmpegsource/ffmpegsource-9999.ebuild
index 8e2ad6a..7ce0501 100644
--- a/media-libs/ffmpegsource/ffmpegsource-9999.ebuild
+++ b/media-libs/ffmpegsource/ffmpegsource-9999.ebuild
@@ -8,7 +8,7 @@ inherit autotools eutils flag-o-matic git-r3
 
 DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate 
access"
 HOMEPAGE="https://github.com/FFMS/ffms2";
-EGIT_REPO_URI="git://github.com/FFMS/ffms2.git"
+EGIT_REPO_URI=( {https,git}://github.com/FFMS/ffms2.git )
 
 LICENSE="MIT"
 SLOT="0/4"
@@ -24,12 +24,20 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
-pkg_pretend() {
+ffms_check_compiler() {
        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
 }
 
+pkg_pretend() {
+       ffms_check_compiler
+}
+
+pkg_setup() {
+       ffms_check_compiler
+}
+
 src_prepare() {
        default_src_prepare
        eautoreconf
@@ -37,5 +45,5 @@ src_prepare() {
 
 src_install() {
        default_src_install
-       prune_libtool_files --modules
+       prune_libtool_files
 }

Reply via email to