wxPython done properly (without wxGTK)
authorMike Frysinger <vapier@gentoo.org>
Wed, 30 Oct 2002 18:29:35 +0000 (18:29 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Oct 2002 18:29:35 +0000 (18:29 +0000)
dev-python/wxPython/ChangeLog
dev-python/wxPython/files/digest-wxPython-2.3.3.1-r2 [new file with mode: 0644]
dev-python/wxPython/files/wxPython-2.3.3.1-noglcanvas.diff [new file with mode: 0644]
dev-python/wxPython/wxPython-2.3.3.1-r2.ebuild [new file with mode: 0644]

index 16734f569c6db7d5d8343de81384169be5ee96cd..f60b4d440b4e1ddd9e77884ef5917d54e3e92963 100644 (file)
@@ -1,10 +1,16 @@
 # 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.11 2002/10/29 18:17:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/ChangeLog,v 1.12 2002/10/30 18:29:35 vapier Exp $
 
-*wxPython-2.3.3.1-r1 (28 Oct 2002)
+*wxPython-2.3.3.1-r2 (30 Oct 2002)
 
-  28 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+  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)
diff --git a/dev-python/wxPython/files/digest-wxPython-2.3.3.1-r2 b/dev-python/wxPython/files/digest-wxPython-2.3.3.1-r2
new file mode 100644 (file)
index 0000000..d8ba57c
--- /dev/null
@@ -0,0 +1 @@
+MD5 ba09626f1ff92304677a473b870bcb24 wxPythonSrc-2.3.3.1.tar.gz 11143374
diff --git a/dev-python/wxPython/files/wxPython-2.3.3.1-noglcanvas.diff b/dev-python/wxPython/files/wxPython-2.3.3.1-noglcanvas.diff
new file mode 100644 (file)
index 0000000..0c9462e
--- /dev/null
@@ -0,0 +1,93 @@
+diff -urN wxPython-2.3.2.1/setup.py wxPython-2.3.2.1-modified/setup.py
+--- wxPython-2.3.2.1/setup.py  Thu Dec 20 11:33:42 2001
++++ wxPython-2.3.2.1-modified/setup.py Thu Aug 22 14:04:04 2002
+@@ -28,7 +28,7 @@
+ """
+ 
+ 
+-BUILD_GLCANVAS = 1 # If true, build the contrib/glcanvas extension module
++BUILD_GLCANVAS = 0 # If true, build the contrib/glcanvas extension module
+ BUILD_OGL = 1      # If true, build the contrib/ogl extension module
+ BUILD_STC = 1      # If true, build the contrib/stc extension module
+ BUILD_XRC = 1      # XML based resource system
+@@ -500,43 +500,43 @@
+ #----------------------------------------------------------------------
+ # Define the GLCanvas extension module
+ #----------------------------------------------------------------------
+-
+-CTRB_SRC =  opj(WXDIR, 'contrib/src')
+-CTRB_INC =  opj(WXDIR, 'contrib/include/wx')
+-
+-if BUILD_GLCANVAS or GL_ONLY:
+-    msg('Preparing GLCANVAS...')
+-    location = 'contrib/glcanvas'
+-    swig_files = ['glcanvas.i']
+-    other_sources = []
+-
+-    swig_sources = run_swig(swig_files, location, GENDIR, PKGDIR,
+-                            USE_SWIG, swig_force, swig_args, swig_deps)
+-
+-    gl_libs = []
+-    if os.name == 'posix':
+-        gl_config = os.popen(WX_CONFIG + ' --gl-libs', 'r').read()[:-1]
+-        gl_lflags = string.split(gl_config) + lflags
+-        gl_libs = libs
+-    else:
+-        other_sources = [opj(location, 'msw/myglcanvas.cpp')]
+-        gl_libs = libs + ['opengl32', 'glu32']
+-        gl_lflags = lflags
+-
+-    ext = Extension('glcanvasc',
+-                    swig_sources + other_sources,
+-
+-                    include_dirs = includes,
+-                    define_macros = defines,
+-
+-                    library_dirs = libdirs,
+-                    libraries = gl_libs,
+-
+-                    extra_compile_args = cflags,
+-                    extra_link_args = gl_lflags,
+-                    )
+-
+-    wxpExtensions.append(ext)
++#
++#CTRB_SRC =  opj(WXDIR, 'contrib/src')
++#CTRB_INC =  opj(WXDIR, 'contrib/include/wx')
++#
++#if BUILD_GLCANVAS or GL_ONLY:
++#    msg('Preparing GLCANVAS...')
++#    location = 'contrib/glcanvas'
++#    swig_files = ['glcanvas.i']
++#    other_sources = []
++#
++#    swig_sources = run_swig(swig_files, location, GENDIR, PKGDIR,
++#                            USE_SWIG, swig_force, swig_args, swig_deps)
++#
++#    gl_libs = []
++#    if os.name == 'posix':
++#        gl_config = os.popen(WX_CONFIG + ' --gl-libs', 'r').read()[:-1]
++#        gl_lflags = string.split(gl_config) + lflags
++#        gl_libs = libs
++#    else:
++#        other_sources = [opj(location, 'msw/myglcanvas.cpp')]
++#        gl_libs = libs + ['opengl32', 'glu32']
++#        gl_lflags = lflags
++#
++#    ext = Extension('glcanvasc',
++#                    swig_sources + other_sources,
++#
++#                    include_dirs = includes,
++#                    define_macros = defines,
++#
++#                    library_dirs = libdirs,
++#                    libraries = gl_libs,
++#
++#                    extra_compile_args = cflags,
++#                    extra_link_args = gl_lflags,
++#                    )
++#
++#    wxpExtensions.append(ext)
+ 
+ 
+ #----------------------------------------------------------------------
diff --git a/dev-python/wxPython/wxPython-2.3.3.1-r2.ebuild b/dev-python/wxPython/wxPython-2.3.3.1-r2.ebuild
new file mode 100644 (file)
index 0000000..cca5aea
--- /dev/null
@@ -0,0 +1,54 @@
+# 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.3.1-r2.ebuild,v 1.1 2002/10/30 18:29:35 vapier Exp $
+
+IUSE="opengl"
+
+MY_P="${P/-/Src-}"
+S="${WORKDIR}/${MY_P}/${PN}"
+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/"
+
+DEPEND=">=dev-lang/python-2.1
+        =dev-libs/glib-1.2*
+        =x11-libs/gtk+-1.2*
+        =x11-libs/wxGTK-2.3.3*
+        opengl? ( >=dev-python/PyOpenGL-2.0.0.44 )"
+
+SLOT="0"
+LICENSE="LGPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
+
+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}
+}
+
+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"
+               patch -p1 < ${FILESDIR}/${P}-noglcanvas.diff || die "patch failed"
+       fi
+
+       python setup.py ${myconf} build || die
+}
+
+src_install() {
+       python setup.py install --prefix=/usr --root=${D} || die
+}