[37582] trunk/dports/python

saispo at macports.org saispo at macports.org
Sat Jun 14 02:27:23 PDT 2008


Revision: 37582
          http://trac.macosforge.org/projects/macports/changeset/37582
Author:   saispo at macports.org
Date:     2008-06-14 02:27:22 -0700 (Sat, 14 Jun 2008)

Log Message:
-----------
Build pyqt4 for Python 2.5

Added Paths:
-----------
    trunk/dports/python/py25-pyqt4/
    trunk/dports/python/py25-pyqt4/Portfile
    trunk/dports/python/py25-pyqt4/files/
    trunk/dports/python/py25-pyqt4/files/patch-configure.py

Added: trunk/dports/python/py25-pyqt4/Portfile
===================================================================
--- trunk/dports/python/py25-pyqt4/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-pyqt4/Portfile	2008-06-14 09:27:22 UTC (rev 37582)
@@ -0,0 +1,55 @@
+PortSystem	1.0
+# PortGroup         python25 1.0
+
+name		py25-pyqt4
+version		4.4.2
+platforms	macosx
+categories	python devel
+maintainers     saispo at macports.org
+description	PyQt4 is a set of Python bindings for the Qt4 toolkit
+long_description \
+		PyQt4 is a set of Python bindings for the Qt4 toolkit. The \
+		bindings are implemented as a set of Python modules: qt, \
+		qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, \
+		and contains 300 classes and over 5,750 functions and methods.
+homepage	http://www.riverbankcomputing.co.uk/pyqt/index.php
+master_sites	http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
+		http://pyqwt.sourceforge.net/support/
+distname	PyQt-mac-gpl-${version}
+
+checksums	md5 d9ee5b863513e27799898fcd543a4443 \
+		sha1 88e4ac07af67726f38d8c9ff5a5014c153da48f3 \
+		rmd160 24eb43818e28230258edf6e665b2fbe92b240343
+
+depends_lib	port:py25-sip port:qt4-mac
+
+#patchfiles	patch-configure.py
+
+pre-configure {
+	file copy -force ${prefix}/share/qt4-mac/mkspecs/macx-g++/qmake.conf \
+		${worksrcpath}/qmake.conf
+
+	reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \
+		${worksrcpath}/qmake.conf
+}
+
+configure.cmd	"${prefix}/bin/python2.5 configure.py \
+		-g -q ${prefix}/bin/qmake \
+		--confirm-license"
+configure.pre_args
+configure.post_args	LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
+
+test.run	yes
+test.cmd	cd qt && ${prefix}/bin/python2.5 -c 'import PyQt4'
+
+post-destroot {
+	xinstall -m 755 -d ${destroot}${prefix}/share/doc
+	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+	file copy ${worksrcpath}/examples \
+		${destroot}${prefix}/share/doc/${name}
+	xinstall -m 644 -W ${worksrcpath} \
+		ChangeLog GPL_EXCEPTION.TXT GPL_EXCEPTION_ADDENDUM.TXT \
+		LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT NEWS README \
+		THANKS \
+		${destroot}${prefix}/share/doc/${name}
+}

Added: trunk/dports/python/py25-pyqt4/files/patch-configure.py
===================================================================
--- trunk/dports/python/py25-pyqt4/files/patch-configure.py	                        (rev 0)
+++ trunk/dports/python/py25-pyqt4/files/patch-configure.py	2008-06-14 09:27:22 UTC (rev 37582)
@@ -0,0 +1,22 @@
+--- configure.py.orig	2006-03-24 19:09:08.000000000 -0500
++++ configure.py	2006-04-19 06:05:07.000000000 -0400
+@@ -253,6 +253,7 @@
+             0x030200: "Qt_3_1_2",
+             0x030300: "Qt_3_2_0",
+             0x030305: "Qt_3_3_0",
++            0x030304: "Qt_3_3_4",
+             0x030306: "Qt_3_3_5",
+             0x040000: "Qt_3_3_6"
+         }
+@@ -1026,9 +1027,9 @@
+     """
+     # Get the name of the qmake configuration file to take the macros from.
+     if "QMAKESPEC" in os.environ.keys():
+-        fname = os.path.join(qt_dir, "mkspecs", os.environ["QMAKESPEC"], "qmake.conf")
++        fname = "qmake.conf"
+     else:
+-        fname = os.path.join(qt_dir, "mkspecs", "default", "qmake.conf")
++        fname = "qmake.conf"
+ 
+         if not os.access(fname, os.F_OK):
+             sipconfig.error("Unable to find the default configuration file %s. You can use the QMAKESPEC environment variable to specify the correct platform instead of \"default\"." % fname)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080614/f79c1519/attachment.htm 


More information about the macports-changes mailing list