# -*- 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

PortSystem          1.0

name                tkdiff
version             4.2
categories          x11 devel
platforms           any
maintainers         nomaintainer
supported_archs     noarch
license             GPL-2+

description         graphical front end to the diff program

long_description    tkdiff is a graphical front end to the diff program. It \
                    provides a side-by-side view of the differences between \
                    two files, along with several innovative features such as \
                    diff bookmarks and a graphical map of differences for \
                    quick navigation.

homepage            http://tkdiff.sourceforge.net/
master_sites        sourceforge:project/tkdiff/tkdiff/${version}/
worksrcdir          ${name}-unix

checksums           rmd160  96bb5b6ebc004dc5247c0f7fbce4b20816af8024 \
                    sha256  734bb417184c10072eb64e8d274245338e41b7fdeff661b5ef30e89f3e3aa357

depends_run         port:tk

configure {
    reinplace "s|exec wish|exec ${prefix}/bin/wish|g" ${worksrcpath}/tkdiff
    reinplace "s|4\.1\.4|${version}|g" ${worksrcpath}/README.txt
}

build   {}

destroot {
    xinstall -m 755 ${worksrcpath}/tkdiff ${destroot}${prefix}/bin
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/
    xinstall -m 644 -W ${worksrcpath} CHANGELOG.txt LICENSE.txt README.txt \
        ${destroot}${prefix}/share/doc/${name}/
}
