SUMMARY="Advanced command line tool like standard 'diff'"
DESCRIPTION="spiff is a command line program that compares the contents of \
two files and prints a description of the important differences between them \
in a form rather like the standard 'diff' utility.  However, unlike diff, it \
is not line oriented -- it compares word sequences with all white space and \
newlines disregarded, so even if formatting is different you only see the \
significant differences.  It also compares floating-point values with a \
tolerance, so you can look in data files for discrepancies."
HOMEPAGE="https://github.com/HaikuArchives/Spiff"
COPYRIGHT="1988 Bellcore"
LICENSE="SPIFF"
REVISION="2"
srcGitRev="89f030f4d88cc85092783c2344f69625be564e98"
SOURCE_URI="https://github.com/HaikuArchives/Spiff/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="6b6d4005f17f2fe7f67a0b49ee3ff0cfde75914ba99cf31c190f25ea3e1ac7c8"
SOURCE_DIR="Spiff-89f030f4d88cc85092783c2344f69625be564e98"

ARCHITECTURES="!all x86_gcc2"

PROVIDES="
	spiff = $portVersion
	cmd:spiff
	"
REQUIRES="
	haiku
	lib:libncurses
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libncurses
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd SRC
	make $jobArgs
}

INSTALL()
{
	cd SRC
	mkdir -p $binDir
	mkdir -p $manDir/man1
	cp spiff $binDir
	cp spiff.1 $manDir/man1
}
