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

Diff of /eclass/python.eclass

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

Revision 1.28 Revision 1.29
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.28 2006/08/16 16:24:20 liquidx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.29 2006/10/14 20:27:21 swegener 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.
70__python_version_extract() { 70__python_version_extract() {
71 verstr=$1 71 verstr=$1
72 export PYVER_MAJOR=${verstr:0:1} 72 export PYVER_MAJOR=${verstr:0:1}
73 export PYVER_MINOR=${verstr:2:1} 73 export PYVER_MINOR=${verstr:2:1}
74 if [ "${verstr:3}x" = ".x" ]; then 74 if [ "${verstr:3}x" = ".x" ]; then
75 export PYVER_MICRO=${verstr:4} 75 export PYVER_MICRO=${verstr:4}
76 fi 76 fi
77 export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" 77 export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}"
78} 78}
79 79
80python_version() { 80python_version() {

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20