/[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.28 Revision 1.29
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.28 2012/09/27 16:35:41 axs Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.29 2012/10/30 17:22:33 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:
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
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.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20