zsh: 5.0.2 -> 5.0.5, add prt-get completion, fix zshall, update README
This commit is contained in:
parent
8b3f0c78c1
commit
66c141d508
2064
zsh/.footprint
2064
zsh/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,3 @@
|
||||
b8f2ad691acf58b3252225746480dcad zsh-5.0.2.tar.bz2
|
||||
1df5b335eca489948dfc49026d5a5e17 _prt-get
|
||||
6156dc2f19b0a067bdbc0fb7f81e2017 zsh-5.0.5.tar.bz2
|
||||
d7b586ffa91bb63356ed0080699cef93 zsh-lovers.1
|
||||
|
18
zsh/Pkgfile
18
zsh/Pkgfile
@ -5,10 +5,10 @@
|
||||
# Depends on: libpcre
|
||||
|
||||
name=zsh
|
||||
version=5.0.2
|
||||
release=1
|
||||
version=5.0.5
|
||||
release=2
|
||||
source=(http://downloads.sourceforge.net/project/zsh/zsh/$version/zsh-$version.tar.bz2 \
|
||||
zsh-lovers.1)
|
||||
_prt-get zsh-lovers.1)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
@ -18,7 +18,7 @@ build() {
|
||||
--mandir=/usr/man \
|
||||
--enable-etcdir=/etc/zsh \
|
||||
--enable-zshrc=/etc/zsh/zshrc \
|
||||
--enable-zshlogin=/etc/zsh/zshlogin \
|
||||
--enable-zlogin=/etc/zsh/zshlogin \
|
||||
--enable-zshenv=/etc/zsh/zshenv \
|
||||
--enable-fndir=/usr/share/zsh/$version/functions \
|
||||
--enable-site-fndir=/usr/share/zsh/site-functions \
|
||||
@ -27,18 +27,22 @@ build() {
|
||||
--enable-function-subdirs \
|
||||
--enable-pcre \
|
||||
--enable-restricted-r \
|
||||
--enable-lfs \
|
||||
--enable-cap \
|
||||
--with-curses-terminfo
|
||||
--enable-cap
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
install -m 644 $SRC/zsh-lovers.1 $PKG/usr/man/man1/
|
||||
|
||||
rm $PKG/usr/man/man1/zshall.1
|
||||
cat $PKG/usr/man/man1/* > $PKG/usr/man/man1/zshall.1
|
||||
|
||||
install -d $PKG/bin
|
||||
ln -s /usr/bin/zsh $PKG/bin
|
||||
|
||||
# These completion files break things for CRUX' pkgutils,
|
||||
# so remove them for now (see bug #381).
|
||||
rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
|
||||
|
||||
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ PRECAUTION
|
||||
If you don't remove libpcre before building this port libpcre will
|
||||
be a runtime dependency of zsh. This is a problem on systems where
|
||||
zsh needs to be available at boot before the directory containing
|
||||
libpcre.so is mounted.
|
||||
libpcre.so is mounted. The same applies to gdbm.so.
|
||||
|
||||
MISC
|
||||
zsh-lovers.1 is taken from http://www.grml.org/zsh/zsh-lovers.1
|
||||
|
123
zsh/_prt-get
Normal file
123
zsh/_prt-get
Normal file
@ -0,0 +1,123 @@
|
||||
#compdef prt-get prt-cache
|
||||
|
||||
local curcontext="$curcontext" expl ret=1 subcmd
|
||||
|
||||
_list_notinstalled() {
|
||||
local liste expl pkgs
|
||||
local -a disp
|
||||
|
||||
installed=($(prt-cache listinst))
|
||||
pkgs=($(prt-cache list))
|
||||
pkgs=(${pkgs:#${(j:|:)~${installed:q}}})
|
||||
|
||||
_wanted packages expl 'packages' \
|
||||
compadd "$@" "$disp[@]" - "${(@)pkgs%%:*}"
|
||||
|
||||
}
|
||||
|
||||
_list() {
|
||||
local liste expl pkgs installed
|
||||
local -a disp
|
||||
|
||||
pkgs=($(prt-cache list))
|
||||
|
||||
_wanted packages expl 'packages' \
|
||||
compadd "$@" "$disp[@]" - "${(@)pkgs%%:*}"
|
||||
|
||||
}
|
||||
|
||||
_listinstalled() {
|
||||
local liste expl pkgs installed
|
||||
local -a disp
|
||||
|
||||
pkgs=($(prt-cache listinst))
|
||||
|
||||
_wanted packages expl 'packages' \
|
||||
compadd "$@" "$disp[@]" - "${(@)pkgs%%:*}"
|
||||
|
||||
}
|
||||
|
||||
_listlocked() {
|
||||
local liste expl pkgs installed
|
||||
local -a disp
|
||||
|
||||
pkgs=($(prt-cache listlocked))
|
||||
|
||||
_wanted packages expl 'packages' \
|
||||
compadd "$@" "$disp[@]" - "${(@)pkgs%%:*}"
|
||||
|
||||
}
|
||||
|
||||
_listupdates() {
|
||||
local liste expl pkgs installed
|
||||
local -a disp
|
||||
|
||||
pkgs=($(prt-cache quickdiff))
|
||||
|
||||
_wanted packages expl 'packages' \
|
||||
compadd "$@" "$disp[@]" - "${(@)pkgs%%:*}"
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (( CURRENT == 2 )); then
|
||||
_describe 'prt-get command' '(
|
||||
install:install\ package
|
||||
depinst:install\ package\ including\ its\ dependencies
|
||||
grpinst:install\ given\ packages\ but\ stop\ if\ installation\ of\ a\ package\ fails
|
||||
update:update\ package
|
||||
remove:remove\ package
|
||||
sysup:update\ all\ installed\ packages\ which\ are\ outdated
|
||||
lock:do\ not\ take\ into\ account\ these\ packages\ in\ sysup\ operation
|
||||
unlock:remove\ lock\ from\ package
|
||||
listlocked:list\ all\ locked\ packages
|
||||
diff:show\ differences\ between\ installed\ packages\ and\ ports\ in\ the\ ports\ tree
|
||||
quickdiff:print\ a\ simple\ list\ of\ packages\ whose\ versions\ differ\ from\ those\ in\ the\ ports\ tree
|
||||
search:search\ ports\ tree\ for\ packages\ matching
|
||||
dsearch:search\ ports\ tree\ for\ package\ name\ or\ description
|
||||
fsearch:search\ for\ files\ in\ packages\ footprint
|
||||
info:display\ information\ about\ a\ port
|
||||
path:print\ path\ of\ a\ port
|
||||
readme:print\ a\ ports\ readme
|
||||
depends:print\ a\ recursive\ list\ of\ ports\ that\ are\ required\ by\ the\ given\ ports
|
||||
quickdep:print\ a\ simple\ list\ of\ recursive\ dependencies\ of\ the\ given\ ports
|
||||
dependent:print\ a\ list\ of\ ports\ depending\ on\ the\ given\ port
|
||||
deptree:print\ a\ tree\ of\ dependencies\ of\ the\ given\ package
|
||||
dup:list\ ports\ that\ can\ be\ found\ in\ multiple\ port\ directories
|
||||
list:list\ ports\ available\ in\ the\ ports\ tree
|
||||
printf:print\ formated\ port\ list
|
||||
listinst:list\ installed\ ports
|
||||
listorphans:list\ installed\ ports\ which\ have\ no\ no\ dependent\ packages
|
||||
isinst:check\ wether\ a\ given\ package\ is\ installed
|
||||
current:print\ version\ of\ an\ installed\ package
|
||||
ls:print\ the\ the\ files\ of\ a\ package\ directory
|
||||
cat:print\ the\ content\ of\ a\ file\ in\ a\ ports\ directory
|
||||
edit:edit\ a\ packages\ file
|
||||
help:show\ available\ options
|
||||
dumpconfig:dump\ the\ current\ configuration
|
||||
cache:create\ the\ cache\ file\ for\ prt-cache
|
||||
version:show\ the\ current\ version\ of\ prt-get
|
||||
)' && ret=0
|
||||
|
||||
else
|
||||
shift words
|
||||
(( CURRENT-- ))
|
||||
subcmd="$words[1]"
|
||||
curcontext="${curcontext%:*}-${subcmd}:"
|
||||
|
||||
if (( CURRENT == 2 )); then
|
||||
case $subcmd in
|
||||
remove|lock|current) _listinstalled && ret=0 ;;
|
||||
path|depends|dependent|deptree|isinst|ls|cat|edit) _list && ret=0 ;;
|
||||
unlock) _listlocked && ret=0 ;;
|
||||
install|grpinst|depinst) _list_notinstalled && ret=0 ;;
|
||||
info|readme|search) _list && ret=0 ;;
|
||||
update) _listupdates && ret=0 ;;
|
||||
*) _message 'unknown subcommand: $subcmd' ;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
return ret
|
Loading…
x
Reference in New Issue
Block a user