source: trunk/dports/devel/kdiff3/Portfile

Last change on this file was 142159, checked in by mk@…, 2 years ago

libqalculate, kdiff3, kde4-workspace: revbumps needed due to qt4-mac update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
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: Portfile 142159 2015-11-05 00:10:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                kdiff3
7version             0.9.98
8revision            2
9categories          devel
10platforms           darwin
11maintainers         khindenburg openmaintainer
12license             GPL-2
13description         kdiff3 is a file comparing and merging tool.
14long_description    kdiff3 compares two or three input files and shows the \
15                    differences line by line and character by character. It \
16                    provides an automatic merge facility and an integrated \
17                    editor for comfortable solving of merge conflicts. \
18                    kdiff3 allows recursive directory comparison and merging \
19                    as well.
20
21homepage            http://kdiff3.sourceforge.net/
22master_sites        sourceforge:project/kdiff3/kdiff3/${version}
23
24checksums           rmd160 17fc05df3fd8f052e2010834ba8efe2481e4f434 \
25                    sha256 802c1ababa02b403a5dca15955c01592997116a24909745016931537210fd668
26
27
28variant kde description {Build the KDE version} {}
29
30if {[variant_isset kde]} {
31    PortGroup kde4 1.1
32    depends_lib-append  port:kdelibs4
33    post-destroot {
34        ln -s ${applications_dir}/KDE4/${name}.app/Contents/MacOS/kdiff3 ${destroot}${prefix}/bin
35    }
36} else {
37    PortGroup           xcodeversion 1.0
38    PortGroup           qmake 1.0
39    set worksrcpath     ${worksrcpath}/src-QT4
40    minimum_xcodeversions {9 3.1}
41    patchfiles patch-src-QT4-kdiff3.pro.diff
42    post-patch {
43        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/kdiff3.pro
44    }
45
46    variant debug description \
47    {Build both release and debug library} {}
48
49    if {[variant_isset debug]} {
50        configure.args-append CONFIG+=\"debug_and_release build_all\"
51    } else {
52        configure.args-append CONFIG+=\"release\"
53    }
54}
55
56livecheck.type      regex
57livecheck.regex     "Current version: (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.