| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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/distutils.eclass,v 1.30 2005/12/07 17:57:12 marienz Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.31 2006/06/03 17:56:35 radek Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Jon Nelson <jnelson@gentoo.org> |
5 | # Author: Jon Nelson <jnelson@gentoo.org> |
| 6 | # Current Maintainer: Alastair Tse <liquidx@gentoo.org> |
6 | # Current Maintainer: Alastair Tse <liquidx@gentoo.org> |
| 7 | # |
7 | # |
| 8 | # The distutils eclass is designed to allow easier installation of |
8 | # The distutils eclass is designed to allow easier installation of |
| … | |
… | |
| 21 | |
21 | |
| 22 | inherit python eutils |
22 | inherit python eutils |
| 23 | |
23 | |
| 24 | # This helps make it possible to add extensions to python slots. |
24 | # This helps make it possible to add extensions to python slots. |
| 25 | # Normally only a -py21- ebuild would set PYTHON_SLOT_VERSION. |
25 | # Normally only a -py21- ebuild would set PYTHON_SLOT_VERSION. |
| 26 | if [ "${PYTHON_SLOT_VERSION}" = 2.1 ] ; then |
26 | if [ "${PYTHON_SLOT_VERSION}" = "2.1" ] ; then |
| 27 | DEPEND="=dev-lang/python-2.1*" |
27 | DEPEND="=dev-lang/python-2.1*" |
| 28 | python="python2.1" |
28 | python="python2.1" |
|
|
29 | elif [ "${PYTHON_SLOT_VERSION}" = "2.3" ] ; then |
|
|
30 | DEPEND="=dev-lang/python-2.3*" |
|
|
31 | python="python2.3" |
| 29 | else |
32 | else |
| 30 | DEPEND="virtual/python" |
33 | DEPEND="virtual/python" |
| 31 | python="python" |
34 | python="python" |
| 32 | fi |
35 | fi |
| 33 | |
36 | |