Ticket #45420: kdiff3-diff.patch

File kdiff3-diff.patch, 2.6 KB (added by RJVB (René Bertin), 10 years ago)
  • Portfile

    old new  
    66PortGroup           qt4 1.0
    77
    88name                kdiff3
    9 version             0.9.97
     9version             0.9.98
    1010categories          devel
    1111platforms           darwin
    1212maintainers         nomaintainer
     
    2222homepage            http://kdiff3.sourceforge.net/
    2323master_sites        sourceforge:project/kdiff3/kdiff3/${version}
    2424
    25 checksums           rmd160 cbbac8e0ad39fa3a2403199ceaac6239de94b83e \
    26                     sha256 e3b716bb449c814d8c30817ec1ca23fba0ed9eee5a635e766c1f2b90ddb75a2a
     25checksums           rmd160 17fc05df3fd8f052e2010834ba8efe2481e4f434 \
     26                    sha256 802c1ababa02b403a5dca15955c01592997116a24909745016931537210fd668
    2727
    28 set worksrcpath     ${worksrcpath}/src-QT4
    2928
    30 minimum_xcodeversions {9 3.1}
     29variant kde description {Build the KDE version} {}
    3130
    32 patchfiles patch-src-QT4-kdiff3.pro.diff
    33 
    34 post-patch {
    35     reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/kdiff3.pro
    36 }
    37 
    38 # --disable-dependency-tracking is not recognized.
    39 configure.universal_args-delete --disable-dependency-tracking
    40 
    41 pre-configure {
    42     configure.args-append CONFIG+=\"${qt_arch_types}\"
    43 }
    44 
    45 configure.cmd       ${qt_qmake_cmd}
    46 configure.pre_args   
    47 configure.post_args
    48 
    49 variant debug description \
    50 {Build both release and debug library} {}
    51 
    52 if {[variant_isset debug]} {
    53     configure.args-append CONFIG+=\"debug_and_release build_all\"
     31if {[variant_isset kde]} {
     32    PortGroup kde4 1.1
     33    depends_lib-append  port:kdelibs4
     34    post-destroot {
     35        ln -s /Applications/MacPorts/KDE4/kdiff3.app/Contents/MacOS/kdiff3 ${destroot}/opt/local/bin
     36    }
    5437} else {
    55     configure.args-append CONFIG+=\"release\"
     38    set worksrcpath     ${worksrcpath}/src-QT4
     39    minimum_xcodeversions {9 3.1}
     40    patchfiles patch-src-QT4-kdiff3.pro.diff
     41    post-patch {
     42        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/kdiff3.pro
     43    }
     44
     45#    --disable-dependency-tracking is not recognized.
     46    configure.universal_args-delete --disable-dependency-tracking
     47
     48    pre-configure {
     49        configure.args-append CONFIG+=\"${qt_arch_types}\"
     50    }
     51
     52    configure.cmd       ${qt_qmake_cmd}
     53    configure.pre_args   
     54    configure.post_args
     55
     56    variant debug description \
     57    {Build both release and debug library} {}
     58
     59    if {[variant_isset debug]} {
     60        configure.args-append CONFIG+=\"debug_and_release build_all\"
     61    } else {
     62        configure.args-append CONFIG+=\"release\"
     63    }
    5664}
    5765
    5866livecheck.type      regex