mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-30 12:08:53 +02:00
40
app-shells/zsh/patches/zsh-5.1.patchset
Normal file
40
app-shells/zsh/patches/zsh-5.1.patchset
Normal file
@@ -0,0 +1,40 @@
|
||||
From e436d167eae648e23d576cea10900eba7228271d Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
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
|
||||
65
app-shells/zsh/zsh-5.1.recipe
Normal file
65
app-shells/zsh/zsh-5.1.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user