Ticket #50094: Portfile.kompare

File Portfile.kompare, 1.8 KB (added by RJVB (René Bertin), 9 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6
7set kf5.project     kompare
8set kf5.virtualPath applications
9set kf5.category    development
10PortGroup           kf5 1.1
11
12maintainers         gmail.com:rjvbertin mk openmaintainer
13
14installs_libs       yes
15
16description         KDE Diff viewer
17long_description    Kompare is a GUI front-end program that enables differences \
18                    between source files to be viewed and merged. It can be used \
19                    to compare differences on files or the contents of folders.
20checksums           rmd160  405d5dba5fc32eed1abd43314fed9fced16beaeb \
21                    sha256  d1158798937019845905cb419683e366f383ece9b0db64b88df2b8ffb17c71b3
22
23kf5.depends_frameworks \
24                    kcoreaddons kcodecs kconfig kdoctools \
25                    kiconthemes kjobwidgets kparts \
26                    ktexteditor kwidgetsaddons
27depends_lib-append  port:kf5-libkomparediff2
28
29conflicts_build-append \
30                    port:libkomparediff2
31
32platform darwin {
33    variant kde4compat description {allow installation alongside KDE4's port:kompare} {
34        post-destroot {
35            file delete -force ${destroot}${prefix}/include/kompare
36            file delete ${destroot}${prefix}/lib/libkompareinterface.dylib
37            file delete -force ${destroot}${prefix}/share/doc
38            file delete -force ${destroot}${prefix}/share/icons
39        }
40    }
41    post-destroot {
42        ln -s ${kf5.applications_dir}/kompare.app/Contents/MacOS/kompare ${destroot}${prefix}/bin/kompare5
43    }
44}
45platform linux {
46    post-destroot {
47        ln -s kompare \
48                    ${destroot}${prefix}/bin/kompare5
49    }
50}