SUMMARY="Zsh is a UNIX command interpreter (shell)"
DESCRIPTION="Zsh is a shell designed for interactive use, although it \
is also a powerful scripting language. Many of the useful features of \
bash, ksh, and tcsh were incorporated into zsh; many original features \
were added."
HOMEPAGE="http://www.zsh.org"
LICENSE="ZSH"
COPYRIGHT="1992-2014, Paul Falstad, Richard Coleman, Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wishnowsky, and others."
SOURCE_URI="http://sourceforge.net/projects/zsh/files/zsh/$portVersion/zsh-$portVersion.tar.bz2"
CHECKSUM_SHA256="544e27de81740286b916d1d77c9f48ad7c26ad7943ed96d278abee67cf6704b3"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="zsh-$portVersion.patchset"
PROVIDES="
	zsh = $portVersion compat >= 5
	cmd:zsh = $portVersion compat >= 5
	cmd:zsh_$portVersion = $portVersion compat >= 5
	cmd:sh
	"
REQUIRES="
	haiku
	lib:libncurses
	lib:libpcre
	"
BUILD_REQUIRES="
	devel:libncurses
	devel:libpcre
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:autoconf
	cmd:find
	cmd:gcc
	cmd:ld
	cmd:make
	"

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

INSTALL()
{
	make install
	ln -s zsh $binDir/sh
}

TEST()
{
	make check
}
