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

Diff of /eclass/distutils.eclass

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

Revision 1.12 Revision 1.13
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.12 2003/05/10 18:29:16 liquidx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.13 2003/09/09 17:18:27 liquidx 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
49 [ -n "${mydoc}" ] && dodoc ${mydoc} 49 [ -n "${mydoc}" ] && dodoc ${mydoc}
50} 50}
51 51
52# e.g. insinto ${ROOT}/usr/include/python${PYVER} 52# e.g. insinto ${ROOT}/usr/include/python${PYVER}
53 53
54distutils_python_version() 54distutils_python_version() {
55{
56 local tmpstr="$(${python} -V 2>&1 )" 55 local tmpstr="$(${python} -V 2>&1 )"
57 tmpstr="${tmpstr#Python }" 56 export PYVER_ALL="${tmpstr#Python }"
58 tmpstr=${tmpstr%.*}
59 57
60 export PYVER_MAJOR="${tmpstr%.[0-9]*}" 58 export PYVER_MAJOR=$(echo ${PYVER_ALL} | cut -d. -f1)
61 export PYVER_MINOR="${tmpstr#[0-9]*.}" 59 export PYVER_MINOR=$(echo ${PYVER_ALL} | cut -d. -f2)
60 export PYVER_MICRO=$(echo ${PYVER_ALL} | cut -d. -f3-)
62 export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" 61 export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}"
63} 62}
64 63
65# checks for if tkinter support is compiled into python 64# checks for if tkinter support is compiled into python
66distutils_python_tkinter() { 65distutils_python_tkinter() {
70 echo 69 echo
71 die "missing tkinter support with installed python" 70 die "missing tkinter support with installed python"
72 fi 71 fi
73} 72}
74 73
74# export PYVER as well
75distutils_python_version
75 76
76EXPORT_FUNCTIONS src_compile src_install 77EXPORT_FUNCTIONS src_compile src_install
77 78

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20