Ticket #20184: Portfile.diff
File Portfile.diff, 1.7 KB (added by dh@…, 15 years ago) |
---|
-
Portfile
1 # -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 … … 3 4 4 5 name py26-pyqt4 5 version 4.5. 16 version 4.5.2 6 7 categories python devel 7 8 platforms macosx … … 18 19 http://pyqwt.sourceforge.net/support/ 19 20 distname PyQt-mac-gpl-${version} 20 21 21 checksums md5 6183de3147c7b7ada195f98c781e09a9\22 sha1 073d8a60079086ab3377a93e14acabeeba76004f\23 rmd160 5ce46cfbc2ba70f7c8d953f1999ae6e0f92b02b822 checksums md5 158a7a0804ce2fbc748a9a41105e34fe \ 23 sha1 4fa04583829927a6bacba90adb9fabee682b3a7b \ 24 rmd160 9a766254813bee83ccb923f4cae08dc084ee0927 24 25 25 26 depends_lib port:py26-sip port:qt4-mac 26 27 27 #patchfiles patch-configure.py28 29 28 set pyversion 2.6 30 29 set qt_dir ${prefix}/libexec/qt4-mac 31 30 31 # The patch file alters configure.py so that the qtdesigner plugin can link. 32 # - it ensures that both LFLAGS are included and that the relevant version framework is linked 33 patchfiles patch-configure.py 34 post-patch { 35 reinplace "s|@@MACPORTS_PYTHON_FRAMEWORK@@|${frameworks_dir}/Python.framework/Versions/${pyversion}/Python|" ${worksrcpath}/configure.py 36 } 37 32 38 pre-configure { 33 39 file copy -force ${qt_dir}/mkspecs/macx-g++/qmake.conf \ 34 40 ${worksrcpath}/qmake.conf … … 46 52 configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib" 47 53 48 54 build.target all 55 use_parallel_build yes 49 56 50 57 test.run yes 51 58 test.cmd cd qt && ${prefix}/bin/python2.6 -c 'import PyQt4'