mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
zsh: bump to 5.5.1.
This commit is contained in:
145
app-shells/zsh/zsh-5.5.1.recipe
Normal file
145
app-shells/zsh/zsh-5.5.1.recipe
Normal file
@@ -0,0 +1,145 @@
|
||||
SUMMARY="A very advanced and programmable command interpreter (shell) for UNIX"
|
||||
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; plenty original features \
|
||||
were added."
|
||||
HOMEPAGE="https://zsh.org/"
|
||||
COPYRIGHT="1992-2018 The Zsh Development Group"
|
||||
LICENSE="ZSH
|
||||
GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sf.net/zsh/zsh-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="e1c38808fcbe0cc1344d55c9a758349f7ba1e317325b154621ac37eddac4aa80"
|
||||
SOURCE_URI_2="https://downloads.sf.net/zsh/zsh-$portVersion-doc.tar.xz"
|
||||
CHECKSUM_SHA256_2="41ce13a89a6bc7e709b6f110e54288d59f02ba2becd2646895d28188d4dd6283"
|
||||
PATCHES="zsh-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/zsh directory keep-old
|
||||
settings/zsh/zlogin
|
||||
settings/zsh/zlogout
|
||||
settings/zsh/zprofile keep-old
|
||||
settings/zsh/zshenv keep-old
|
||||
settings/zsh/zshrc
|
||||
"
|
||||
USER_SETTINGS_FILES="
|
||||
settings/zsh directory
|
||||
settings/zsh/.zlogin
|
||||
settings/zsh/.zlogout
|
||||
settings/zsh/.zprofile
|
||||
settings/zsh/.zshenv
|
||||
settings/zsh/.zshrc
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
zsh = $portVersion compat >= 5
|
||||
cmd:zsh = $portVersion compat >= 5
|
||||
cmd:zsh_$portVersion = $portVersion compat >= 5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libiconv
|
||||
lib:libncursesw
|
||||
lib:libpcre
|
||||
"
|
||||
|
||||
PROVIDES_doc="
|
||||
zsh_doc = $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libiconv
|
||||
devel:libncursesw
|
||||
devel:libpcre
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:grep
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp -rut . "$sourceDir2/zsh-$portVersion"/*
|
||||
|
||||
export LIBS="-Wl,--as-needed -lnetwork -lbsd"
|
||||
export CPPFLAGS="-D_BSD_SOURCE"
|
||||
|
||||
autoreconf -vfi
|
||||
|
||||
runConfigure ./configure \
|
||||
--htmldir="$developDocDir/html" \
|
||||
--enable-etcdir="$sysconfDir/zsh" \
|
||||
--enable-zlogin="$sysconfDir/zsh/zlogin" \
|
||||
--enable-zlogout="$sysconfDir/zsh/zlogout" \
|
||||
--enable-zprofile="$sysconfDir/zsh/zprofile" \
|
||||
--enable-zshenv="$sysconfDir/zsh/zshenv" \
|
||||
--enable-zshrc="$sysconfDir/zsh/zshrc" \
|
||||
--enable-multibyte \
|
||||
--enable-function-subdirs \
|
||||
--enable-pcre \
|
||||
--enable-dynamic \
|
||||
--enable-cap \
|
||||
--enable-unicode9 \
|
||||
--enable-maildir-support \
|
||||
--with-tcsetpgrp \
|
||||
--enable-zsh-secure-free
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
install -d -m 755 "$settingsDir/zsh"
|
||||
|
||||
# Keep dots in B_USER_SETTINGS_DIRECTORY, if the user hasn't got any
|
||||
# dots in their home directory
|
||||
cat > "$settingsDir/zsh/zshenv" << EOF
|
||||
setopt EXTENDED_GLOB
|
||||
if [ -z ~/.z(login|logout|profile|shrc|shenv)(N) ]; then
|
||||
ZDOTDIR="\$(finddir B_USER_SETTINGS_DIRECTORY)/zsh"
|
||||
fi
|
||||
unsetopt EXTENDED_GLOB
|
||||
EOF
|
||||
# Source /etc/profile on startup, which contains important settings
|
||||
cat > "$settingsDir/zsh/zprofile" << EOF
|
||||
# Emulate ksh as a walkaround for ksh-syntax within /etc/profile
|
||||
emulate ksh -c 'source /etc/profile'
|
||||
PS1="\${PS1/'\$PWD'/%~}"
|
||||
|
||||
# Migration path for users who rely on the old behavior
|
||||
(
|
||||
setopt EXTENDED_GLOB
|
||||
if [[ -n \$ZDOTDIR && -z \$ZDOTDIR/.z(login|logout|profile|shrc|shenv)(#qN) ]]; then
|
||||
for i in "\$HOME/config/settings/zsh"/z(login|logout|profile|shrc|shenv)(#qN)
|
||||
do
|
||||
local target=\$ZDOTDIR/.\$(basename "\$i")
|
||||
echo "Symlinking \$i to \$target..."
|
||||
ln -sv "\$i" "\$target"
|
||||
unset target
|
||||
done
|
||||
[[ -e \$ZDOTDIR/.zshenv ]] && source \$ZDOTDIR/.zshenv
|
||||
fi
|
||||
)
|
||||
EOF
|
||||
|
||||
make install.html
|
||||
install -t "$developDocDir" -m 644 Doc/*.pdf
|
||||
packageEntries doc "$developDir"
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
mkdir -p "$sourceDir/fakehome"
|
||||
|
||||
HOME="$sourceDir/fakehome" make check
|
||||
}
|
||||
Reference in New Issue
Block a user