media-libs/ffmpegsource: update live ebuild
authorIlya Tumaykin <itumaykin@gmail.com>
Wed, 19 Oct 2016 18:23:54 +0000 (21:23 +0300)
committerDavid Seifert <soap@gentoo.org>
Thu, 20 Oct 2016 23:39:03 +0000 (01:39 +0200)
Prefer HTTPS URI, drop unneeded '--modules' argument for
prune_libtool_files, do compiler checks in pkg_setup too.

Signed-off-by: David Seifert <soap@gentoo.org>
media-libs/ffmpegsource/ffmpegsource-9999.ebuild

index 8e2ad6a8e77a1ce465d717164928452546fef9ee..7ce0501c40f67f7ba15144e7c73bd18e632596e5 100644 (file)
@@ -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
 }