Hi, I tried to avoid depending on eselect-python if the useflag is disabled.
Please test and review. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero
--- /usr/portage/eclass/python.eclass 2012-03-06 20:31:12.000000000 -0800 +++ /var/tmp/python.eclass 2012-03-19 21:24:24.937967537 -0700 @@ -33,6 +33,8 @@ _PYPY_GLOBALLY_SUPPORTED_ABIS=(2.7-pypy-1.7 2.7-pypy-1.8) _PYTHON_GLOBALLY_SUPPORTED_ABIS=(${_CPYTHON2_GLOBALLY_SUPPORTED_ABIS[@]} ${_CPYTHON3_GLOBALLY_SUPPORTED_ABIS[@]} ${_JYTHON_GLOBALLY_SUPPORTED_ABIS[@]} ${_PYPY_GLOBALLY_SUPPORTED_ABIS[@]}) +ESELECT_DEP=">=app-admin/eselect-python-20091230" + # ================================================================================================ # ===================================== HANDLING OF METADATA ===================================== # ================================================================================================ @@ -232,26 +234,27 @@ fi unset -f _append_accepted_versions_range - + DEPEND="${USE_flag}${USE_flag:+? ( }${ESELECT_DEP}${USE_flag:+ )}" + RDEPEND="${DEPEND}" if [[ "${#_PYTHON_ATOMS[@]}" -gt 1 ]]; then - DEPEND+="${DEPEND:+ }${USE_flag}${USE_flag:+? ( }|| ( ${_PYTHON_ATOMS[@]} )${USE_flag:+ )}" - RDEPEND+="${RDEPEND:+ }${USE_flag}${USE_flag:+? ( }|| ( ${_PYTHON_ATOMS[@]} )${USE_flag:+ )}" + DEPEND+=" ${USE_flag}${USE_flag:+? ( }|| ( ${_PYTHON_ATOMS[@]} )${USE_flag:+ )}" + RDEPEND+=" ${USE_flag}${USE_flag:+? ( }|| ( ${_PYTHON_ATOMS[@]} )${USE_flag:+ )}" else - DEPEND+="${DEPEND:+ }${USE_flag}${USE_flag:+? ( }${_PYTHON_ATOMS[@]}${USE_flag:+ )}" - RDEPEND+="${RDEPEND:+ }${USE_flag}${USE_flag:+? ( }${_PYTHON_ATOMS[@]}${USE_flag:+ )}" + DEPEND+=" ${USE_flag}${USE_flag:+? ( }${_PYTHON_ATOMS[@]}${USE_flag:+ )}" + RDEPEND+=" ${USE_flag}${USE_flag:+? ( }${_PYTHON_ATOMS[@]}${USE_flag:+ )}" fi else die "Invalid syntax of PYTHON_DEPEND" fi } -DEPEND=">=app-admin/eselect-python-20091230" -RDEPEND="${DEPEND}" if [[ -n "${PYTHON_DEPEND}" ]]; then _python_parse_PYTHON_DEPEND else _PYTHON_ATOMS=("dev-lang/python") + DEPEND="${ESELECT_DEP}" + RDEPEND="${DEPEND}" fi unset -f _python_parse_PYTHON_DEPEND