summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Tumaykin <itumaykin@gmail.com>2016-10-21 00:25:17 +0300
committerPatrice Clement <monsieurp@gentoo.org>2016-10-21 00:17:26 +0200
commit1e4e4e2de403493367484a2d63062bea93ebc62c (patch)
treeb14b01b627575dfe99bd5e8ecc58d8851906feaf /media-video/aegisub
parentapp-vim/dbext: clean up old. (diff)
downloadgentoo-1e4e4e2de403493367484a2d63062bea93ebc62c.tar.gz
gentoo-1e4e4e2de403493367484a2d63062bea93ebc62c.tar.bz2
gentoo-1e4e4e2de403493367484a2d63062bea93ebc62c.zip
media-video/aegisub: do compiler checks in pkg_setup() too.
Package-Manager: portage-2.3.2 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'media-video/aegisub')
-rw-r--r--media-video/aegisub/aegisub-3.2.2_p20160518.ebuild10
-rw-r--r--media-video/aegisub/aegisub-9999.ebuild10
2 files changed, 18 insertions, 2 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
diff --git a/media-video/aegisub/aegisub-9999.ebuild b/media-video/aegisub/aegisub-9999.ebuild
index 5a702d4e5f2e..1bd7838dd89c 100644
--- a/media-video/aegisub/aegisub-9999.ebuild
+++ b/media-video/aegisub/aegisub-9999.ebuild
@@ -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