Ignore:
Timestamp:
Oct 21, 2014, 1:36:02 PM (4 years ago)
Author:
khindenburg@…
Message:

kdiff3: update to 0.9.98; add +kde; add maintainer #45420

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/kdiff3/Portfile

    r98183 r127111  
    77
    88name                kdiff3
    9 version             0.9.97
     9version             0.9.98
    1010categories          devel
    1111platforms           darwin
    12 maintainers         nomaintainer
     12maintainers         khindenburg openmaintainer
    1313license             GPL-2
    1414description         kdiff3 is a file comparing and merging tool.
     
    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
     31if {[variant_isset kde]} {
     32    PortGroup kde4 1.1
     33    depends_lib-append  port:kdelibs4
     34    post-destroot {
     35        ln -s ${applications_dir}/KDE4/${name}.app/Contents/MacOS/kdiff3 ${destroot}${prefix}/bin
     36    }
     37} else {
     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    }
    3344
    34 post-patch {
    35     reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/kdiff3.pro
    36 }
     45#    --disable-dependency-tracking is not recognized.
     46    configure.universal_args-delete --disable-dependency-tracking
    3747
    38 # --disable-dependency-tracking is not recognized.
    39 configure.universal_args-delete --disable-dependency-tracking
     48    pre-configure {
     49        configure.args-append CONFIG+=\"${qt_arch_types}\"
     50    }
    4051
    41 pre-configure {
    42     configure.args-append CONFIG+=\"${qt_arch_types}\"
    43 }
     52    configure.cmd       ${qt_qmake_cmd}
     53    configure.pre_args
     54    configure.post_args
    4455
    45 configure.cmd       ${qt_qmake_cmd}
    46 configure.pre_args   
    47 configure.post_args
     56    variant debug description \
     57    {Build both release and debug library} {}
    4858
    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\"
    54 } else {
    55     configure.args-append CONFIG+=\"release\"
     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
Note: See TracChangeset for help on using the changeset viewer.