summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-01-14 02:46:32 +0000
committerNick Hadaway <raker@gentoo.org>2003-01-14 02:46:32 +0000
commit993fd2b99dec23e05bb8cf0758c4657666bd37c1 (patch)
tree467bd1d83cff2a1c2483089643c85dad88e42f49 /dev-python/wxPython
parentremoved bloat... moved patch to ibiblio (diff)
downloadhistorical-993fd2b99dec23e05bb8cf0758c4657666bd37c1.tar.gz
historical-993fd2b99dec23e05bb8cf0758c4657666bd37c1.tar.bz2
historical-993fd2b99dec23e05bb8cf0758c4657666bd37c1.zip
added gtk2 support
Diffstat (limited to 'dev-python/wxPython')
-rw-r--r--dev-python/wxPython/ChangeLog5
-rw-r--r--dev-python/wxPython/wxPython-2.4.0.1.ebuild37
2 files changed, 33 insertions, 9 deletions
diff --git a/dev-python/wxPython/ChangeLog b/dev-python/wxPython/ChangeLog
index b7c514a2392d..64f3b1fd2cec 100644
--- a/dev-python/wxPython/ChangeLog
+++ b/dev-python/wxPython/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for dev-python/wxPython
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/ChangeLog,v 1.15 2003/01/12 08:24:27 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/ChangeLog,v 1.16 2003/01/14 02:46:32 raker Exp $
*wxPython-2.4.0.1 (12 Jan 2003)
+ 13 Jan 2003; Nick Hadaway <raker@gentoo.org> wxPython-2.4.0.1.ebuild :
+ Added gtk2 support.
+
12 Jan 2003; Nick Hadaway <raker@gentoo.org> wxPython-2.4.0.1.ebuild,
files/digest-wxPython-2.4.0.1 :
A much needed upgrade. Works with the latest wxGTK release.
diff --git a/dev-python/wxPython/wxPython-2.4.0.1.ebuild b/dev-python/wxPython/wxPython-2.4.0.1.ebuild
index 5f1e27073a02..2e0665a1eae0 100644
--- a/dev-python/wxPython/wxPython-2.4.0.1.ebuild
+++ b/dev-python/wxPython/wxPython-2.4.0.1.ebuild
@@ -1,6 +1,6 @@
# 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.4.0.1.ebuild,v 1.2 2003/01/13 16:57:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/wxPython-2.4.0.1.ebuild,v 1.3 2003/01/14 02:46:32 raker Exp $
MY_P="${P/-/Src-}"
S="${WORKDIR}/${MY_P}/${PN}"
@@ -11,11 +11,11 @@ HOMEPAGE="http://www.wxpython.org/"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"
-IUSE="opengl"
+IUSE="opengl gtk2"
DEPEND=">=dev-lang/python-2.1
- =dev-libs/glib-1.2*
- =x11-libs/gtk+-1.2*
+ >=dev-libs/glib-1.2
+ >=x11-libs/gtk+-1.2
=x11-libs/wxGTK-2.4.0*
opengl? ( >=dev-python/PyOpenGL-2.0.0.44 )"
@@ -36,19 +36,40 @@ src_compile() {
#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.
-
local myconf=""
- if [ `use opengl` ] ; then
+ if [ `use opengl` ]; then
myconf="${myconf} BUILD_GLCANVAS=1"
else
myconf="${myconf} BUILD_GLCANVAS=0"
patch -p1 < ${FILESDIR}/wxPython-2.3.3.1-noglcanvas.diff \
|| die "patch failed"
fi
+ if [ `use gtk2` ]; then
+ myconf="${myconf} WXPORT=gtk2"
+ else
+ myconf="${myconf} WXPORT=gtk"
+ fi
- python setup.py ${myconf} build || die "build failed ... make sure you compiled wxGTK with all the graphic libraries enabled via USE (jpeg png opengl gif tiff zlib gtk X)"
+ python setup.py ${myconf} build || die "build failed"
}
src_install() {
- python setup.py install --prefix=/usr --root=${D} || die
+ #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.
+ local myconf=""
+ if [ `use opengl` ]; then
+ myconf="${myconf} BUILD_GLCANVAS=1"
+ else
+ myconf="${myconf} BUILD_GLCANVAS=0"
+ fi
+ if [ `use gtk2` ]; then
+ myconf="${myconf} WXPORT=gtk2"
+ else
+ myconf="${myconf} WXPORT=gtk"
+ fi
+
+ python setup.py ${myconf} install --prefix=/usr --root=${D} || die
}