media-video/aegisub: do compiler checks in pkg_setup() too.

Package-Manager: portage-2.3.2

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
Ilya Tumaykin
2016-10-21 00:17:26 +02:00
committed by Patrice Clement
parent 1f2432bd03
commit 1e4e4e2de4
2 changed files with 18 additions and 2 deletions
@@ -62,12 +62,20 @@ PATCHES=(
"${FILESDIR}/${PV}/${P}-support-system-gtest.patch"
)
pkg_pretend() {
aegisub_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() {
aegisub_check_compiler
}
pkg_setup() {
aegisub_check_compiler
}
src_prepare() {
default_src_prepare
+9 -1
View File
@@ -63,12 +63,20 @@ PATCHES=(
"${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-support-system-gtest.patch"
)
pkg_pretend() {
aegisub_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() {
aegisub_check_compiler
}
pkg_setup() {
aegisub_check_compiler
}
src_prepare() {
default_src_prepare