Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/mpv-bash-completion/
Date: Sun, 31 Jul 2016 09:04:42
Message-Id: 1469955768.e6a47460d88dda5e9f7a113a904def19841e9e99.monsieurp@gentoo
1 commit: e6a47460d88dda5e9f7a113a904def19841e9e99
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 26 15:47:43 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 09:02:48 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6a47460
7
8 app-shells/mpv-bash-completion: verbump to 3.3.4
9
10 Package-Manager: portage-2.3.0
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 app-shells/mpv-bash-completion/Manifest | 1 +
15 .../mpv-bash-completion-3.3.4.ebuild | 48 ++++++++++++++++++++++
16 2 files changed, 49 insertions(+)
17
18 diff --git a/app-shells/mpv-bash-completion/Manifest b/app-shells/mpv-bash-completion/Manifest
19 index de3995c..e4b5923 100644
20 --- a/app-shells/mpv-bash-completion/Manifest
21 +++ b/app-shells/mpv-bash-completion/Manifest
22 @@ -1,2 +1,3 @@
23 DIST mpv-bash-completion-0.17.tar.gz 15033 SHA256 a4c3be027ec52fef684a545a43c05f32cf512da93ae4a569d273e6e182b90ab1 SHA512 851a9f2b5e54f176fc7519a5fceace2b3281bef4062a48e108f17b83ccbd53e7b7545969be9cbccd3f093ba9ee65bd6736650f1b4d88997808a8b1df40d769eb WHIRLPOOL ba077f686d2e9ba4e819cf30f17cdca5b98b321e6c39b72a3bd7c1f5269da3d20abe7f610838a51b941fdba8c6636fc3eaae81f07fcd08f8f61f6262d2d0fab5
24 DIST mpv-bash-completion-3.3.3.tar.gz 18314 SHA256 8f4d538b618bd89f3b55e7831863679f7583fd1175afc3cabd2b614a9e3b7f88 SHA512 97bb8926685abc62f8147da55c816aa47304819c87c4be0b47701bb5b5dede1eb4a008efa75a0894cbb14b5b92aace300169809d2fc37c1f1708dc3a99e6e278 WHIRLPOOL fe8ea9732e3a638e92790a9d705f0ad003ca9ab8e8a23dae302aaa1147c55c90178e8a99be8ab6e56e3f07b64fa118d3e2392cdc0878bafd63c637cd0df6efff
25 +DIST mpv-bash-completion-3.3.4.tar.gz 18400 SHA256 393bee900e505fd40efe4e4f266b5a60de6480daf52c195033e630a5f0fb42e1 SHA512 044adaf554d1de7c9ac984c6aa4b9339fdb9f909ab64d5020f86d1e431918fa83b139fa787e4fcc8575937a824a94ce9d6abb3f69f03d540e54d9f389b4f646b WHIRLPOOL 274986f6beb9ac5f1db6fc7737277052f0057a4d7c70b00a6c42f0f419a9005db5e73d953f2e048f2abd201090bc6b3e2f247efbc3e2fd339bd1b7bab4cb7269
26
27 diff --git a/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.4.ebuild b/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.4.ebuild
28 new file mode 100644
29 index 0000000..fc46881
30 --- /dev/null
31 +++ b/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.4.ebuild
32 @@ -0,0 +1,48 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +inherit bash-completion-r1
40 +
41 +DESCRIPTION="Bash completion for the mpv video player"
42 +HOMEPAGE="https://2ion.github.io/mpv-bash-completion/"
43 +SRC_URI="https://github.com/2ion/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3+"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="luajit"
49 +
50 +COMMON_DEPEND="media-video/mpv[cli]"
51 +RDEPEND="${COMMON_DEPEND}
52 + >=app-shells/bash-completion-2.3-r1
53 +"
54 +DEPEND="${COMMON_DEPEND}
55 + !luajit? ( dev-lang/lua:* )
56 + luajit? ( dev-lang/luajit:2 )
57 +"
58 +
59 +src_prepare() {
60 + default_src_prepare
61 + # Avoid 'mpv' make target that supports lua only.
62 + sed -i -e 's|check: mpv|check:|' Makefile || die
63 +}
64 +
65 +src_compile() {
66 + $(usex luajit 'luajit' 'lua') gen.lua > mpv || die
67 +}
68 +
69 +src_install() {
70 + dobashcomp mpv
71 + einstalldocs
72 +}
73 +
74 +pkg_postinst() {
75 + if ! has_version 'x11-apps/xrandr'; then
76 + echo
77 + elog "If you want completion of window sizes, please install 'x11-apps/xrandr'."
78 + echo
79 + fi
80 +}