summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-07-08 14:17:56 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-07-08 14:18:12 +0100
commitd1798083a2a89196960d9fde2d053cab9f6f991b (patch)
tree76aa943cd005cd6d8500168a0ac05316f6f929d5 /dev-lang/ghc
parentgnome-extra/cjs: Add dep on sys-devel/autoconf-archive (diff)
downloadgentoo-d1798083a2a89196960d9fde2d053cab9f6f991b.tar.gz
gentoo-d1798083a2a89196960d9fde2d053cab9f6f991b.tar.bz2
gentoo-d1798083a2a89196960d9fde2d053cab9f6f991b.zip
dev-lang/ghc: fix check-reqs usage
Apparently pkg_pretend / pkg_setup don't share global environment. Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-lang/ghc')
-rw-r--r--dev-lang/ghc/ghc-8.0.2.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-lang/ghc/ghc-8.0.2.ebuild b/dev-lang/ghc/ghc-8.0.2.ebuild
index 4ba077cf90b9..1fd964ad3149 100644
--- a/dev-lang/ghc/ghc-8.0.2.ebuild
+++ b/dev-lang/ghc/ghc-8.0.2.ebuild
@@ -327,7 +327,7 @@ relocate_ghc() {
rm "$gp_back"
}
-pkg_pretend() {
+ghc-check-reqs() {
# These are pessimistic values (slightly bigger than worst-case)
# Worst case is UNREG USE=profile ia64. See bug #611866 for some
# numbers on various arches.
@@ -336,11 +336,15 @@ pkg_pretend() {
# USE=binary roughly takes
use binary && CHECKREQS_DISK_BUILD=4G
- check-reqs_pkg_pretend
+ "$@"
+}
+
+pkg_pretend() {
+ ghc-check-reqs check-reqs_pkg_pretend
}
pkg_setup() {
- check-reqs_pkg_setup
+ ghc-check-reqs check-reqs_pkg_setup
# quiet portage about prebuilt binaries
use binary && QA_PREBUILT="*"