Ticket #27261: py-pyqt4_Portfile_2.8.1_ccache.diff

File py-pyqt4_Portfile_2.8.1_ccache.diff, 1.5 KB (added by michaelld (Michael Dickens), 13 years ago)

"svn diff" in 'py-pyqt4' Portfile: bump to 2.8.1 and add ccache support

  • Portfile

     
    55PortGroup   qt4 1.0
    66
    77name            py-pyqt4
    8 version         4.7.7
    9 revision    1
     8version         4.8.1
    109platforms       macosx
    1110categories      python devel
    1211maintainers     gmail.com:tim.stoop
     
    2120                http://pyqwt.sourceforge.net/support/
    2221distname        PyQt-mac-gpl-${version}
    2322
    24 checksums           md5     18213126857b7c6e6da6f7a1720d4870 \
    25                     sha1    e07f851b54fa5cf6ec3e146f07b1c234c5069ca3 \
    26                     rmd160  fe1a01ce93a012224a4c590b56dc3bfa8fcdbe74
     23checksums           md5     177fa10c6420d6f7fc745478fa64304a \
     24                    sha1    55a448993fc011f886fd2d375e0748d1baae39eb \
     25                    rmd160  517cf7c3ac589b962a47dfa9410683f135e9b980
    2726
    2827depends_lib-append port:py-sip
    2928
     
    3534
    3635        reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \
    3736                ${worksrcpath}/qmake.conf
     37
     38    # allow ccache, if specified by the user
     39    if {[tbool configure.ccache]} {
     40        configure.env-append "CCACHE=ccache"
     41    }
    3842}
    3943
    4044configure.cmd   "${prefix}/bin/python2.4 configure.py \
     
    4347configure.pre_args
    4448configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
    4549
     50# allow ccache, if specified by the user
     51pre-build {
     52    if {[tbool configure.ccache]} {
     53        build.post_args "CCACHE=ccache"
     54    }
     55}
     56
    4657test.run        yes
    4758test.cmd        cd qt && ${prefix}/bin/python2.4 -c 'import PyQt4'
    4859