dev-python/pypy*: Fix pkg_{pretend,setup} not to run for binpkgs

Package-Manager: portage-2.2.20
This commit is contained in:
Michał Górny
2015-08-23 18:10:59 +02:00
parent 2f0e24bb62
commit e4fc17c58c
7 changed files with 124 additions and 102 deletions
+22 -18
View File
@@ -41,32 +41,36 @@ PDEPEND="app-admin/python-updater"
S="${WORKDIR}/${P}-src"
pkg_pretend() {
if use low-memory; then
CHECKREQS_MEMORY="1750M"
use amd64 && CHECKREQS_MEMORY="3500M"
else
CHECKREQS_MEMORY="3G"
use amd64 && CHECKREQS_MEMORY="6G"
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
fi
check-reqs_pkg_pretend
}
pkg_setup() {
pkg_pretend
if [[ ${MERGE_TYPE} != binary ]]; then
pkg_pretend
# unset to allow forcing pypy below :)
use low-memory && local EPYTHON=
if python_is_installed pypy && [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]]; then
einfo "Using PyPy to perform the translation."
local EPYTHON=pypy
else
einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream"
einfo "recommends using PyPy for that. If you wish to do so, please install"
einfo "virtual/pypy and ensure that EPYTHON variable is unset."
# unset to allow forcing pypy below :)
use low-memory && local EPYTHON=
if python_is_installed pypy && [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]]; then
einfo "Using PyPy to perform the translation."
local EPYTHON=pypy
else
einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream"
einfo "recommends using PyPy for that. If you wish to do so, please install"
einfo "virtual/pypy and ensure that EPYTHON variable is unset."
fi
python-any-r1_pkg_setup
fi
python-any-r1_pkg_setup
}
src_prepare() {