summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/aegisub/aegisub-3.2.2_p20160518.ebuild')
-rw-r--r--media-video/aegisub/aegisub-3.2.2_p20160518.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild b/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild
index 9c9c58b7cec8..b901ac1bde05 100644
--- a/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild
+++ b/media-video/aegisub/aegisub-3.2.2_p20160518.ebuild
@@ -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