/[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.4 Revision 1.5
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.4 2012/03/26 18:27:58 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.5 2012/03/26 19:12:28 nelchael 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:
73# `implementation' has to be one of the valid values for PYTHON_COMPAT. 73# `implementation' has to be one of the valid values for PYTHON_COMPAT.
74_python-distutils-ng_generate_depend() { 74_python-distutils-ng_generate_depend() {
75 local impl="${1/_/.}" 75 local impl="${1/_/.}"
76 case "${impl}" in 76 case "${impl}" in
77 python?.?) 77 python?.?)
78 echo "dev-lang/${impl::-3}:${impl: -3}" ;; 78 echo "dev-lang/python:${impl: -3}" ;;
79 jython?.?) 79 jython?.?)
80 echo "dev-java/${impl::-3}:${impl: -3}" ;; 80 echo "dev-java/jython:${impl: -3}" ;;
81 pypy?.?) 81 pypy?.?)
82 echo "dev-python/${impl::-3}:${impl: -3}" ;; 82 echo "dev-python/pypy:${impl: -3}" ;;
83 *) 83 *)
84 die "Unsupported implementation: ${1}" ;; 84 die "Unsupported implementation: ${1}" ;;
85 esac 85 esac
86} 86}
87 87

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20