diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-03-20 20:37:21 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-03-20 20:37:21 +0000 |
commit | 218f48eb67ded938028ee6ccc8a5ba297b8881a1 (patch) | |
tree | 3c276f5785cd824a0b856e6aea29dfd1ac0b56d4 /eclass/python.eclass | |
parent | Bump to 1.13.0 (diff) | |
download | historical-218f48eb67ded938028ee6ccc8a5ba297b8881a1.tar.gz historical-218f48eb67ded938028ee6ccc8a5ba297b8881a1.tar.bz2 historical-218f48eb67ded938028ee6ccc8a5ba297b8881a1.zip |
Apply patch from Arfrever to adjust dependencies in python.eclass.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index 7805a1177caa..d88cd35d8d1e 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.152 2012/03/07 04:13:27 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.153 2012/03/20 20:37:21 floppym Exp $ # @ECLASS: python.eclass # @MAINTAINER: @@ -100,6 +100,18 @@ _python_check_python_abi_matching() { fi } +_python_implementation() { + if [[ "${CATEGORY}/${PN}" == "dev-lang/python" ]]; then + return 0 + elif [[ "${CATEGORY}/${PN}" == "dev-java/jython" ]]; then + return 0 + elif [[ "${CATEGORY}/${PN}" == "dev-python/pypy" ]]; then + return 0 + else + return 1 + fi +} + _python_package_supporting_installation_for_multiple_python_abis() { if has "${EAPI:-0}" 0 1 2 3 4; then if [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then @@ -245,8 +257,11 @@ _python_parse_PYTHON_DEPEND() { fi } -DEPEND=">=app-admin/eselect-python-20091230" -RDEPEND="${DEPEND}" +if _python_implementation; then + DEPEND=">=app-admin/eselect-python-20091230" + RDEPEND="${DEPEND}" + PDEPEND="app-admin/python-updater" +fi if [[ -n "${PYTHON_DEPEND}" ]]; then _python_parse_PYTHON_DEPEND @@ -295,8 +310,8 @@ if ! has "${EAPI:-0}" 0 1 && [[ -n ${PYTHON_USE_WITH} || -n ${PYTHON_USE_WITH_OR if [[ -n "${PYTHON_USE_WITH_OPT}" ]]; then _PYTHON_USE_WITH_ATOMS="${PYTHON_USE_WITH_OPT}? ( ${_PYTHON_USE_WITH_ATOMS} )" fi - DEPEND+=" ${_PYTHON_USE_WITH_ATOMS}" - RDEPEND+=" ${_PYTHON_USE_WITH_ATOMS}" + DEPEND+="${DEPEND:+ }${_PYTHON_USE_WITH_ATOMS}" + RDEPEND+="${RDEPEND:+ }${_PYTHON_USE_WITH_ATOMS}" unset _PYTHON_ATOM _PYTHON_USE_WITH_ATOMS _PYTHON_USE_WITH_ATOMS_ARRAY fi @@ -306,18 +321,6 @@ unset _PYTHON_ATOMS # =================================== MISCELLANEOUS FUNCTIONS ==================================== # ================================================================================================ -_python_implementation() { - if [[ "${CATEGORY}/${PN}" == "dev-lang/python" ]]; then - return 0 - elif [[ "${CATEGORY}/${PN}" == "dev-java/jython" ]]; then - return 0 - elif [[ "${CATEGORY}/${PN}" == "dev-python/pypy" ]]; then - return 0 - else - return 1 - fi -} - _python_abi-specific_local_scope() { [[ " ${FUNCNAME[@]:2} " =~ " "(_python_final_sanity_checks|python_execute_function|python_mod_optimize|python_mod_cleanup)" " ]] } |