diff options
author | Bryan Østergaard <kloeri@gentoo.org> | 2004-07-03 11:46:54 +0000 |
---|---|---|
committer | Bryan Østergaard <kloeri@gentoo.org> | 2004-07-03 11:46:54 +0000 |
commit | 1662bf42d2168a15afbdbda290117f3f1e8bfe85 (patch) | |
tree | bb2851ae3dbfedb175477bea52a0f9ab312dd36d /dev-python/wxpython | |
parent | Cleanning and updating deps (Manifest recommit) (diff) | |
download | gentoo-2-1662bf42d2168a15afbdbda290117f3f1e8bfe85.tar.gz gentoo-2-1662bf42d2168a15afbdbda290117f3f1e8bfe85.tar.bz2 gentoo-2-1662bf42d2168a15afbdbda290117f3f1e8bfe85.zip |
Follow naming policy, rename wxPython to wxpython.
Diffstat (limited to 'dev-python/wxpython')
-rw-r--r-- | dev-python/wxpython/ChangeLog | 178 | ||||
-rw-r--r-- | dev-python/wxpython/Manifest | 8 | ||||
-rw-r--r-- | dev-python/wxpython/files/digest-wxpython-2.4.0.7 | 1 | ||||
-rw-r--r-- | dev-python/wxpython/files/digest-wxpython-2.4.1.2 | 1 | ||||
-rw-r--r-- | dev-python/wxpython/files/digest-wxpython-2.4.2.4 | 1 | ||||
-rw-r--r-- | dev-python/wxpython/metadata.xml | 6 | ||||
-rw-r--r-- | dev-python/wxpython/wxpython-2.4.0.7.ebuild | 97 | ||||
-rw-r--r-- | dev-python/wxpython/wxpython-2.4.1.2.ebuild | 85 | ||||
-rw-r--r-- | dev-python/wxpython/wxpython-2.4.2.4.ebuild | 101 |
9 files changed, 478 insertions, 0 deletions
diff --git a/dev-python/wxpython/ChangeLog b/dev-python/wxpython/ChangeLog new file mode 100644 index 000000000000..9b9f3b3dc1c2 --- /dev/null +++ b/dev-python/wxpython/ChangeLog @@ -0,0 +1,178 @@ +# ChangeLog for dev-python/wxPython +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.1 2004/07/03 11:46:54 kloeri Exp $ + +*wxpython-2.4.2.4 (03 Jul 2004) + + 03 Jul 2004; Bryan Østergaard <kloeri@gentoo.org> +wxpython-2.4.0.7.ebuild, + +wxpython-2.4.1.2.ebuild, +wxpython-2.4.2.4.ebuild: + Follow naming policy, rename wxPython to wxpython. + + 30 Jun 2004; Guy Martin <gmsoft@gentoo.org> wxPython-2.4.2.4.ebuild: + Marked stable on hppa. + + 22 Jun 2004; Rob Cakebread <pythonhead@gentoo.org> wxPython-2.4.2.4.ebuild: + Marked stable on x86 + + 03 Jun 2004; Aron Griffis <agriffis@gentoo.org> wxPython-2.4.0.7.ebuild, + wxPython-2.4.1.2.ebuild, wxPython-2.4.2.4.ebuild: + Fix use invocation + + 25 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> + wxPython-2.4.0.7.ebuild: + don't use deprecated ? : use syntax + + 17 Feb 2004; Aron Griffis <agriffis@gentoo.org> wxPython-2.4.0.7.ebuild, + wxPython-2.4.1.2.ebuild, wxPython-2.4.2.4.ebuild: + stable on alpha and ia64 + + 17 Jan 2004; Bartosch Pixa <darkspecter@gentoo.org> : + manifest fix + + 16 Jan 2004; Bartosch Pixa <darkspecter@gentoo.org> wxPython-2.4.2.4.ebuild: + set ppc in keywords + + 29 Dec 2003; Guy Martin <gmsoft@gentoo.org> wxPython-2.4.1.2.ebuild: + Marked stable on hppa. + + 25 Dec 2003; Jason Wever <weeve@gentoo.org> wxPython-2.4.1.2.ebuild: + Marked stable on sparc. + + 12 Oct 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.2.4.ebuild: + add unicode support to match wxGTK-2.4.2 thanks to Vaclav Slavik + <vaclav.slavik@matfyz.cz> (#30768) + + 08 Oct 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.1.2.ebuild, + wxPython-2.4.2.4.ebuild: + added debug config wx*-config and stable bumped wxPython-2.4.1.2 + + 08 Oct 2003; Seemant Kulleen <seemant@gentoo.org> wxPython-2.4.1.2.ebuild, + wxPython-2.4.2.4.ebuild: + the dependency is tiff, not libtiff + +*wxPython-2.4.2.4 (08 Oct 2003) + + 08 Oct 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.7.ebuild, + wxPython-2.4.1.2.ebuild, wxPython-2.4.2.4.ebuild: + version bump. incorporating license changes thanks to Vaclav Slavik + <vaclav.slavik@matfyz.cz> (#28697) + + 10 Jul 2003; Nick Hadaway <raker@gentoo.org> wxPython-2.4.1.2.ebuild, + files/controls2.py.patch: + Added a tiny patch to fix a typo in controls2.py + +*wxPython-2.4.1.2 (09 Jul 2003) + + 09 Jul 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.1.2.ebuild: + new version. needs wxGTK-2.4.1 + + 08 Jul 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.2.ebuild: + removed non-functional patch from wxWindows-2.4.0.2 + + 07 Jul 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.7.ebuild: + bump to stable + + 07 May 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.6.ebuild, + wxPython-2.4.0.7.ebuild: + Detect non-unicode wxGTK + +*wxPython-2.4.0.7 (27 Apr 2003) + + 27 Apr 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.7.ebuild: + version bump + +*wxPython-2.4.0.6 (16 Mar 2003) + + 26 Mar 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.6.ebuild: + Fixed typo that disallows wxPython from merging. Fixes #18203. + + 26 Mar 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.6.ebuild: + add check to make sure wxGTK is compiled with the right use flags + + 16 Mar 2003; Alastair Tse <liquidx@gentoo.org> wxPython-2.4.0.6.ebuild: + version bump + +*wxPython-2.4.0.2 (01 Feb 2003) + + 01 Feb 2003; Nick Hadaway <raker@gentoo.org> wxPython-2.4.0.2.ebuild : + Version bump. Bug fixes. + +*wxPython-2.4.0.1 (12 Jan 2003) + + 15 Jan 2003; Nick Hadaway <raker@gentoo.org> wxPython-2.4.0.1.ebuild : + Marked stable for x86. + + 13 Jan 2003; Nick Hadaway <raker@gentoo.org> wxPython-2.4.0.1.ebuild : + Added gtk2 support based on code submitted by Jose Fonseca on bug + #13860 + + 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. + As we have had much problems with the 2.3.4 wxGTK series I am hoping + this may actually make into the stable 1.4 release or we need to bump + back to to 2.3.3 series of wxGTK. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*wxPython-2.3.3.1-r2 (30 Oct 2002) + + 30 Oct 2002; Mike Frysinger <vapier@gentoo.org> : + Removed all the crap put into the first 2.3.3.1 ebuild to build wxGTK and + updated the patch to remove glcanvas + +*wxPython-2.3.3.1-r1 (29 Oct 2002) + + 29 Oct 2002; Mike Frysinger <vapier@gentoo.org> : + added some changes per discussion on #9693 + +*wxPython-2.3.3.1 (28 Oct 2002) + + 28 Oct 2002; Mike Frysinger <vapier@gentoo.org> : + This version bump was nasty rough ... + They added configure/make scripts to this package now, so mirrored much of + the configure setup after wxGTK ... + +*wxPython-2.3.2.1-r2 (29 Aug 2002) + + 13 Sep 2002; Nick Hadaway <raker@gentoo.org> wxPython-2.3.2.1-r2.ebuild : + Moved glcanvas patch from -r1 as specifying GLCANVAS=0 doesn't disable + the opengl portion of the build fully. Should fix bug #7777. + + 11 Sep 2002; Nick Hadaway <raker@gentoo.org> wxPython-2.3.2.1-r2.ebuild : + tightened wxGTK dependancy to wxGTK-2.3.2* + + 01 Sep 2002; Nick Hadaway <raker@gentoo.org> wxPython-2.3.2.1-r2.ebuild : + Updated ebuild with missing ${myconf}'s + + 29 Aug 2002; Nick Hadaway <raker@gentoo.org> wxPython-2.3.2.1-r2.ebuild, + file/digest-wxPython-2.3.2.1-r2, files/ledctrl.diff : + GLCANVAS and GIZMOS extensions are now re-enabled and we should have a + full-featured ebuild of wxPython. + +*wxPython-2.3.2.1-r1 (2 Jul 2002) + + 22 Aug 2002; Nick Hadaway <raker@gentoo.org> wxPython-2.3.2.1-r1.ebuild, + files/noglcanvas.diff, files/nogizmos.diff : + Ebuild disables glcancas and gizmos extensions as they currently are + not building correctly. + + 2 Jul 2002; Jon Nelson <jnelson@gentoo.org> wxPython-2.3.2.1-r1: + Make lintool happy + expressly don't build GLCANVAS + +*wxPython-2.3.2.1 (11 Apr 2002) + + 11 Apr 2002; Spider <spider@gentoo.org> + Update all glib dependencies to use glib-1.2* in preparation of + unmasking the glib-2.0.1 packages + +*wxPython-2.3.2.1 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest new file mode 100644 index 000000000000..dbe8cd6f198b --- /dev/null +++ b/dev-python/wxpython/Manifest @@ -0,0 +1,8 @@ +MD5 f84cf362662de7cdb23e3a1dfbfc9d34 wxpython-2.4.0.7.ebuild 3007 +MD5 8300434df8411b2e4c1e80178f355884 wxpython-2.4.1.2.ebuild 2371 +MD5 e4b8b593a689345109fec0a616cf60da ChangeLog 6318 +MD5 3b06f1e87549af51d78bb7bfa33728b5 metadata.xml 182 +MD5 e634fed41c2b3ad67209fa3eeb51b430 wxpython-2.4.2.4.ebuild 3350 +MD5 88f72c81ee2c594876b3bddc9e14bb72 files/digest-wxpython-2.4.0.7 73 +MD5 ce3003c042f7c8fe4700193e357ad2ad files/digest-wxpython-2.4.1.2 73 +MD5 d1efabd4c6bcd5edd9e61ca070e20ff0 files/digest-wxpython-2.4.2.4 73 diff --git a/dev-python/wxpython/files/digest-wxpython-2.4.0.7 b/dev-python/wxpython/files/digest-wxpython-2.4.0.7 new file mode 100644 index 000000000000..a10374ead06a --- /dev/null +++ b/dev-python/wxpython/files/digest-wxpython-2.4.0.7 @@ -0,0 +1 @@ +MD5 c7864b56ff1422697a310f91f54c7ed6 wxPythonSrc-2.4.0.7.tar.gz 11819092 diff --git a/dev-python/wxpython/files/digest-wxpython-2.4.1.2 b/dev-python/wxpython/files/digest-wxpython-2.4.1.2 new file mode 100644 index 000000000000..00b6ca04f3cc --- /dev/null +++ b/dev-python/wxpython/files/digest-wxpython-2.4.1.2 @@ -0,0 +1 @@ +MD5 515fa95c5c0497404a858213b6586411 wxPythonSrc-2.4.1.2.tar.gz 12443750 diff --git a/dev-python/wxpython/files/digest-wxpython-2.4.2.4 b/dev-python/wxpython/files/digest-wxpython-2.4.2.4 new file mode 100644 index 000000000000..a2e3b4a3aac2 --- /dev/null +++ b/dev-python/wxpython/files/digest-wxpython-2.4.2.4 @@ -0,0 +1 @@ +MD5 ea4eb68e10a0c2a9be643b35dcb78e41 wxPythonSrc-2.4.2.4.tar.gz 13130195 diff --git a/dev-python/wxpython/metadata.xml b/dev-python/wxpython/metadata.xml new file mode 100644 index 000000000000..1242997222b6 --- /dev/null +++ b/dev-python/wxpython/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +<herd>wxwindows</herd> +</pkgmetadata> diff --git a/dev-python/wxpython/wxpython-2.4.0.7.ebuild b/dev-python/wxpython/wxpython-2.4.0.7.ebuild new file mode 100644 index 000000000000..d64412cb093b --- /dev/null +++ b/dev-python/wxpython/wxpython-2.4.0.7.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.4.0.7.ebuild,v 1.1 2004/07/03 11:46:54 kloeri Exp $ + +IUSE="opengl gtk2" + +#MY_P="${P/-/Src-}" +MY_P="${P/wxpython-/wxPythonSrc-}" +S="${WORKDIR}/${MY_P}/wxPython" +DESCRIPTION="A blending of the wxWindows C++ class library with Python." +SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.gz" +HOMEPAGE="http://www.wxpython.org/" + +SLOT="0" +LICENSE="wxWinLL-3" +KEYWORDS="x86 ~ppc ~sparc ~alpha" + +DEPEND=">=dev-lang/python-2.1 + =x11-libs/wxGTK-2.4.0* + gtk2? ( + >=x11-libs/gtk+-2.0 + >=dev-libs/glib-2.0 ) + !gtk2? ( + =x11-libs/gtk+-1.2* + =dev-libs/glib-1.2* ) + opengl? ( >=dev-python/PyOpenGL-2.0.0.44 )" + +pkg_setup() { + # xfree should not install these, remove until the fixed + # xfree is in main use. + rm -f /usr/X11R6/include/{zconf.h,zlib.h} + + # make sure if you want gtk2, you have wxGTK with gtk2, and vice versa + if use gtk2; then + if [ ! -f "/usr/bin/wxgtk2u-2.4-config" -a ! -f "/usr/bin/wxgtk2-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with GTK+2 support." + eerror "Either emerge wxGTK with 'gtk2' in your USE flags or" + eerror "emerge wxPython without 'gtk2' in your USE flags." + die "wxGTK needs to be compiled with gtk2" + fi + else + if [ ! -f "/usr/bin/wxgtk-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with GTK+1." + eerror "Either emerge wxGTK without 'gtk2' in your USE flags or" + eerror "emerge wxPython with 'gtk2' in your USE flags." + die "wxGTK needs to be compiled without gtk2" + fi + fi +} + +src_compile() { + # create links so the build doesnt fail + for d in ogl stc xrc gizmos ; do + ln -s ${S}/../contrib/ ${S}/contrib/${d}/contrib + done + + #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} build || die "build failed" +} + +src_install() { + #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 +} diff --git a/dev-python/wxpython/wxpython-2.4.1.2.ebuild b/dev-python/wxpython/wxpython-2.4.1.2.ebuild new file mode 100644 index 000000000000..42d353cc060c --- /dev/null +++ b/dev-python/wxpython/wxpython-2.4.1.2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.4.1.2.ebuild,v 1.1 2004/07/03 11:46:54 kloeri Exp $ + +inherit eutils + +IUSE="opengl tiff jpeg png gtk2" + +MY_P="${P/wxpython-/wxPythonSrc-}" +S="${WORKDIR}/${MY_P}/wxPython" +DESCRIPTION="A blending of the wxWindows C++ class library with Python." +SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.gz" +HOMEPAGE="http://www.wxpython.org/" + +SLOT="0" +LICENSE="wxWinLL-3" +KEYWORDS="x86 ~ppc sparc ~alpha hppa" + +RDEPEND=">=dev-lang/python-2.1 + =x11-libs/wxGTK-2.4.1* + gtk2? ( >=x11-libs/gtk+-2.0 + >=x11-libs/pango-1.2 + >=dev-libs/glib-2.0 ) + !gtk2? ( =x11-libs/gtk+-1.2* + =dev-libs/glib-1.2* ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + tiff? ( media-libs/tiff ) + >=sys-libs/zlib-1.1.4 + opengl? ( >=dev-python/PyOpenGL-2.0.0.44 )" + +DEPEND="${RDEPEND} + gtk2? ( dev-util/pkgconfig )" + +pkg_setup() { + # make sure if you want gtk2, you have wxGTK with gtk2, and vice versa + if use gtk2; then + if [ ! -f "/usr/bin/wxgtk2u-2.4-config" -a ! -f "/usr/bin/wxgtk2-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with GTK+2 support." + eerror "Either emerge wxGTK with 'gtk2' in your USE flags or" + eerror "emerge wxPython without 'gtk2' in your USE flags." + die "wxGTK needs to be compiled with gtk2" + fi + else + if [ ! -f "/usr/bin/wxgtk-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with GTK+1." + eerror "Either emerge wxGTK without 'gtk2' in your USE flags or" + eerror "emerge wxPython with 'gtk2' in your USE flags." + die "wxGTK needs to be compiled without gtk2" + fi + fi +} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/controls2.py.patch +} + +src_compile() { + local mypyconf + + use opengl \ + && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ + || mypyconf="${mypyconf} BUILD_GLCANVAS=0" + + use gtk2 \ + && mypyconf="${mypyconf} WXPORT=gtk2" \ + || mypyconf="${mypyconf} WXPORT=gtk" + + python setup.py ${mypyconf} build || die "build failed" +} + +src_install() { + local mypyconf + + use opengl \ + && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ + || mypyconf="${mypyconf} BUILD_GLCANVAS=0" + + use gtk2 \ + && mypyconf="${mypyconf} WXPORT=gtk2" \ + || mypyconf="${mypyconf} WXPORT=gtk" + + python setup.py ${mypyconf} install --prefix=/usr --root=${D} || die +} diff --git a/dev-python/wxpython/wxpython-2.4.2.4.ebuild b/dev-python/wxpython/wxpython-2.4.2.4.ebuild new file mode 100644 index 000000000000..97d59055dca4 --- /dev/null +++ b/dev-python/wxpython/wxpython-2.4.2.4.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.4.2.4.ebuild,v 1.1 2004/07/03 11:46:54 kloeri Exp $ + +inherit eutils + +MY_P="${P/wxpython-/wxPythonSrc-}" +S="${WORKDIR}/${MY_P}/wxPython" +DESCRIPTION="A blending of the wxWindows C++ class library with Python" +HOMEPAGE="http://www.wxpython.org/" +SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.gz" + +LICENSE="wxWinLL-3" +SLOT="0" +KEYWORDS="x86 ppc ~sparc alpha arm ~amd64 ia64 hppa" +IUSE="opengl tiff jpeg png gtk2 unicode" + +RDEPEND=">=dev-lang/python-2.1 + >=x11-libs/wxGTK-2.4.2 + gtk2? ( >=x11-libs/gtk+-2.0 + >=x11-libs/pango-1.2 + >=dev-libs/glib-2.0 ) + !gtk2? ( =x11-libs/gtk+-1.2* + =dev-libs/glib-1.2* ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + tiff? ( media-libs/tiff ) + >=sys-libs/zlib-1.1.4 + opengl? ( >=dev-python/PyOpenGL-2.0.0.44 )" + +DEPEND="${RDEPEND} + gtk2? ( dev-util/pkgconfig )" + +pkg_setup() { + # make sure if you want gtk2, you have wxGTK with gtk2, and vice versa + if use gtk2; then + if [ ! -f "/usr/bin/wxgtk2u-2.4-config" -a ! -f "/usr/bin/wxgtk2ud-2.4-config" -a ! -f "/usr/bin/wxgtk2-2.4-config" -a ! -f "/usr/bin/wxgtk2d-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with GTK+2 support." + eerror "Either emerge wxGTK with 'gtk2' in your USE flags or" + eerror "emerge wxPython without 'gtk2' in your USE flags." + die "wxGTK needs to be compiled with gtk2" + fi + else + if [ ! -f "/usr/bin/wxgtk-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with GTK+1." + eerror "Either emerge wxGTK without 'gtk2' in your USE flags or" + eerror "emerge wxPython with 'gtk2' in your USE flags." + die "wxGTK needs to be compiled without gtk2" + fi + fi + + # make sure that wxPython and wxGTK have same unicode setting: + if use unicode; then + if [ ! -f "/usr/bin/wxgtk2u-2.4-config" -a ! -f "/usr/bin/wxgtk2ud-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled with Unicode support." + eerror "Either emerge wxGTK with 'unicode' in your USE flags or" + eerror "emerge wxPython without 'unicode' in your USE flags." + die "wxGTK needs to be compiled with unicode" + fi + else + if [ ! -f "/usr/bin/wxgtk-2.4-config" -a ! -f "/usr/bin/wxgtk2-2.4-config" -a ! -f "/usr/bin/wxgtkd-2.4-config" -a ! -f "/usr/bin/wxgtk2d-2.4-config" ]; then + eerror "You need x11-libs/wxGTK compiled without Unicode." + eerror "Either emerge wxGTK without 'unicode' in your USE flags or" + eerror "emerge wxPython with 'unicode' in your USE flags." + die "wxGTK needs to be compiled without unicode" + fi + fi + +} + +src_compile() { + local mypyconf + + use opengl \ + && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ + || mypyconf="${mypyconf} BUILD_GLCANVAS=0" + + use gtk2 \ + && mypyconf="${mypyconf} WXPORT=gtk2" \ + || mypyconf="${mypyconf} WXPORT=gtk" + + use unicode && mypyconf="${mypyconf} UNICODE=1" + + python setup.py ${mypyconf} build || die "build failed" +} + +src_install() { + local mypyconf + + use opengl \ + && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ + || mypyconf="${mypyconf} BUILD_GLCANVAS=0" + + use gtk2 \ + && mypyconf="${mypyconf} WXPORT=gtk2" \ + || mypyconf="${mypyconf} WXPORT=gtk" + + use unicode && mypyconf="${mypyconf} UNICODE=1" + + python setup.py ${mypyconf} install --prefix=/usr --root=${D} || die +} |