# $Id: Portfile 113156 2013-11-11 02:32:23Z ryandesign@macports.org $

PortSystem 1.0

name			tkdiff
version             4.2
categories		x11 devel
license			GPL-2+
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
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}/
}
