wxpython-py stable port information

Info2: <<
# nieder: Do not update. Newer versions are in the wxgtk2.8-py package
Package: wxpython-py%type_pkg[python]
Version: 2.5.2.8
Revision: 1004
Distribution: (%type_pkg[python] = 24) 10.5
Type: python (2.4)
Maintainer: None
BuildDepends: <<
atk1 (>= 1.20.0-1),
cairo (>= 1.6-1),
expat1,
fink (>= 0.24.12-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.5-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.14.0-1),
glitz,
gtk+2-dev (>= 2.12.0-1),
libgettext3-dev,
libgl,
libiconv-dev,
libjpeg,
libpng3,
libtiff,
pango1-xft2-ft219-dev (>= 1.18.4-4),
pixman (>= 0.10.0-1),
pkgconfig (>= 0.21-1),
wxgtk (<< 2.5.2.9-1),
wxgtk (>= %v-1003),
x11-dev,
xft2-dev
<<
Depends: <<
atk1-shlibs (>= 1.20.0-1),
expat1-shlibs,
gtk+2-shlibs (>= 2.12.0-1),
libgettext3-shlibs,
libjpeg-shlibs,
libpng3-shlibs,
libtiff-shlibs,
python%type_pkg[python],
wxgtk-shlibs (<< 2.5.2.9-1),
wxgtk-shlibs (>= %v-1003)
<<
Source: mirror:sourceforge:wxpython/wxPythonSrc-%v.tar.gz
Source-MD5: 573fd376fd39b66ad5fbf44b487aa0b2
SourceDirectory: wxPythonSrc-%v/wxPython
GCC: 4.0
PatchFile: %{ni}.patch
PatchFile-MD5: 2ef191f35074ec5869d51b5707bd86c2
SetLDFLAGS: -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0
CompileScript: <<
#!/bin/sh -ev
export CC=g++ PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
%p/bin/python%type_raw[python] setup.py WXPORT=gtk2 UNICODE=0 NO_SCRIPTS=1 WX_CONFIG=%p/bin/wxgtk2d-2.5-config build
<<
InstallScript: <<
#!/bin/sh -ev
export CC=g++
%p/bin/python%type_raw[python] setup.py WXPORT=gtk2 UNICODE=0 NO_SCRIPTS=1 WX_CONFIG=%p/bin/wxgtk2d-2.5-config install --root=%d
mkdir -p %i/share/doc/%n
cp -R demo %i/share/doc/%n
cp -R samples %i/share/doc/%n
<<
SplitOff: <<
Package: wxpython-py%type_pkg[python]-dev
Conflicts: wxpython-py22-dev, wxpython-py23-dev, wxpython-py24-dev
Replaces: wxpython-py22-dev, wxpython-py23-dev, wxpython-py24-dev
Depends: wxpython-py%type_pkg[python] (= %v-%r)
Files: include/wx-2.5/wx/wxPython
DocFiles: ../docs/preamble.txt ../docs/gpl.txt ../docs/licence.txt ../docs/lgpl.txt docs/*.*
<<
Description: WxWindows library devdings for Python
DocFiles: ../docs/preamble.txt ../docs/gpl.txt ../docs/licence.txt ../docs/lgpl.txt docs/*.*
License: GPL
Homepage: http://www.wxpython.org/

<<

wxpython-py stable port .patch

--- wxPython/config.py 2004-08-27 14:53:18.000000000 -0400
+++ wxPython/config.py 2007-03-12 15:44:24.000000000 -0400
@@ -664,40 +664,31 @@
WXPREFIX = os.popen(WX_CONFIG + ' --prefix').read()[:-1]


- if sys.platform[:6] == "darwin":
- # Flags and such for a Darwin (Max OS X) build of Python
- WXPLAT = '__WXMAC__'
- GENDIR = 'mac'
- libs = ['stdc++']
- NO_SCRIPTS = 1
-
+ # Set flags for other Unix type platforms
+ GENDIR = WXPORT

+ if WXPORT == 'gtk':
+ WXPLAT = '__WXGTK__'
+ portcfg = os.popen('gtk-config --cflags', 'r').read()[:-1]
+ elif WXPORT == 'gtk2':
+ WXPLAT = '__WXGTK__'
+ GENDIR = 'gtk' # no code differences so use the same generated sources
+ portcfg = os.popen('pkg-config gtk+-2.0 --cflags', 'r').read()[:-1]
+ BUILD_BASE = BUILD_BASE + '-' + WXPORT
+ elif WXPORT == 'x11':
+ WXPLAT = '__WXX11__'
+ portcfg = ''
+ BUILD_BASE = BUILD_BASE + '-' + WXPORT
else:
- # Set flags for other Unix type platforms
- GENDIR = WXPORT
-
- if WXPORT == 'gtk':
- WXPLAT = '__WXGTK__'
- portcfg = os.popen('gtk-config --cflags', 'r').read()[:-1]
- elif WXPORT == 'gtk2':
- WXPLAT = '__WXGTK__'
- GENDIR = 'gtk' # no code differences so use the same generated sources
- portcfg = os.popen('pkg-config gtk+-2.0 --cflags', 'r').read()[:-1]
- BUILD_BASE = BUILD_BASE + '-' + WXPORT
- elif WXPORT == 'x11':
- WXPLAT = '__WXX11__'
- portcfg = ''
- BUILD_BASE = BUILD_BASE + '-' + WXPORT
- else:
- raise SystemExit, "Unknown WXPORT value: " + WXPORT
+ raise SystemExit, "Unknown WXPORT value: " + WXPORT

- cflags += portcfg.split()
+ cflags += portcfg.split()

- # Some distros (e.g. Mandrake) put libGLU in /usr/X11R6/lib, but
- # wx-config doesn't output that for some reason. For now, just
- # add it unconditionally but we should really check if the lib is
- # really found there or wx-config should be fixed.
- libdirs.append("/usr/X11R6/lib")
+ # Some distros (e.g. Mandrake) put libGLU in /usr/X11R6/lib, but
+ # wx-config doesn't output that for some reason. For now, just
+ # add it unconditionally but we should really check if the lib is
+ # really found there or wx-config should be fixed.
+ libdirs.append("/usr/X11R6/lib")


# Move the various -I, -D, etc. flags we got from the *config scripts
@@ -705,7 +696,6 @@
cflags = adjustCFLAGS(cflags, defines, includes)
lflags = adjustLFLAGS(lflags, libdirs, libs)

-
#----------------------------------------------------------------------
else:
raise 'Sorry, platform not supported...'

wxpython-py _unstable_ port .patch