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

Diff of /eclass/python-distutils-ng.eclass

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

Revision 1.27 Revision 1.30
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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/Attic/python-distutils-ng.eclass,v 1.27 2012/09/26 12:07:45 hasufell Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.30 2013/07/27 11:17:44 mgorny Exp $
4 4
5# @ECLASS: python-distutils-ng 5# @ECLASS: python-distutils-ng
6# @MAINTAINER: 6# @MAINTAINER:
7# Python herd <python@gentoo.org> 7# Python herd <python@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
74EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install 74EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
75 75
76case "${EAPI}" in 76case "${EAPI}" in
77 0|1|2|3) 77 0|1|2|3)
78 die "Unsupported EAPI=${EAPI} (too old) for python-distutils-ng.eclass" ;; 78 die "Unsupported EAPI=${EAPI} (too old) for python-distutils-ng.eclass" ;;
79 4) 79 4|5)
80 # EAPI=4 needed for REQUIRED_USE 80 # EAPI=4 needed for REQUIRED_USE
81 S="${S:-${WORKDIR}/${P}}" 81 S="${S:-${WORKDIR}/${P}}"
82 ;; 82 ;;
83 *) 83 *)
84 die "Unsupported EAPI=${EAPI} (unknown) for python-distutils-ng.eclass" ;; 84 die "Unsupported EAPI=${EAPI} (unknown) for python-distutils-ng.eclass" ;;
96# `python'. 96# `python'.
97_python-distutils-ng_get_binary_for_implementation() { 97_python-distutils-ng_get_binary_for_implementation() {
98 local impl="${1/_/.}" 98 local impl="${1/_/.}"
99 case "${impl}" in 99 case "${impl}" in
100 python?.?|jython?.?) 100 python?.?|jython?.?)
101 echo "/usr/bin/${impl}" ;; 101 echo "${EPREFIX}/usr/bin/${impl}" ;;
102 pypy?.?) 102 pypy?.?)
103 echo "/usr/bin/pypy-c${impl: -3}" ;; 103 echo "${EPREFIX}/usr/bin/pypy-c${impl: -3}" ;;
104 *) 104 *)
105 die "Unsupported implementation: ${1}" ;; 105 die "Unsupported implementation: ${1}" ;;
106 esac 106 esac
107} 107}
108 108
130 python?.?) 130 python?.?)
131 dep_str="dev-lang/python:${dep_str: -3}${_PYTHON_USE}" ;; 131 dep_str="dev-lang/python:${dep_str: -3}${_PYTHON_USE}" ;;
132 jython?.?) 132 jython?.?)
133 dep_str="dev-java/jython:${dep_str: -3}${_PYTHON_USE}" ;; 133 dep_str="dev-java/jython:${dep_str: -3}${_PYTHON_USE}" ;;
134 pypy?.?) 134 pypy?.?)
135 dep_str="dev-python/pypy:${dep_str: -3}${_PYTHON_USE}" ;; 135 dep_str="virtual/pypy:${dep_str: -3}${_PYTHON_USE}" ;;
136 *) 136 *)
137 die "Unsupported implementation: ${impl}" ;; 137 die "Unsupported implementation: ${impl}" ;;
138 esac 138 esac
139 dep_str="python_targets_${impl}? ( ${dep_str} )" 139 dep_str="python_targets_${impl}? ( ${dep_str} )"
140 140
398 python_install_all 398 python_install_all
399 popd &> /dev/null 399 popd &> /dev/null
400 fi 400 fi
401 401
402 if [[ -z "${PYTHON_DISABLE_SCRIPT_REDOS}" ]]; then 402 if [[ -z "${PYTHON_DISABLE_SCRIPT_REDOS}" ]]; then
403 for script_file in $(find "${D}"{,usr/}{,s}bin/ -type f -executable 2> /dev/null); do 403 for script_file in $(find "${ED}"{,usr/}{,s}bin/ -type f -executable 2> /dev/null); do
404 python-distutils-ng_redoscript "/${script_file#${D}}" 404 python-distutils-ng_redoscript "/${script_file#${D}}"
405 done 405 done
406 fi 406 fi
407} 407}

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20