| 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/python.eclass,v 1.22 2006/06/06 22:03:52 carlo Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.23 2006/06/06 22:33:09 carlo Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Alastair Tse <liquidx@gentoo.org> |
5 | # Author: Alastair Tse <liquidx@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # A Utility Eclass that should be inherited by anything that deals with |
7 | # A Utility Eclass that should be inherited by anything that deals with |
| 8 | # Python or Python modules. |
8 | # Python or Python modules. |
| … | |
… | |
| 18 | # python_makesym() - Makes /usr/bin/python symlinks |
18 | # python_makesym() - Makes /usr/bin/python symlinks |
| 19 | |
19 | |
| 20 | inherit alternatives |
20 | inherit alternatives |
| 21 | |
21 | |
| 22 | |
22 | |
| 23 | if [[ -n NEED_PYTHON ]] ; then |
23 | if [[ -n "${NEED_PYTHON}" ]] ; then |
| 24 | DEPEND=">=dev-lang/python-${NEED_PYTHON}" |
24 | DEPEND=">=dev-lang/python-${NEED_PYTHON}" |
| 25 | RDEPEND="${DEPEND}" |
25 | RDEPEND="${DEPEND}" |
| 26 | fi |
26 | fi |
| 27 | |
27 | |
| 28 | __python_eclass_test() { |
28 | __python_eclass_test() { |