summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2005-01-23 08:06:47 +0000
committerMamoru Komachi <usata@gentoo.org>2005-01-23 08:06:47 +0000
commit323dcdfb0e5b6f2abbf913ca762e47bf32a1cc0d (patch)
tree3d9e4ce22a89e1e890a663cad11e3e9cfe6ded97 /app-shells/zsh/files
parentinitial commit - ebuild submitted by Rob Cakebread via bug #74658 (diff)
downloadhistorical-323dcdfb0e5b6f2abbf913ca762e47bf32a1cc0d.tar.gz
historical-323dcdfb0e5b6f2abbf913ca762e47bf32a1cc0d.tar.bz2
historical-323dcdfb0e5b6f2abbf913ca762e47bf32a1cc0d.zip
Cleaned old revisions.
Diffstat (limited to 'app-shells/zsh/files')
-rw-r--r--app-shells/zsh/files/_gcc-config27
-rw-r--r--app-shells/zsh/files/_genlop145
-rw-r--r--app-shells/zsh/files/_gentoolkit195
-rw-r--r--app-shells/zsh/files/digest-zsh-4.0.9-r33
-rw-r--r--app-shells/zsh/files/digest-zsh-4.2.13
5 files changed, 0 insertions, 373 deletions
diff --git a/app-shells/zsh/files/_gcc-config b/app-shells/zsh/files/_gcc-config
deleted file mode 100644
index 695a77691f7f..000000000000
--- a/app-shells/zsh/files/_gcc-config
+++ /dev/null
@@ -1,27 +0,0 @@
-#compdef gcc-config
-#Author oberyno <oberyno@gmail.com>
-
-local arguments
-
-arguments=(
- '(- :)'{--use-old,-O}'[use the old profile if one was selected]'
- '(- :)'{--use-portage-chost,-P}'[only set profile if its CHOST matches /etc/make.conf]:profiles:_gcc_profile'
- '(- :)'{--get-current-profile,-c}'[print current used gcc profile]'
- '(- :)'{--list-profiles,-l}'[print a list of available profiles]'
- '(- :)'{--print-environ,-E}'[print environment of the given/current profile]:profiles:_gcc_profile'
- '(- :)'{--get-bin-path,-B}'[print binary path of given/current profile]:profiles:_gcc_profile'
- '(- :)'{--get-lib-path,-L}'[print library path of given/current profile]:profiles:_gcc_profile'
- '(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile'
- '(- :)'{--help,-h}'[show help]'
- '(- :)'{--version,-v}'[show version info]'
- '(- :):profiles:_gcc_profile'
-)
-
-_gcc_profile(){
- local profile
- profile=$(_call_program tag gcc-config --list-profiles)
- profile=${profile/\[([^]]*)\]/}
- _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} }
-}
-
-_arguments $arguments
diff --git a/app-shells/zsh/files/_genlop b/app-shells/zsh/files/_genlop
deleted file mode 100644
index 2acabc09f7c5..000000000000
--- a/app-shells/zsh/files/_genlop
+++ /dev/null
@@ -1,145 +0,0 @@
-#compdef genlop
-
-# ZSH completion function for genlop
-#
-# Original authors of portage completion
-# Author: baptux <bapt@ifrance.com>
-# Author: Mamoru KOMACHI <usata@gentoo.org>
-#
-# Adapted for genlop by oberyno <oberyno@gmail.com>
-
-_genlop () {
-local prev1="$words[CURRENT-1]" prev2="$words[CURRENT-2]" days months arg single state lstate
-days=(monday tuesday wednesday thursday friday saturday sunday)
-months=(january february march april may june july august september october november december)
-arg=( --current -c --time -t --gmt -g --info -i --file -f --rsync -r --unmerge -u --date --search -s --list -l )
-single=( --current -c --pretend -p --help -h --version -v )
-
- [[ ${prev2} == (1st|2nd|3rd|4th|5th) ]] &&
- compadd in\ $months && return 0
- [[ ${prev1} == ([2-9]|[1-9][0-9]*) && ${prev2} != \
- (january|february|march|april|may|june|july|august|september|october|november|december) ]] &&
- _values '' 'days ago' 'months ago' 'years ago' 'weeks ago' && return 0
- [[ ${prev1} == (1) && ${prev2} != \
- (january|february|march|april|may|june|july|august|september|october|november|december) ]] &&
- _values '' 'day ago' 'month ago' 'year ago' 'week ago' && return 0
-
- case "$prev1" in
- last)
- _values '' month week
- compadd $days && return 0
- ;;
- 1st|2nd|3rd|4th|5th)
- compadd $days && return 0
- ;;
- january|february|march|april|may|june|july|august|september|october|november|december)
- compadd {1..31} && return 0
- ;;
- --date)
- _message 'enter number for more options or use mm/dd/yyyy format'
- _values '' \
- last yesterday 1st 2nd 3rd 4th 5th
- _alternative \
- '*:*:_days' '*:*:_months' && return 0
- ;;
- --file|-f)
- _arguments '*:logfile:_files' && return 0
- ;;
- *)
- _arguments \
- "($single $arg *)"{--current,-c}"[display the current merge in action]" \
- "($single)*--date[specify date of event]:date:->date" \
- "($single)*-f[specify the logfile to use]:logfile:_files" \
- "($single --gmt -g)"{--gmt,-g}"[display time in GMT/UTC format (default is local time)]" \
- "($single $arg *)"{--help,-h}"[display help information]" \
- "($single --info -i --list -l)"{--info,-i}"[print brief summary about installed ebuild]" \
- "($single --search -s --info -i --list -l *)"{--list,-l}"[list merge history]" \
- "(--nocolor -n)"{--nocolor,-n}"[disable colored output]" \
- "($single $arg *)"{--pretend,-p}"[estimate build time of a piped emerge -p]" \
- "($single --search -s --info -i --time -t --unmerge -u --rsync -r *)"{--rsync,-r}"[display rsync history]" \
- "($single --rsync -r --search -s --list -l *)"{--search,-s}"[select ebuilds matching the provided regular expression]:pattern:" \
- "($single --time -t)"{--time,-t}"[display merge time]" \
- "($single --rsync -r --unmerge -u)"{--unmerge,-u}"[display when packages have been unmerged]" \
- "($single $arg *)"{--version,-v}"[display version information]" \
- "($single)*:package:_portage_pkglist"
- ;;
- esac
-
- while [[ -n "$state" ]]; do
- lstate=$state
- state=''
- case "$lstate" in
- date) _message 'enter number for more options or use mm/dd/yyyy format'
- _values '' \
- last yesterday 1st 2nd 3rd 4th 5th
- _alternative \
- ':*:_days' ':*:_months' && return 0
- ;;
- esac
- done
-}
-
-#Function to show all available portage names
-_portage_pkglist(){
- portage_pkglist="$portage_pkglist"
- _tags -s portage_pkglist && { compadd "$@" ${(kv)=portage_pkglist} }
- _path_files -/ -F "*CVSROOT" -F "*eclass" -F "*distfiles" -F "*licences" -F "*files" -W "${portdir}"
-}
-
-_days() {
- local m="monday" t="tuesday" w="wednesday" T="thursday" f="friday" s="saturday" S="sunday"
- local day=$(date +%u)
- if [[ ${day} == 1 ]] then compadd $m
- elif [[ ${day} == 2 ]] then compadd $m $t
- elif [[ ${day} == 3 ]] then compadd $m $t $w
- elif [[ ${day} == 4 ]] then compadd $m $t $w $T
- elif [[ ${day} == 5 ]] then compadd $m $t $w $T $f
- elif [[ ${day} == 6 ]] then compadd $m $t $w $T $f $s
- elif [[ ${day} == 7 ]] then compadd $m $t $w $T $f $s $S
- fi
-}
-_months() {
- local j="january" f="february" m="march" a="april" M="may" ju="june" J="july" A="august" s="september" o="october" n="november" d="december"
- local month=$(date +%m)
- if [[ ${month} == 01 ]] then compadd $j
- elif [[ ${month} == 02 ]] then compadd $j $f
- elif [[ ${month} == 03 ]] then compadd $j $f $m
- elif [[ ${month} == 04 ]] then compadd $j $f $m $a
- elif [[ ${month} == 05 ]] then compadd $j $f $m $a $M
- elif [[ ${month} == 06 ]] then compadd $j $f $m $a $M $ju
- elif [[ ${month} == 07 ]] then compadd $j $f $m $a $M $ju $J
- elif [[ ${month} == 08 ]] then compadd $j $f $m $a $M $ju $J $A
- elif [[ ${month} == 09 ]] then compadd $j $f $m $a $M $ju $J $A $s
- elif [[ ${month} == 10 ]] then compadd $j $f $m $a $M $ju $J $A $s $o
- elif [[ ${month} == 11 ]] then compadd $j $f $m $a $M $ju $J $A $s $o $n
- elif [[ ${month} == 12 ]] then compadd $j $f $m $a $M $ju $J $A $s $o $n $d
- fi
-}
-
-#Reading informations from make.conf
-#
-# Using portageq is the right way to get PORTDIR, but it is very slow :-(
-#
-#portdir="$(portageq portdir)"
-#pkgdir="$(portageq pkgdir)"
-#portdir_overlay="$(portageq portdir_overlay)"
-[[ -n "${PORTDIR}" ]] && portdir="${PORTDIR}"
-[[ -n "${PKGDIR}" ]] && pkgdir="${PKGDIR}"
-if [[ -n "${PORTDIR_OVERLAY}" ]] ; then
- for overlay in ${=PORTDIR_OVERLAY} ; do
- portdir_overlay=(${overlay} ${portdir_overlay})
- done
-fi
-[[ -r /etc/make.globals ]] && source /etc/make.globals
-[[ -r /etc/make.conf ]] && source /etc/make.conf
-
-[[ -z "${portdir}" ]] && portdir="${PORTDIR}"
-[[ -z "${pkgdir}" ]] && pkgdir="${PKGDIR}"
-if [[ -z "${portdir_overlay}" ]] ; then
- for overlay in ${=PORTDIR_OVERLAY} ; do
- portdir_overlay=(${overlay} ${portdir_overlay})
- done
-fi
-
-portage_pkglist=(${portdir}/*-*/* ${=portdir_overlay}/*-*/*)
-portage_pkglist=(${portage_pkglist##*/})
diff --git a/app-shells/zsh/files/_gentoolkit b/app-shells/zsh/files/_gentoolkit
deleted file mode 100644
index 333043e39ad6..000000000000
--- a/app-shells/zsh/files/_gentoolkit
+++ /dev/null
@@ -1,195 +0,0 @@
-#compdef gensync equery qpkg
-
-# Author: oberyno <oberyno@gmail.com>
-
-#Function to show gensync overlays located in /etc/gensync
-_overlays(){
- local overlay gensynclist gensync_individual
- gensynclist=(/etc/gensync/*.syncsource)
- foreach gensync_individual ($gensynclist)
- overlay=($overlay ${${${(M)${(f)"$(<$gensync_individual)"}##id=*}/id=\"/}%\"})
- end
- _tags overlay && { compadd "$@" ${(kv)=overlay} }
-}
-
-#show portage categories without / at end; app-cdr instead of app-cdr/ -- this can probably be done with _files, but I'm lazy
-_category(){
- categories=($portdir/metadata/cache/*-*)
- category=${(M)${${categories##*/}}}
-_tags -s category && { compadd "$@" ${(kv)=category} }
-}
-
-#Function to show only installed packages -- pkgname (no category or version #)
-_portage_installed(){
- installed_portage=(/var/db/pkg/*-*/*)
- installed_pkgname=${(M)${${installed_portage##*/}%%-[0-9]*}}
- _tags -s installed_pkgname && { compadd "$@" ${(kv)=installed_pkgname} }
-}
-#moved out of equery
-_equery_val(){
- _values "equery actions" \
- 'files[list files owned by pkg]' \
- 'list[list all packages matching pattern]' \
- 'belongs[list all packages owning file]' \
- 'uses[display USE flags for package]' \
- 'which[print full path to ebuild for package]' \
- 'depgraph[display a dependency tree for package]' \
- 'check[check files against recorded md5sums and timestamps]' \
- 'size[print size of files contained in package]'
- }
-
-#Function to show all available portage names
-_portage_pkglist(){
- portage_pkglist="$portage_pkglist"
- _tags -s portage_pkglist && { compadd "$@" ${(kv)=portage_pkglist} }
- _path_files -/ -F "*CVSROOT" -F "*eclass" -F "*distfiles" -F "*licences" -W "${portdir}"
-}
-
-#Reading informations from Portage
-#
-# Using portageq is the right way to get PORTDIR, but it is very slow :-(
-#
-#portdir="$(portageq portdir)"
-#pkgdir="$(portageq pkgdir)"
-#portdir_overlay="$(portageq portdir_overlay)"
-[[ -n "${PORTDIR}" ]] && portdir="${PORTDIR}"
-[[ -n "${PKGDIR}" ]] && pkgdir="${PKGDIR}"
-if [[ -n "${PORTDIR_OVERLAY}" ]] ; then
- for overlay in ${=PORTDIR_OVERLAY} ; do
- portdir_overlay=(${overlay} ${portdir_overlay})
- done
-fi
-[[ -r /etc/make.globals ]] && source /etc/make.globals
-[[ -r /etc/make.conf ]] && source /etc/make.conf
-
-[[ -z "${portdir}" ]] && portdir="${PORTDIR}"
-[[ -z "${pkgdir}" ]] && pkgdir="${PKGDIR}"
-if [[ -z "${portdir_overlay}" ]] ; then
- for overlay in ${=PORTDIR_OVERLAY} ; do
- portdir_overlay=(${overlay} ${portdir_overlay})
- done
-fi
-
-portage_pkglist=(${portdir}/*-*/* ${portdir_overlay}/*-*/*)
-portage_pkglist=(${portage_pkglist##*/})
-
-
-case $service in
-
- gensync)
- _arguments \
- '(- :)'{--list-sources,-l}'[list known rsync sources]' \
- '()'{--no-color,-C}'[turn off colours]:overlays:_overlays' \
- '(- :)'{--help,-h}'[show help]' \
- '(- :)'{--version,-V}'[display version info]' \
- '(- :):overlays:_overlays'
-;;
-
- qpkg)
- excl=( --help -h --query-deps -q )
- check=( --check-md5 -cm --check-time -ct --check -c )
- arg=( --info -i --list -l --non-masked -n --masked -m --installed -I --uninstalled -U --group -g )
- find=( --find-file -f --find-pattern -fp )
- dups=( --dups -d --slot -s)
-
- _arguments -s \
- "($check $excl $find $dups 1)"{--find-file,-f}"[finds package that owns file]:file:_files" \
- "($check $excl $find $dups 1)"{--find-pattern,-fp}"[finds package that owns file matching pattern]:pattern:" \
- "($excl $check $arg $find --dups -d )"{--dups,-d}"[print packages that have multiple versions installed]" \
- "($excl $check $arg $find --slot -s 1)"{--slot,-s}"[only print duplicates of the same slot]" \
- "($check $excl --installed -I --uninstalled -U $dups -d)"{--uninstalled,-U}"[include only uninstalled packages]" \
- "($excl --uninstalled -U --installed -I $dups -d)"{--installed,-I}"[include only installed packages]" \
- "($excl --group -g $dups -d)"{--group,-g}"[find by group]:group:_category" \
- "($check $excl --list -l $dups -d)"{--list,-l}"[list package contents]" \
- "($excl --info -i $dups -d 1)"{--info,-i}"[get package description and home page]:package:_portage_pkglist" \
- "($excl $check $find $dups --uninstalled -U)"{--check-time,-ct}"[verify package file timestamps]" \
- "($excl $check $find $dups --uninstalled -U)"{--check-md5,-cm}"[verify package files md5]" \
- "($excl $check $find $dups --uninstalled -U)"{--check,-c}"[verify mtimes and md5]" \
- "($excl $find --query-deps -q $dups -d 1)"{--query-deps,-q}"[display all installed packages depending on selected packages]:package:_portage_pkglist" \
- "()"{--no-color,-nc}"[dont use colors]" \
- "*--verbose[be more verbose (2 levels)]" \
- "*-v[be more verbose (2 levels)]" \
- "($excl --non-masked -n --masked -m $dups)"{--masked,-m}"[include only masked packages]" \
- "($excl --non-masked -n --masked -m $dups)"{--non-masked,-n}"[include only non-masked packages]" \
- "(- :)"{--help,-h}"[show help]" \
- "(--info -i --query-deps -q --slot -s)1:package:_portage_installed"
-;;
-
-equery)
- local prev="$words[CURRENT-1]" prev2="$words[CURRENT-2]"
-
- if (( CURRENT == 2 ));then
- _equery_val
- _arguments \
- $common_args && return 0
- elif (( CURRENT > 2 ));then
-
- case "$prev" in
- files|--timestamp|--md5sum|--type)
- _arguments -s \
- '--timestamp[append timestamp]' \
- '--md5sum[append md5sum]' \
- '--type[prepend file type]' \
- '*:installed pkgname:_portage_installed' && return 0
- ;;
- belongs|--earlyout)
- _arguments -s \
- '(-c --category)'{-c,--category}'[only search in specified category]' \
- '(-e --earlyout)'{-e,--earlyout}'[stop when first match found]' \
- '*:file:_files' && return 0
- ;;
- --category|-c)
- _arguments -s \
- '*:category:_category' && return 0
- ;;
- list|--installed|-i|--exclude-installed|-I|-p|--portage-tree|-o|--overlay-tree)
- _arguments -s \
- '(-i --installed -I --exclude-installed)'{-i,--installed}'[search installed packages]' \
- '(-I --exclude-installed -i --installed)'{-I,--exclude-installed}'[do not search installed packages]' \
- '(-p --portage)'{-p,--portage-tree}'[also search in portage tree]' \
- '(-o --overlay-tree)'{-o,--overlay-tree}'[also search in overlay tree]' \
- '*:package:_portage_installed' && return 0
- ;;
- uses|which)
- _arguments \
- '*:package:_portage_pkglist' \
- && return 0
- ;;
- depgraph|-U|--no-useflags|-l|--linear)
- _arguments -s \
- '(-U --no-useflags)'{-U,--no-useflags}'[do not show USE flags]' \
- '(-l --linear)'{-l,--linear}'[do not use fancy formatting]' \
- '*:package:_portage_installed' \
- && return 0
- ;;
- size|-b|--bytes)
- _arguments -s \
- '(-b --bytes)'{-b,--bytes}'[report size in bytes]' \
- '*:package:_portage_installed' \
- && return 0
- ;;
- check)
- _arguments -s \
- '*:package:_portage_installed' \
- && return 0
- ;;
- --nocolor|-C|--quiet|-q)
- _equery_val
- _arguments \
- $common_args && return 0
- ;;
- esac
-
- [[ $prev2 == (--category|-c) ]] &&
- _arguments '(-c --category)'{-c,--category}'[only search in specified category]' \
- '(-e --earlyout)'{-e,--earlyout}'[stop when first match found]' \
- '*:file:_files' && return 0
-
- fi
- common_args=(
- {'(--nocolor)-C','(-C)--nocolor'}'[turns off colors]'
- {'(--quiet)-q','(-q)--quiet'}'[minimal output]'
- {'(--help)-h','(-h)--help'}'[show help]'
- )
- ;;
-esac
diff --git a/app-shells/zsh/files/digest-zsh-4.0.9-r3 b/app-shells/zsh/files/digest-zsh-4.0.9-r3
deleted file mode 100644
index 19f27e152f5f..000000000000
--- a/app-shells/zsh/files/digest-zsh-4.0.9-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 26cc0f9051ba41063e950723246dfaa8 zsh-4.0.9.tar.bz2 1749802
-MD5 f7032dd0a992cba7bb903ab90a9ca667 zsh-4.0.9-doc.tar.bz2 1411985
-MD5 1e755a2ffa0bad11b0ebc7d5d7622674 zsh-4.0.9-euc-0.2.patch.gz 2869
diff --git a/app-shells/zsh/files/digest-zsh-4.2.1 b/app-shells/zsh/files/digest-zsh-4.2.1
deleted file mode 100644
index 5a7134f4f087..000000000000
--- a/app-shells/zsh/files/digest-zsh-4.2.1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 b59ef34b8de288d5fd16f842451125c8 zsh-4.2.1.tar.bz2 2039188
-MD5 44f829b59181749691b9725e48a9a5e8 zsh-4.2.1-euc-0.3.patch.gz 2919
-MD5 943bdc398c6138bdb2294a355f4d0959 zsh-4.2.1-doc.tar.bz2 1632937