From b9c4aa8b1974ab6a5513c22a37631d1f97446384 Mon Sep 17 00:00:00 2001 From: miqlas Date: Sun, 6 Sep 2015 10:18:15 +0000 Subject: [PATCH] zsh 5.1 recipe --- app-shells/zsh/patches/zsh-5.1.patchset | 40 +++++++++++++++ app-shells/zsh/zsh-5.1.recipe | 65 +++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 app-shells/zsh/patches/zsh-5.1.patchset create mode 100644 app-shells/zsh/zsh-5.1.recipe diff --git a/app-shells/zsh/patches/zsh-5.1.patchset b/app-shells/zsh/patches/zsh-5.1.patchset new file mode 100644 index 000000000..6111c6dbb --- /dev/null +++ b/app-shells/zsh/patches/zsh-5.1.patchset @@ -0,0 +1,40 @@ +From e436d167eae648e23d576cea10900eba7228271d Mon Sep 17 00:00:00 2001 +From: Chris Roberts +Date: Wed, 18 Sep 2013 03:11:28 -0600 +Subject: Fix for gcc2 + +diff --git a/Src/params.c b/Src/params.c +index 00f43e4..2bc304c 100644 +--- a/Src/params.c ++++ b/Src/params.c +@@ -4425,7 +4425,7 @@ arrfixenv(char *s, char **t) + int + zputenv(char *str) + { +- DPUTS(!str, "Attempt to put null string into environment."); ++ //DPUTS(!str, "Attempt to put null string into environment."); + #ifdef USE_SET_UNSET_ENV + /* + * If we are using unsetenv() to remove values from the +diff --git a/configure.ac b/configure.ac +index d7db8ba..38e9313 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -758,7 +758,7 @@ dnl On ReliantUNIX -lc better be the last library, else funny things + dnl may happen. + AC_CHECK_LIB(c, printf, [LIBS="$LIBS -lc"]) + +-AC_CHECK_LIB(m, pow) ++AC_CHECK_LIB(root, pow) + + AC_CHECK_LIB(rt, clock_gettime) + +@@ -863,7 +863,7 @@ if test x$enable_cap = xyes; then + AC_CHECK_LIB(cap, cap_get_proc) + fi + +-AC_CHECK_LIB(socket, socket) ++AC_CHECK_LIB(network, socket) + AC_SEARCH_LIBS(gethostbyname2, bind) + + case $LIBS in diff --git a/app-shells/zsh/zsh-5.1.recipe b/app-shells/zsh/zsh-5.1.recipe new file mode 100644 index 000000000..fee7c95c3 --- /dev/null +++ b/app-shells/zsh/zsh-5.1.recipe @@ -0,0 +1,65 @@ +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://www.zsh.org" +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://www.zsh.org/pub/zsh-5.1.tar.xz" +CHECKSUM_SHA256="c3a654fa0ef26cb1a3228c9257101870e72899fde1cd815388b1b2cbbdfa59b4" +SOURCE_DIR="zsh-5.1" +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 + " + +BUILD() +{ + autoreconf -fi + 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 +}