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

Diff of /eclass/python.eclass

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

Revision 1.166 Revision 1.167
1# Copyright 1999-2013 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/python.eclass,v 1.166 2013/03/07 21:02:06 radhermit Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.167 2013/07/27 11:17:44 mgorny 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
107_python_implementation() { 107_python_implementation() {
108 if [[ "${CATEGORY}/${PN}" == "dev-lang/python" ]]; then 108 if [[ "${CATEGORY}/${PN}" == "dev-lang/python" ]]; then
109 return 0 109 return 0
110 elif [[ "${CATEGORY}/${PN}" == "dev-java/jython" ]]; then 110 elif [[ "${CATEGORY}/${PN}" == "dev-java/jython" ]]; then
111 return 0 111 return 0
112 elif [[ "${CATEGORY}/${PN}" == "dev-python/pypy" ]]; then 112 elif [[ "${CATEGORY}/${PN}" == "virtual/pypy" ]]; then
113 return 0 113 return 0
114 else 114 else
115 return 1 115 return 1
116 fi 116 fi
117} 117}
2052 if [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "CPython" ]]; then 2052 if [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "CPython" ]]; then
2053 echo "=dev-lang/python-${PYTHON_ABI}*" 2053 echo "=dev-lang/python-${PYTHON_ABI}*"
2054 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "Jython" ]]; then 2054 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "Jython" ]]; then
2055 echo "=dev-java/jython-${PYTHON_ABI%-jython}*" 2055 echo "=dev-java/jython-${PYTHON_ABI%-jython}*"
2056 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "PyPy" ]]; then 2056 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "PyPy" ]]; then
2057 echo "=dev-python/pypy-${PYTHON_ABI#*-pypy-}*" 2057 echo "=virtual/pypy-${PYTHON_ABI#*-pypy-}*"
2058 fi 2058 fi
2059 else 2059 else
2060 if [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "CPython" ]]; then 2060 if [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "CPython" ]]; then
2061 echo "dev-lang/python:${PYTHON_ABI}" 2061 echo "dev-lang/python:${PYTHON_ABI}"
2062 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "Jython" ]]; then 2062 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "Jython" ]]; then
2063 echo "dev-java/jython:${PYTHON_ABI%-jython}" 2063 echo "dev-java/jython:${PYTHON_ABI%-jython}"
2064 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "PyPy" ]]; then 2064 elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "PyPy" ]]; then
2065 echo "dev-python/pypy:${PYTHON_ABI#*-pypy-}" 2065 echo "virtual/pypy:${PYTHON_ABI#*-pypy-}"
2066 fi 2066 fi
2067 fi 2067 fi
2068} 2068}
2069 2069
2070# @FUNCTION: python_get_includedir 2070# @FUNCTION: python_get_includedir

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167

  ViewVC Help
Powered by ViewVC 1.1.20