diff options
author | Carsten Lohrke <carlo@gentoo.org> | 2006-06-06 22:03:52 +0000 |
---|---|---|
committer | Carsten Lohrke <carlo@gentoo.org> | 2006-06-06 22:03:52 +0000 |
commit | 74c72d3fdb2dcd529ba01e42575667342a4401db (patch) | |
tree | 1584e3b6f52f0f75efb7f888a89fe7847475669e /eclass/python.eclass | |
parent | rc2, bug 135783, bug 134781 (diff) | |
download | gentoo-2-74c72d3fdb2dcd529ba01e42575667342a4401db.tar.gz gentoo-2-74c72d3fdb2dcd529ba01e42575667342a4401db.tar.bz2 gentoo-2-74c72d3fdb2dcd529ba01e42575667342a4401db.zip |
Adding NEED_PYTHON variable, as proposed.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index 7d6c27d31be8..06acd5b9c719 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.21 2005/07/11 15:08:06 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.22 2006/06/06 22:03:52 carlo Exp $ # # Author: Alastair Tse <liquidx@gentoo.org> # @@ -20,6 +20,10 @@ inherit alternatives +if [[ -n NEED_PYTHON ]] ; then + DEPEND=">=dev-lang/python-${NEED_PYTHON}" + RDEPEND="${DEPEND}" +fi __python_eclass_test() { __python_version_extract 2.3 |