/[gentoo-x86]/eclass/python.eclass
Gentoo

Diff of /eclass/python.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.120 Revision 1.121
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.120 2011/07/08 07:40:02 djc Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.121 2011/07/08 07:41:56 djc Exp $
4 4
5# @ECLASS: python.eclass 5# @ECLASS: python.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo Python Project <python@gentoo.org> 7# Gentoo Python Project <python@gentoo.org>
8# @BLURB: Eclass for Python packages 8# @BLURB: Eclass for Python packages
78 return 0 78 return 0
79 fi 79 fi
80 done <<< "${patterns}" 80 done <<< "${patterns}"
81 81
82 return 1 82 return 1
83 fi
84}
85
86_python_package_supporting_installation_for_multiple_python_abis() {
87 if has "${EAPI:-0}" 0 1 2 3 4; then
88 if [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
89 return 0
90 else
91 return 1
92 fi
93 else
94 die "${FUNCNAME}(): Support for EAPI=\"${EAPI}\" not implemented"
83 fi 95 fi
84} 96}
85 97
86# @ECLASS-VARIABLE: PYTHON_DEPEND 98# @ECLASS-VARIABLE: PYTHON_DEPEND
87# @DESCRIPTION: 99# @DESCRIPTION:
282 return 0 294 return 0
283 elif [[ "${CATEGORY}/${PN}" == "dev-java/jython" ]]; then 295 elif [[ "${CATEGORY}/${PN}" == "dev-java/jython" ]]; then
284 return 0 296 return 0
285 else 297 else
286 return 1 298 return 1
287 fi
288}
289
290_python_package_supporting_installation_for_multiple_python_abis() {
291 if [[ "${EBUILD_PHASE}" == "depend" ]]; then
292 die "${FUNCNAME}() cannot be used in global scope"
293 fi
294
295 if has "${EAPI:-0}" 0 1 2 3 4; then
296 if [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
297 return 0
298 else
299 return 1
300 fi
301 else
302 die "${FUNCNAME}(): Support for EAPI=\"${EAPI}\" not implemented"
303 fi 299 fi
304} 300}
305 301
306_python_abi-specific_local_scope() { 302_python_abi-specific_local_scope() {
307 [[ " ${FUNCNAME[@]:2} " =~ " "(_python_final_sanity_checks|python_execute_function|python_mod_optimize|python_mod_cleanup)" " ]] 303 [[ " ${FUNCNAME[@]:2} " =~ " "(_python_final_sanity_checks|python_execute_function|python_mod_optimize|python_mod_cleanup)" " ]]

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

  ViewVC Help
Powered by ViewVC 1.1.20