SUMMARY="A framework for testing other programs"
DESCRIPTION="DejaGnu purpose is to provide a single front-end for all tests."
HOMEPAGE="https://www.gnu.org/software/dejagnu"
COPYRIGHT="1992-2012 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://ftp.gnu.org/gnu/dejagnu/dejagnu-$portVersion.tar.gz"
CHECKSUM_SHA256="00b64a618e2b6b581b16eb9131ee80f721baa2669fa0cdee93c500d1a652d763"

ARCHITECTURES="any"

PROVIDES="
	dejagnu = $portVersion
	cmd:runtest
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:expect
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:expect
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:sed
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	# replace occurrences of share with data
	sed -i "s|/usr/share|$dataDir|g" $binDir/runtest
}
