SUMMARY="Prints out location of specified executables that are in your path"
HOMEPAGE="http://carlo17.home.xs4all.nl/which/"
COPYRIGHT="Free Software Foundation"
LICENSE="GNU GPL v2"
SRC_URI="http://ftp.gnu.org/gnu/which/which-2.20.tar.gz"
CHECKSUM_SHA256="d417b65c650d88ad26a208293c1c6e3eb60d4b6d847f01ff8f66aca63e2857f8"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"

PATCHES="which-2.20.patch"

PROVIDES="
	which = $portVersion
	cmd:which = $portVersion
"
REQUIRES="
	haiku >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:gcc
	cmd:make
"

BUILD()
{
	runConfigure ./configure --disable-dependency-tracking
	make $jobArgs
}

INSTALL()
{
	make install
}

DESCRIPTION="
GNU which is an utility that is used to find which executable (or alias or \
shell function) is executed when entered on the shell prompt.
"
