blob: 5b3598876913db4c7178de34f9a9cecba1d246f1 (
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
56
57
58
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/wxPython-2.3.2.1-r2.ebuild,v 1.9 2002/10/20 18:47:32 vapier Exp $
IUSE="opengl"
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? ( >=dev-python/PyOpenGL-2.0.0.44 )"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="x86 ppc sparc sparc64 alpha"
src_unpack() {
unpack ${A}
cd ${S}/contrib/gizmos/contrib/src/gizmos
patch -p0 < ${FILESDIR}/ledctrl.diff || die "patch failed"
cd ${S}
}
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.
if use opengl; then
myconf="${myconf} BUILD_GLCANVAS=1"
else
myconf="${myconf} BUILD_GLCANVAS=0"
patch -p1 < ${FILESDIR}/noglcanvas.diff || die "patch failed"
fi
python setup.py ${myconf} build || die
}
src_install () {
python setup.py ${myconf} install --prefix=${D}/usr || die
dodoc BUILD.unix.txt CHANGES.txt MANIFEST.in PKG-INFO README.txt
}
|