SUMMARY="Display a histogram of diff changes"
DESCRIPTION="Reads the output of diff and displays a histogram of the \
insertions, deletions, and modifications per-file.  It is useful for \
reviewing large, complex files."
HOMEPAGE="https://invisible-island.net/diffstat/diffstat.html"
COPYRIGHT="1994-2016 Thomas E. Dickey"
LICENSE="Diffstat"
REVISION="1"
SOURCE_URI="ftp://ftp.invisible-island.net/diffstat/diffstat-$portVersion.tgz"
CHECKSUM_SHA256="b8aee38d9d2e1d05926e6b55810a9d2c2dd407f24d6a267387563a4436e3f7fc"

ARCHITECTURES="all"

PROVIDES="
	diffstat = $portVersion
	cmd:diffstat = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	cmd:diff
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	runConfigure --omit-dirs docDir ./configure
	make $jobArgs
}

INSTALL()
{
	mkdir -p $binDir
	make install
}

TEST()
{
	make check
}
