1 |
commit: 8b203a8a1f2fe9384c35dc60367e8be78e29f7cf |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Apr 25 14:50:10 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 07:00:27 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b203a8a |
7 |
|
8 |
app-shells/mpv-bash-completion: new package |
9 |
|
10 |
Bash completion for the mpv video player. |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
|
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
app-shells/mpv-bash-completion/Manifest | 1 + |
17 |
...etion-0.16-fix-no-flag-options-completion.patch | 30 +++++++++++++++++++ |
18 |
app-shells/mpv-bash-completion/metadata.xml | 15 ++++++++++ |
19 |
.../mpv-bash-completion-0.16.ebuild | 35 ++++++++++++++++++++++ |
20 |
4 files changed, 81 insertions(+) |
21 |
|
22 |
diff --git a/app-shells/mpv-bash-completion/Manifest b/app-shells/mpv-bash-completion/Manifest |
23 |
new file mode 100644 |
24 |
index 0000000..c7a14a3 |
25 |
--- /dev/null |
26 |
+++ b/app-shells/mpv-bash-completion/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST mpv-bash-completion-0.16.tar.gz 15023 SHA256 ceee842ad8498afc49c9a6ded424f2f301f681513a901d5efb6fd641ba163e10 SHA512 cdfc126a170026ac1c5654a43c6b155a648b090b4b0fed83494725c2d357d5c22dca3e43b2e6a8ea461db83c49880454d0bd8f7209b01d7c9bcdd232d532abd0 WHIRLPOOL 17b29f79435033fefb1800f28c6d1d37506d116cab49bdc06470a6ff792a4009e624a2150bdca2eeaa04756238e314e7277a9b34c6241e9845e8cdd76267df82 |
29 |
|
30 |
diff --git a/app-shells/mpv-bash-completion/files/mpv-bash-completion-0.16-fix-no-flag-options-completion.patch b/app-shells/mpv-bash-completion/files/mpv-bash-completion-0.16-fix-no-flag-options-completion.patch |
31 |
new file mode 100644 |
32 |
index 0000000..7dd3e39 |
33 |
--- /dev/null |
34 |
+++ b/app-shells/mpv-bash-completion/files/mpv-bash-completion-0.16-fix-no-flag-options-completion.patch |
35 |
@@ -0,0 +1,30 @@ |
36 |
+commit 3a5d3b89ecb3a05b58ad8d160a35c0795daf0c9a |
37 |
+Author: Jens John <dev@××××.de> |
38 |
+Date: Sun Feb 7 20:35:17 2016 +0900 |
39 |
+ |
40 |
+Fix completion of --no-* patterned options |
41 |
+--- |
42 |
+ |
43 |
+diff --git a/BUGS b/BUGS |
44 |
+deleted file mode 100644 |
45 |
+index 337eb25..0000000 |
46 |
+--- a/BUGS |
47 |
++++ /dev/null |
48 |
+@@ -1,4 +0,0 @@ |
49 |
+-- Options of type 'Flag' with no default and no [nocfg] marker are |
50 |
+- not being completed correctly (exmaple: --no-audio). The completion |
51 |
+- wrongly suggests to complete them in the format --no-audio=*, but |
52 |
+- these options do not accept a yes/no flag. |
53 |
+diff --git a/gen.sh b/gen.sh |
54 |
+index 87e7e35..596f349 100755 |
55 |
+--- a/gen.sh |
56 |
++++ b/gen.sh |
57 |
+@@ -149,7 +149,7 @@ for line in $(mpv --list-options \ |
58 |
+ "$(printf "$template_case" "$key" "$tail")") |
59 |
+ ;; |
60 |
+ Flag) |
61 |
+- if [[ $line =~ \[nocfg\] || $line =~ \[global\] ]] ; then |
62 |
++ if [[ $line =~ \[nocfg\] || $line =~ \[global\] || $key =~ --no- ]] ; then |
63 |
+ _allkeys="$_allkeys $key" |
64 |
+ else |
65 |
+ _allkeys="$_allkeys ${key}=" |
66 |
|
67 |
diff --git a/app-shells/mpv-bash-completion/metadata.xml b/app-shells/mpv-bash-completion/metadata.xml |
68 |
new file mode 100644 |
69 |
index 0000000..4d854b6 |
70 |
--- /dev/null |
71 |
+++ b/app-shells/mpv-bash-completion/metadata.xml |
72 |
@@ -0,0 +1,15 @@ |
73 |
+<?xml version="1.0" encoding="UTF-8"?> |
74 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
75 |
+<pkgmetadata> |
76 |
+ <maintainer type="person"> |
77 |
+ <email>itumaykin+gentoo@×××××.com</email> |
78 |
+ <name>Coacher</name> |
79 |
+ </maintainer> |
80 |
+ <maintainer type="project"> |
81 |
+ <email>proxy-maint@g.o</email> |
82 |
+ <name>Proxy Maintainers</name> |
83 |
+ </maintainer> |
84 |
+ <upstream> |
85 |
+ <remote-id type="github">2ion/mpv-bash-completion</remote-id> |
86 |
+ </upstream> |
87 |
+</pkgmetadata> |
88 |
|
89 |
diff --git a/app-shells/mpv-bash-completion/mpv-bash-completion-0.16.ebuild b/app-shells/mpv-bash-completion/mpv-bash-completion-0.16.ebuild |
90 |
new file mode 100644 |
91 |
index 0000000..aa2471d |
92 |
--- /dev/null |
93 |
+++ b/app-shells/mpv-bash-completion/mpv-bash-completion-0.16.ebuild |
94 |
@@ -0,0 +1,35 @@ |
95 |
+# Copyright 1999-2016 Gentoo Foundation |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+# $Id$ |
98 |
+ |
99 |
+EAPI=6 |
100 |
+ |
101 |
+inherit bash-completion-r1 |
102 |
+ |
103 |
+DESCRIPTION="Bash completion for the mpv video player" |
104 |
+HOMEPAGE="https://2ion.github.io/mpv-bash-completion/" |
105 |
+SRC_URI="https://github.com/2ion/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
106 |
+ |
107 |
+LICENSE="GPL-3+" |
108 |
+SLOT="0" |
109 |
+KEYWORDS="~amd64" |
110 |
+IUSE="" |
111 |
+ |
112 |
+DEPEND=" |
113 |
+ media-video/mpv[cli] |
114 |
+ !<app-shells/bash-4 |
115 |
+" |
116 |
+RDEPEND="${DEPEND} |
117 |
+ >=app-shells/bash-completion-2.3-r1 |
118 |
+" |
119 |
+ |
120 |
+PATCHES=( "${FILESDIR}/${P}-fix-no-flag-options-completion.patch" ) |
121 |
+ |
122 |
+src_compile() { |
123 |
+ "${S}"/gen.sh > ${PN} || die |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ default |
128 |
+ newbashcomp ${PN} mpv |
129 |
+} |