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
    12# $Id$
    23
    34PortSystem      1.0
     
    34
    45name            py26-pyqt4
    5 version         4.5.1
     6version         4.5.2
    67categories      python devel
    78platforms       macosx
     
    1819                http://pyqwt.sourceforge.net/support/
    1920distname        PyQt-mac-gpl-${version}
    2021
    21 checksums md5    6183de3147c7b7ada195f98c781e09a9 \
    22           sha1   073d8a60079086ab3377a93e14acabeeba76004f \
    23           rmd160 5ce46cfbc2ba70f7c8d953f1999ae6e0f92b02b8
     22checksums md5    158a7a0804ce2fbc748a9a41105e34fe \
     23          sha1   4fa04583829927a6bacba90adb9fabee682b3a7b \
     24          rmd160 9a766254813bee83ccb923f4cae08dc084ee0927
    2425
    2526depends_lib     port:py26-sip port:qt4-mac
    2627
    27 #patchfiles     patch-configure.py
    28 
    2928set pyversion 2.6
    3029set qt_dir      ${prefix}/libexec/qt4-mac
    3130
     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
     33patchfiles      patch-configure.py
     34post-patch {
     35    reinplace "s|@@MACPORTS_PYTHON_FRAMEWORK@@|${frameworks_dir}/Python.framework/Versions/${pyversion}/Python|" ${worksrcpath}/configure.py
     36}
     37
    3238pre-configure {
    3339        file copy -force ${qt_dir}/mkspecs/macx-g++/qmake.conf \
    3440                ${worksrcpath}/qmake.conf
     
    4652configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
    4753
    4854build.target    all
     55use_parallel_build yes
    4956
    5057test.run        yes
    5158test.cmd        cd qt && ${prefix}/bin/python2.6 -c 'import PyQt4'