SUMMARY="Colorizes output of diff"
DESCRIPTION="
The Perl script colordiff is a wrapper for 'diff' and produces the same output \
but with pretty 'syntax' highlighting. Colour schemes can be customized.
"

HOMEPAGE="http://colordiff.sourceforge.net/"
SOURCE_URI="http://www.colordiff.org/colordiff-1.0.13.tar.gz"
CHECKSUM_SHA256="ce2805a130c81545711df94bc00a93545da3f323d835cc38b452d3396ef86c2a"
REVISION="1"
ARCHITECTURES="any"
LICENSE="GNU GPL v2"
COPYRIGHT="2002-2012  Dave Ewart"
PATCHES="colordiff-1.0.13.patch"

PROVIDES="
	colordiff = $portVersion
	cmd:colordiff = $portVersion
	cmd:cdiff = $portVersion
	"

REQUIRES="
	haiku
	cmd:diff
	cmd:perl
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:make
	"

GLOBAL_WRITABLE_FILES="
	settings/colordiffrc keep-old
	"

INSTALL()
{
	make INSTALL_DIR="$prefix/bin" \
	MAN_DIR="${manDir}/man1" \
	ETC_DIR="${sysconfDir}" \
	install
}
