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>
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"
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
src_install() {
default_src_install
- prune_libtool_files --modules
+ prune_libtool_files
}