diff options
Diffstat (limited to 'dev-python/pypy3/pypy3-9999.ebuild')
-rw-r--r-- | dev-python/pypy3/pypy3-9999.ebuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/dev-python/pypy3/pypy3-9999.ebuild b/dev-python/pypy3/pypy3-9999.ebuild index 1175a210c989..cb2f562dfff9 100644 --- a/dev-python/pypy3/pypy3-9999.ebuild +++ b/dev-python/pypy3/pypy3-9999.ebuild @@ -43,23 +43,25 @@ DEPEND="${RDEPEND} # Who would care about predictable directory names? S="${WORKDIR}/pypy3-v${PV%_*}-src" -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - if use low-memory; then - CHECKREQS_MEMORY="1750M" - use amd64 && CHECKREQS_MEMORY="3500M" - else - CHECKREQS_MEMORY="3G" - use amd64 && CHECKREQS_MEMORY="6G" - fi - - check-reqs_pkg_pretend +check_env() { + if use low-memory; then + CHECKREQS_MEMORY="1750M" + use amd64 && CHECKREQS_MEMORY="3500M" + else + CHECKREQS_MEMORY="3G" + use amd64 && CHECKREQS_MEMORY="6G" fi + + check-reqs_pkg_pretend +} + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && check_env } pkg_setup() { if [[ ${MERGE_TYPE} != binary ]]; then - pkg_pretend + check_env # unset to allow forcing pypy below :) use low-memory && local EPYTHON= |