summaryrefslogtreecommitdiff
blob: 65812679f93901206d213514080885d1dd392d43 (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
52
53
54
55
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/wxPython-2.3.2.1-r1.ebuild,v 1.4 2002/08/22 19:35:19 raker Exp $

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"
	#opengl? ( virtual/opengl )"
	#really need opengl? ( virtual/opengl dev-python/PyOpenGL )
	#to get full opengl functionality, i.e. wxGLCanvas.

SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="x86 sparc sparc64"

src_compile() {
#	local myconf
#	myconf=""
#
#	if use opengl; then
#		myconf="${myconf} BUILD_GLCANVAS=1"
#	else
#		myconf="${myconf} BUILD_GLCANVAS=0"
#	fi
        
#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.

	# this doesn't work yet with opengl, thus,
	# force the issue for now.
	# It *builds* but sigsegs at runtime.
	# myconf="BUILD_GLCANVAS=0"
	cd ${S}
	patch -p1 < ${FILESDIR}/noglcanvas.diff || die "patch failed"

	# gizmos currently fails compiling on gcc3
	# myconf="${myconf} BUILD_GIZMOS=0"
	patch -p1 < ${FILESDIR}/nogizmos.diff || die "patch failed"

	python setup.py build || die
}

src_install () {
	python setup.py install --prefix=${D}/usr || die

	dodoc BUILD.unix.txt CHANGES.txt MANIFEST.in PKG-INFO README.txt
}