Skip to content
Permalink
Browse files

Fix build issues:

* Force to link against the MacPorts Python framework using the -F
  linker argument.
* Add a test to try to import the qt module.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@20263 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
blair committed Oct 31, 2006
1 parent 7b9e997 commit 72489f4d58569f8dcad6f0bc8c0114b1bd325106
Showing with 8 additions and 1 deletion.
  1. +8 −1 python/py-pyqt3/Portfile
@@ -3,6 +3,7 @@
PortSystem 1.0
name py-pyqt3
version 3.16
revision 1
platforms macosx
categories python devel
maintainers darwinports@opendarwin.org
@@ -15,7 +16,9 @@ homepage http://www.riverbankcomputing.co.uk/pyqt/index.php
master_sites http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/
distname PyQt-mac-gpl-${version}

checksums md5 46deec16bad11e3f216b19fd5e3d1f9b
checksums md5 46deec16bad11e3f216b19fd5e3d1f9b \
sha1 cae4a74fe2ee23a427a94e9ec3ab17d8f56018a7 \
rmd160 8bd8c70bf3737988ed0570de140a48b66ce0ec22

depends_lib port:py-sip \
port:qt3-mac
@@ -33,6 +36,10 @@ pre-configure {
configure.cmd "echo yes | ${prefix}/bin/python configure.py \
-g ${prefix}/include/qt3 -q ${prefix} -y qt-mt"
configure.pre_args
configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"

test.run yes
test.cmd cd qt && ${prefix}/bin/python2.4 -c 'import qt'

post-destroot {
xinstall -m 755 -d ${destroot}/${prefix}/share/doc

0 comments on commit 72489f4

Please sign in to comment.
You can’t perform that action at this time.