zsh: add recipe for version 5.2.

This commit is contained in:
Jerome Duval
2015-12-08 20:19:04 +00:00
parent e08121efe4
commit eb7ff0722d
2 changed files with 181 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
SUMMARY="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://zsh.sourceforge.net"
COPYRIGHT="1992-2014, Paul Falstad, Richard Coleman, Zoltán Hidvégi, \
Andrew Main, Peter Stephenson, Sven Wishnowsky, and others"
LICENSE="ZSH"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/zsh/files/zsh/$portVersion/zsh-$portVersion.tar.xz"
CHECKSUM_SHA256="f17916320ffaa844bbd7ce48ceeb5945fc5f3eff64b149b4229bbfbdf3795a9d"
PATCHES="zsh-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
zsh$secondaryArchSuffix = $portVersion compat >= 5
cmd:zsh$secondaryArchSuffix = $portVersion compat >= 5
cmd:zsh_$portVersion$secondaryArchSuffix = $portVersion compat >= 5
cmd:sh$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libpcre$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
devel:libpcre$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld
cmd:make
cmd:sed
cmd:awk
"
BUILD()
{
autoreconf -fi
CFLAGS=-D_BSD_SOURCE runConfigure ./configure \
--enable-zshrc=`finddir B_USER_SETTINGS_DIRECTORY`/zsh/.zshrc \
--sysconfdir=`finddir B_USER_SETTINGS_DIRECTORY`/zsh \
--enable-etcdir=`finddir B_USER_SETTINGS_DIRECTORY`/zsh
make $jobArgs
}
INSTALL()
{
make install
ln -s zsh $binDir/sh
}
TEST()
{
make check
}