[72201] trunk/dports/python

blair at macports.org blair at macports.org
Wed Oct 6 13:08:55 PDT 2010


Revision: 72201
          http://trac.macports.org/changeset/72201
Author:   blair at macports.org
Date:     2010-10-06 13:08:51 -0700 (Wed, 06 Oct 2010)
Log Message:
-----------
New port for building PyQt3 on 10.5 using Python 2.6.  It is copied
from py-sip at 36385 and updated to use Python 2.6.  It is not meant to
coexist with PyQt 4.

We need this because our company still has some applications on PyQt3
that will not be ported to PyQt4 in the near future.  We also want to
update to a Python newer than 2.4 and run the apps on 10.6, so we're
building MacPorts on 10.5 and rsync'ing the MacPorts install to our
10.6 systems.

Modified Paths:
--------------
    trunk/dports/python/py26-sip-qt3/Portfile

Added Paths:
-----------
    trunk/dports/python/py26-sip-qt3/

Modified: trunk/dports/python/py26-sip-qt3/Portfile
===================================================================
--- trunk/dports/python/py-sip/Portfile	2008-04-29 08:13:28 UTC (rev 36385)
+++ trunk/dports/python/py26-sip-qt3/Portfile	2010-10-06 20:08:51 UTC (rev 72201)
@@ -2,17 +2,20 @@
 
 PortSystem 1.0
 
-name			py-sip
+name			py26-sip-qt3
 version			4.7.4
 categories		python devel
-maintainers		blair openmaintainer
+maintainers		blair
+platforms		macosx
 description		create Python bindings for C and C++ libraries
-long_description	SIP is a tool that makes it very easy to create \
-				Python bindings for C and C++ libraries. \
-				It was originally developed to create PyQt, \
-				the Python bindings for the Qt toolkit, \
-				but can be used to create bindings for any \
-				C or C++ library.
+long_description	This version of SIP is for building py26-pyqt3 on \
+			Mac OS X 10.6.  This port not meant to coexist with \
+			py26-sip for Qt4.  SIP is a tool that makes it very \
+			easy to create Python bindings for C and C++ \
+			libraries.  It was originally developed to create \
+			PyQt, the Python bindings for the Qt toolkit, but \
+			can be used to create bindings for any C or C++ \
+			library.
 
 homepage	http://www.riverbankcomputing.co.uk/sip/
 master_sites	http://www.riverbankcomputing.com/static/Downloads/sip4/ \
@@ -26,25 +29,26 @@
 		rmd160 8682a1e5cbf0f8b42f3ebe99d4b9e0b363ce8034
 dist_subdir	python
 
-depends_lib	port:python24
+conflicts	py26-sip
+depends_lib	port:python26 port:python_select
 
 patchfiles      patch-siputils.py.diff
 
-configure.cmd	${prefix}/bin/python2.4 configure.py
-configure.pre_args  -d ${prefix}/lib/python2.4/site-packages \
-				-e ${prefix}/include/python2.4 \
+configure.cmd	${prefix}/bin/python2.6 configure.py
+configure.pre_args  -d ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages \
+				-e ${prefix}/include/python2.6 \
 				-v ${prefix}/share/sip \
 				-p macx-g++
 configure.post_args	LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
 
 test.run	yes
-test.cmd	cd siplib && ${prefix}/bin/python2.4 -c 'import sip'
+test.cmd	cd siplib && ${prefix}/bin/python2.6 -c 'import sip'
 
 post-destroot {
 	xinstall -m 755 -d ${destroot}${prefix}/share/doc
 	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
 	xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README THANKS TODO \
 		${destroot}${prefix}/share/doc/${name}
-	system "${prefix}/bin/python2.4 ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py ${destroot}${prefix}"
-	system "${prefix}/bin/python2.4 -O ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py ${destroot}${prefix}"
+	system "${prefix}/bin/python2.6 ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py ${destroot}${prefix}"
+	system "${prefix}/bin/python2.6 -O ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py ${destroot}${prefix}"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101006/a07961ec/attachment.html>


More information about the macports-changes mailing list