summaryrefslogtreecommitdiff
blob: a1847a4ae06472897841908d4cbd5b8b14a019de (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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="A blending of the wxWindows C++ class library with Python."

SRC_URI="mirror://sourceforge/wxpython/${P}.tar.gz"

HOMEPAGE="http://www.wxpython.org/"

DEPEND=">=dev-lang/python-2.1
        =dev-libs/glib-1.2*
        =x11-libs/gtk+-1.2*
        >=x11-libs/wxGTK-2.3.2"
        #opengl? ( virtual/opengl )"
        #really need opengl? ( virtual/opengl dev-python/PyOpenGL )
        #to get full opengl functionality, i.e. wxGLCanvas.

RDEPEND="${DEPEND}"

src_compile() {

        #local myconf
        #myconf=""

#Other possible configuration variables are BUILD_OGL and BUILD_STC.
#BUILD_OGL builds the Object Graphics Library extension module.
#BUILD_STC builds the wxStyledTextCtrl (the Scintilla wrapper) extension 
module.
#Both these variable are enabled by default.  To disable them set equal to 
zero
#and add to myconf.

        #use opengl || myconf="${myconf} BUILD_GLCANVAS=0"
        #myconf="${myconf} BUILD_GLCANVAS=0"
        

        python setup.py build  ${myconf} || die
    
}

src_install () {
        
        python setup.py install --prefix=${D}/usr || die
        
        dodoc BUILD.unix.txt CHANGES.txt MANIFEST.in PKG-INFO README.txt
        
}