SUMMARY="Exercise POSIX system calls"
DESCRIPTION="pjdfstest is a test suite that helps exercise POSIX system calls."
HOMEPAGE="http://people.freebsd.org/~pjd/pjdfstest"
COPYRIGHT="2006-2012 Pawel Jakub Dawidek
	Alan Somers
	Ngie Cooper"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/pjd/pjdfstest/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="4701236d82bc13e0f0296bf920bc9b8433d519b2a862a5d8565a697ec3885954"
PATCHES="pjdfstest-$portVersion.patchset"

ARCHITECTURES="all"

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

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc
	cmd:make
	"

BUILD()
{
	autoreconf -ifs
	runConfigure ./configure
	make pjdfstest
}

INSTALL()
{
	make install
}

TEST()
{
	#tests still fails
	cd tests
	prove -rv .
}
