1 |
commit: d9c9ecc698f59eb006433234b910b80f6948d25f |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 29 01:39:18 2014 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 29 01:40:56 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=d9c9ecc6 |
7 |
|
8 |
_portage_utils: update to match remaining portage-utils-0.53 options |
9 |
|
10 |
--- |
11 |
_portage_utils | 59 ++++++++++++++++++++++++++++++++++++++++++++-------------- |
12 |
1 file changed, 45 insertions(+), 14 deletions(-) |
13 |
|
14 |
diff --git a/_portage_utils b/_portage_utils |
15 |
index 94e82f6..a68be34 100644 |
16 |
--- a/_portage_utils |
17 |
+++ b/_portage_utils |
18 |
@@ -1,7 +1,7 @@ |
19 |
#compdef qatom qcache qcheck qdepends qfile qgrep qlist qlop qpkg qsearch qsize qtbz2 quse qxpak |
20 |
|
21 |
-#portage-utils-0.19 |
22 |
-# |
23 |
+# portage-utils-0.53 |
24 |
+ |
25 |
local common_args PORTDIR |
26 |
var=PORTDIR |
27 |
|
28 |
@@ -31,12 +31,20 @@ case $service in |
29 |
show_archs(){ |
30 |
arches=(${(f)"$(<$PORTDIR/profiles/arch.list)"}) |
31 |
allarches=($archs) |
32 |
- for arch in $arches;do |
33 |
+ for arch in $arches; do |
34 |
allarches=($allarches $arch) |
35 |
done |
36 |
_describe -t available-arches "arch" allarches |
37 |
} |
38 |
_arguments -s $common_args \ |
39 |
+ {'(--matchpkg)-p','(-p)--matchpkg'}'[match pkgname]:package name:_gentoo_packages available_pkgnames_only' \ |
40 |
+ {'(--matchcat)-c','(-c)--matchcat'}'[match catname]:category:_gentoo_packages category' \ |
41 |
+ {'(--imlate)-i','(-i)--imlate'}'[list packages that can be marked stable on a given arch]' \ |
42 |
+ {'(--dropped)-d','(-d)--dropped'}'[list packages that have dropped keywords on a version bump on a given arch]' \ |
43 |
+ {'(--testing)-t','(-t)--testing'}'[list packages that have ~arch versions, but no stable versions on a given arch]' \ |
44 |
+ {'(--stats)-s','(-s)--stats'}'[display statistics about the portage tree]' \ |
45 |
+ {'(--all)-a','(-a)--all'}'[list packages that have at least one version keyworded for on a given arch]' \ |
46 |
+ {'(--not)-n','(-n)--not'}"[list packages that aren't keyworded on a given arch]" \ |
47 |
'*:arch:show_archs' |
48 |
;; |
49 |
qcheck) |
50 |
@@ -67,7 +75,14 @@ case $service in |
51 |
;; |
52 |
qfile) |
53 |
_arguments -s $common_args \ |
54 |
- {'(--exact)-e','(-e)--exact'}'[Exact match]' \ |
55 |
+ {'(--slots)-S','(-S)--slots'}'[Display installed packages with slots]' \ |
56 |
+ {'(--root-prefix)-R','(-R)--root-prefix'}'[Assume arguments are already prefixed by $ROOT]' \ |
57 |
+ {'(--from)-f','(-f)--from'}'[Read arguments from file <arg> ("-" for stdin)]' \ |
58 |
+ {'(--max-args)-m','(-m)--max-args'}'[Treat from file arguments by groups of <arg> (defaults to 5000)]:number' \ |
59 |
+ {'(--basename)-b','(-b)--basename'}'[Match any component of the path]' \ |
60 |
+ {'(--orphans)-o','(-o)--orphans'}'[List orphan files]' \ |
61 |
+ {'(--exclude)-x','(-x)--exclude'}"[Don't look in package <arg> (used with --orphans)]:package:_gentoo_packages installed" \ |
62 |
+ {'(--exact)-e','(-e)--exact'}'[Exact match (used with --exclude)]' \ |
63 |
'*:filename:_files' |
64 |
;; |
65 |
qgrep) |
66 |
@@ -75,8 +90,18 @@ case $service in |
67 |
{'(--invert-match)-I','(-I)--invert-match'}'[Select non-matching lines]' \ |
68 |
{'(--ignore-case)-i','(-i)--ignore-case'}'[Ignore case distinctions]' \ |
69 |
{'(--with-filename)-H','(-H)--with-filename'}'[Print the filename for each match]' \ |
70 |
+ {'(--with-name)-N','(-N)--with-name'}'[Print the package or eclass name for each match]' \ |
71 |
{'(--count)-c','(-c)--count'}'[Only print a count of matching lines per FILE]' \ |
72 |
+ {'(--list)-l','(-l)--list'}'[Only print FILE names containing matches]' \ |
73 |
+ {'(--invert-list)-L','(-L)--invert-list'}'[Only print FILE names containing no match]' \ |
74 |
{'(--regexp)-e','(-e)--regexp'}'[Use PATTERN as a regular expression]' \ |
75 |
+ {'(--extended)-x','(-x)--extended'}'[Use PATTERN as an extended regular expression]' \ |
76 |
+ {'(--installed)-J','(-J)--installed'}'[Search in installed ebuilds instead of the tree]' \ |
77 |
+ {'(--eclass)-E','(-E)--eclass'}'[Search in eclasses instead of ebuilds]' \ |
78 |
+ {'(--skip-comments)-s','(-s)--skip-comments'}'[Skip comments lines]' \ |
79 |
+ {'(--skip)-S','(-S)--skip'}'[Skip lines matching <arg>]:pattern' \ |
80 |
+ {'(--before)-B','(-B)--before'}'[Print <arg> lines of leading context]:number' \ |
81 |
+ {'(--after)-A','(-A)--after'}'[Print <arg> lines of trailing context]:number' \ |
82 |
'*:pattern::' |
83 |
;; |
84 |
qlist) |
85 |
@@ -110,6 +135,7 @@ case $service in |
86 |
_arguments -s $common_args \ |
87 |
{'(--all)-a','(-a)--all'}'[List the descriptions of every package in the cache]' \ |
88 |
{'(--cache)-c','(-c)--cache'}'[Use the portage cache]' \ |
89 |
+ {'(--ebuilds)-e','(-e)--ebuilds'}'[Use the portage ebuild tree]' \ |
90 |
{'(--search)-s','(-s)--search'}'[Regex search package basenames]' \ |
91 |
{'(--desc)-S','(-S)--desc'}'[Regex search package descriptions]' \ |
92 |
{'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
93 |
@@ -122,9 +148,10 @@ case $service in |
94 |
{'(--all)-a','(-a)--all'}'[Size all installed packages]' \ |
95 |
{'(--sum)-s','(-s)--sum'}'[Include a summary]' \ |
96 |
{'(--sum-only)-S','(-S)--sum-only'}'[Show just the summary]' \ |
97 |
- {'(--megabyte)-m','(-m)--megabyte'}'[Display size in megabytes]' \ |
98 |
- {'(--kilobyte)-k','(-k)--kilobyte'}'[Display size in kilobytes]' \ |
99 |
- {'(--byte)-b','(-b)--byte'}'[Display size in bytes]' \ |
100 |
+ {'(--megabytes)-m','(-m)--megabytes'}'[Display size in megabytes]' \ |
101 |
+ {'(--kilobytes)-k','(-k)--kilobytes'}'[Display size in kilobytes]' \ |
102 |
+ {'(--bytes)-b','(-b)--bytes'}'[Display size in bytes]' \ |
103 |
+ {'(--ignore)-i','(-i)--ignore'}'[Ignore regexp string]:pattern' \ |
104 |
'*:packages:_gentoo_packages installed' |
105 |
;; |
106 |
quse) |
107 |
@@ -134,28 +161,32 @@ case $service in |
108 |
{'(--keywords)-K','(-K)--keywords'}'[Use the KEYWORDS vs IUSE]' \ |
109 |
{'(--license)-L','(-L)--license'}'[Use the LICENSE vs IUSE]' \ |
110 |
{'(--describe)-D','(-D)--describe'}'[Describe the USE flag]' \ |
111 |
+ {'(--format)-F','(-F)--format'}'[Use your own variable formats: -F NAME=]:format' \ |
112 |
{'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
113 |
'*:use flag:_gentoo_packages useflag' |
114 |
;; |
115 |
qtbz2) |
116 |
_arguments -s $common_args \ |
117 |
- {'(--join -s --split -t --tarbz2 -x --xpak)-j','(-t --tarbz2 -j -s --split -x --xpak)--join'}'[Join tar.bz2 + xpak into a tbz2]:*:tar.bz2 file and xpak file:_files -g \*.\(tar.bz2\|xpak\)' \ |
118 |
- {'(--join -j --split -t --tarbz2 -x --xpak)-s','(-t --tarbz2 -j --join -s -x --xpak)--split'}'[Split a tbz2 into a tar.bz2 + xpak]:tbz2 file:_files -g \*.tbz2' \ |
119 |
- {'(--join -j -s --split --tarbz2 -x --xpak)-t','(--join -j -s --split -t -x --xpak)--tarbz2'}'[Just split the tar.bz2]:tbz2 file:_files -g \*.tbz2' \ |
120 |
- {'(--join -j -s --split -t --tarbz2 --xpak)-x','(--join -j -s --split -t --tarbz2 -x)--xpak'}'[Just split the xpak]:tbz2 file:_files -g \*.tbz2' \ |
121 |
+ {'(--dir)-d','(-d)--dir'}'[Change to specified directory]:directory:_files -/' \ |
122 |
+ {'(--join)-j','(-j)--join'}'[Join tar.bz2 + xpak into a tbz2]:*:tar.bz2 file and xpak file:_files -g \*.\(tar.bz2\|xpak\)' \ |
123 |
+ {'(--split)-s','(-s)--split'}'[Split a tbz2 into a tar.bz2 + xpak]:tbz2 file:_files -g \*.tbz2' \ |
124 |
+ {'(--tarbz2)-t','(-t)--tarbz2'}'[Just split the tar.bz2]:tbz2 file:_files -g \*.tbz2' \ |
125 |
+ {'(--xpak)-x','(-x)--xpak'}'[Just split the xpak]:tbz2 file:_files -g \*.tbz2' \ |
126 |
{'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]' |
127 |
;; |
128 |
qpkg) |
129 |
_arguments -s $common_args \ |
130 |
+ {'(--clean)-c','(-c)--clean'}'[clean pkgdir of unused binary files]' \ |
131 |
+ {'(--eclean)-E','(-E)--eclean'}'[clean pkgdir of files not in the tree anymore (slow)]' \ |
132 |
{'(--pretend)-p','(-p)--pretend'}'[pretend only]' \ |
133 |
{'(--pkgdir)-P','(-P)--pkgdir'}'[alternate package directory]:alternate pkgdir:_files -/' \ |
134 |
'*:Installed packages:_gentoo_packages installed_versions' |
135 |
;; |
136 |
qxpak) |
137 |
_arguments -s $common_args \ |
138 |
- {'(--list --extract -x --create -c)-l','(-l --extract -x --create -c)--list'}'[List the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
139 |
- {'(--list -l --extract --create -c)-x','(--list -l -x --create -c)--extract'}'[Extract the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
140 |
- {'(--list -l --extract -x --create)-c','(--list -l --extract -x -c)--create'}'[Create an archive of a directory/files]:*:archive name and files to archive:_files' \ |
141 |
+ {'(--list)-l','(-l)--list'}'[List the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
142 |
+ {'(--extract)-x','(-x)--extract'}'[Extract the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
143 |
+ {'(--create)-c','(-c)--create'}'[Create an archive of a directory/files]:*:archive name and files to archive:_files' \ |
144 |
{'(--dir)-d','(-d)--dir'}'[Change to specified directory]:directory:_files -/' \ |
145 |
{'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]' |
146 |
;; |