Ticket #50094: kompare.diff

File kompare.diff, 1.3 KB (added by RJVB (René Bertin), 9 years ago)
  • kde/kompare/Portfile

    old new  
    33
    44PortSystem          1.0
    55PortGroup           kde4   1.1
     6PortGroup           conflicts_build 1.0
    67
    78name                kompare
    89version             4.14.3
    9 revision            1
     10revision            2
    1011categories          kde kde4
    1112license             GPL-2+ LGPL-2+
    1213maintainers         nicos openmaintainer
     
    3233    patchfiles      patch-CMakeLists.diff
    3334}
    3435
     36configure.args-append \
     37                    -DINCLUDE_INSTALL_DIR=${kde4.include_dirs}
     38
     39variant kf5compat description {satisfies runtime dependencies only so port:kf5-kompare and port:kompare can co-exist} {
     40    kde4.use_legacy_prefix
     41    post-destroot {
     42        kde4.restore_from_legacy_prefix
     43        # prune the share directory
     44        file delete -force ${destroot}${prefix}/share/doc
     45        file delete -force ${destroot}${prefix}/share/icons
     46    }
     47}
     48if {![variant_isset kf5compat]} {
     49    conflicts       port:kf5-kompare
     50}
     51conflicts_build-append \
     52                    port:kf5-libkomparediff2
     53
    3554pre-activate {
    3655    #Deactivate hack for when kdesdk4 port has been fragmented into small ports
    3756    if {[file exists ${prefix}/bin/kdedoc]