| 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.26 2006/07/14 15:13:32 marienz Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.27 2006/08/07 00:21:49 liquidx 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 | # |
| 98 | python_tkinter_exists() { |
98 | python_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: 'dev-lang/python X tcltk'" |
101 | eerror "Try adding: 'dev-lang/python X tk'" |
| 102 | eerror "in /etc/portage/package.use" |
102 | eerror "in to /etc/portage/package.use" |
| 103 | echo |
103 | echo |
| 104 | die "missing tkinter support with installed python" |
104 | die "missing tkinter support with installed python" |
| 105 | fi |
105 | fi |
| 106 | } |
106 | } |
| 107 | |
107 | |