Adding NEED_PYTHON variable, as proposed.
authorCarsten Lohrke <carlo@gentoo.org>
Tue, 6 Jun 2006 22:03:52 +0000 (22:03 +0000)
committerCarsten Lohrke <carlo@gentoo.org>
Tue, 6 Jun 2006 22:03:52 +0000 (22:03 +0000)
eclass/python.eclass

index 7d6c27d31be832789760fd584da8cd657db56bd1..06acd5b9c719fa09b6a74b1dd2ea6b9ef86fe634 100644 (file)
@@ -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>
 #
 inherit alternatives
 
 
+if [[ -n NEED_PYTHON ]] ; then
+        DEPEND=">=dev-lang/python-${NEED_PYTHON}"
+        RDEPEND="${DEPEND}"
+fi
 
 __python_eclass_test() {
        __python_version_extract 2.3