[22244] trunk/dports/python

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 23 10:55:53 PST 2007


Revision: 22244
          http://trac.macosforge.org/projects/macports/changeset/22244
Author:   jwa at macports.org
Date:     2007-02-23 10:55:53 -0800 (Fri, 23 Feb 2007)

Log Message:
-----------
adding wxPython depending on python 2.4 and wxWidgets 2.6.3 (the previous
stable releases of both)

Added Paths:
-----------
    trunk/dports/python/py-wxpython26/
    trunk/dports/python/py-wxpython26/Portfile
    trunk/dports/python/py-wxpython26/files/
    trunk/dports/python/py-wxpython26/files/patch-config.py

Added: trunk/dports/python/py-wxpython26/Portfile
===================================================================
--- trunk/dports/python/py-wxpython26/Portfile	                        (rev 0)
+++ trunk/dports/python/py-wxpython26/Portfile	2007-02-23 18:55:53 UTC (rev 22244)
@@ -0,0 +1,46 @@
+# $Id: Portfile 21580 2007-01-29 17:55:02Z jwa at macports.org $
+
+PortSystem 1.0
+
+name			py-wxpython26
+version			2.6.3.3
+categories		python graphics
+platforms		darwin
+maintainers		mww at macports.org jwa at macports.org
+description		Python interface to the wxWindows cross platform GUI
+long_description	wxPython is a GUI toolkit for the Python programming \
+			language. It allows Python programmers to create \
+			programs with a robust, highly functional graphical \
+			user interface, simply and easily. It is implemented \
+			as a Python extension module (native code) that wraps \
+			the popular wxWindows cross platform GUI library, \
+			which is written in C++.
+
+homepage		http://www.wxpython.org/
+master_sites		sourceforge:wxpython
+distname		wxPython-src-${version}
+use_bzip2		yes
+checksums		sha1 e55a3a8cfbd1aff394be15297ae205a8c597bed8
+patchfiles		patch-config.py
+
+depends_lib		port:python24 port:wxWidgets26
+
+worksrcdir		${distname}/wxPython
+
+extract.post_args	"| tar -xf - ${worksrcdir} ${distname}/docs"
+
+use_configure	no
+
+build.env		WX_CONFIG="${prefix}/bin/wx-config" UNICODE="1" WXPORT="mac"
+build.cmd		${prefix}/bin/python2.4 setup.py
+build.target		build
+
+destroot.cmd		${build.cmd}
+destroot.destdir	--prefix=${prefix} --root=${destroot}
+
+post-destroot {
+	xinstall -d -m 755 ${destroot}${prefix}/share/doc/
+	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
+	file copy ${worksrcpath}/samples \
+		${destroot}${prefix}/share/doc/${name}/examples
+}

Added: trunk/dports/python/py-wxpython26/files/patch-config.py
===================================================================
--- trunk/dports/python/py-wxpython26/files/patch-config.py	                        (rev 0)
+++ trunk/dports/python/py-wxpython26/files/patch-config.py	2007-02-23 18:55:53 UTC (rev 22244)
@@ -0,0 +1,20 @@
+--- config.py	2005-06-04 18:23:06.000000000 +0200
++++ config.py	2005-07-08 16:51:30.000000000 +0200
+@@ -107,7 +107,7 @@
+                    # cause the two strings to be combined and output
+                    # as the full docstring.
+ 
+-UNICODE = 0        # This will pass the 'wxUSE_UNICODE' flag to SWIG and
++UNICODE = 1        # This will pass the 'wxUSE_UNICODE' flag to SWIG and
+                    # will ensure that the right headers are found and the
+                    # right libs are linked.
+ 
+@@ -762,7 +762,7 @@
+         cflags.append('-g')
+         cflags.append('-O0')
+     else:
+-        cflags.append('-O3')
++        cflags.append('-O2')
+ 
+     lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
+     lflags = lflags.split()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070223/e228f058/attachment.html


More information about the macports-changes mailing list