summaryrefslogtreecommitdiff
blob: c066fc54f260d8a0d6e9872e1dba91dd107cde21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Tod Neidt <tneidt@fidnet.com>
#$Header $

S=${WORKDIR}/${P}
DESCRIPTION="Generic GUI Module for Python"
SRC_URI="http://prdownloads.sourceforge.net/anygui/${P}.tar.gz"
HOMEPAGE="http://anygui.sourceforge.net/"

DEPEND=">=dev-lang/python-2.0
	sys-libs/ncurses
        qt? ( =dev-python/PyQt-2.4* ) 
        gtk? ( dev-python/pygtk )
        tcltk? ( dev-lang/tk )
	wxwin? ( dev-python/wxPython )"

#       Propsed wxwin use variable for wxGTK for wxWindows? ( dev-python/wxPython ) *NOT* official
#future: 
#       also use variable fltk for fltk? ( dev-python/PyFLTK ) no ebuild for PyFLTK yet
#       java? ( dev-python/jython ) Java Swing (javagui) http://www.jython.org
        
src_compile() {

        python setup.py build || die "Python Build Failed"
        
}

src_install() {

        python setup.py install --prefix=${D}/usr || die "Python Install Failed"

        dodoc CHANGELOG.txt INSTALL.txt KNOWN_BUGS.txt LICENSE.txt \
                MAINTAINERS.txt  PKG-INFO README.txt TODO.txt VERSION.txt
        
}