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

Diff of /eclass/python.eclass

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

Revision 1.25 Revision 1.26
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.25 2006/06/16 13:54:25 marienz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.26 2006/07/14 15:13:32 marienz 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.
96# support. If not, prints an error message and dies. 96# support. If not, prints an error message and dies.
97# 97#
98python_tkinter_exists() { 98python_tkinter_exists() {
99 if ! python -c "import Tkinter" >/dev/null 2>&1; then 99 if ! python -c "import Tkinter" >/dev/null 2>&1; then
100 eerror "You need to recompile python with Tkinter support." 100 eerror "You need to recompile python with Tkinter support."
101 eerror "That means: USE='X tcltk' emerge python" 101 eerror "That means: 'dev-lang/python X tcltk'"
102 eerror "in /etc/portage/package.use"
102 echo 103 echo
103 die "missing tkinter support with installed python" 104 die "missing tkinter support with installed python"
104 fi 105 fi
105} 106}
106 107

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20