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: Thu, 30 Mar 2017 22:26:27
Message-Id: 1490912775.6743e44892d2ff6278d18f08d821d93d7c846595.monsieurp@gentoo
1 commit: 6743e44892d2ff6278d18f08d821d93d7c846595
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Sun Mar 26 22:17:27 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 30 22:26:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6743e448
7
8 app-shells/mpv-bash-completion: verbump to 3.3.11.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 app-shells/mpv-bash-completion/Manifest | 1 +
13 .../mpv-bash-completion-3.3.11.ebuild | 47 ++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/app-shells/mpv-bash-completion/Manifest b/app-shells/mpv-bash-completion/Manifest
17 index cf92340a02c..7e422bbad15 100644
18 --- a/app-shells/mpv-bash-completion/Manifest
19 +++ b/app-shells/mpv-bash-completion/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mpv-bash-completion-3.3.10.tar.gz 19113 SHA256 ead8c528b9e3862063499f241560d63e9b0786f770d666e92eeb0a371c172baf SHA512 0344b5dca82af57bf32e142bd70229067079eed1f152a0803c764f63c39dabbf6b283f3624b87f863b02c6dd3fac77010ef014523b835d0f1a24f4fd4ff22e0d WHIRLPOOL 926f23ef86a11c169d881d480354632bf723a6e7160e8f922c8a8fca96aa1012ff356c87a0f529020bac3c09233ad73693e96b03a2e7f1c91b59855e3a9e616a
22 +DIST mpv-bash-completion-3.3.11.tar.gz 19225 SHA256 b74a180c3318bafc9e8d240bb90f2de1f26a653776abd18f6f7c188fe8a38626 SHA512 ac0244c048c7d468fb6f971e58c631c39c919be9a049bb600abed9df9b2ae1429aba918714f6ad60b3cec48bf4dbcf81673946bc5736c0deb0d57585af460f21 WHIRLPOOL 1e25ffb8baba95381463d9ddd1b6ca18d8e954470fa8a384d00645049978869bc00408e7596fe0878c6a6a7e8fe8cf5567ad47a71a1f69945ca469dc560aa799
23 DIST mpv-bash-completion-3.3.8.tar.gz 19002 SHA256 67bb3565daafb1e3f64b24262b0859f7843ac052960e0159e3fe3a375ffed181 SHA512 4d6cfc3ac2d1fd6a28be1a40e3ca28d61f5d9ed40a850c5c60e45501b958b929d6ef9266027d2be95ed0c2b0dedccfdbb04fe4115bb7bcfd39435cb73f2dc452 WHIRLPOOL 62012925d3fb212c473e889930c1add93ce36533313a677cc9ddbc7acce2d9dfc1a18f9054dad901f7a0cb2b57c56a05f302f1fadc83b4bbeda5baa06fb2c7c8
24
25 diff --git a/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.11.ebuild b/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.11.ebuild
26 new file mode 100644
27 index 00000000000..dc4633a3b92
28 --- /dev/null
29 +++ b/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.11.ebuild
30 @@ -0,0 +1,47 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit bash-completion-r1
37 +
38 +DESCRIPTION="Bash completion for the mpv video player"
39 +HOMEPAGE="https://2ion.github.io/mpv-bash-completion/"
40 +SRC_URI="https://github.com/2ion/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-3+"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE="luajit"
46 +
47 +COMMON_DEPEND=">=media-video/mpv-0.14.0[cli]"
48 +RDEPEND="${COMMON_DEPEND}
49 + >=app-shells/bash-completion-2.3-r1
50 +"
51 +DEPEND="${COMMON_DEPEND}
52 + !luajit? ( dev-lang/lua:* )
53 + luajit? ( dev-lang/luajit:2 )
54 +"
55 +
56 +src_prepare() {
57 + default_src_prepare
58 + # Avoid 'mpv' make target that supports lua only.
59 + sed -i -e 's|check: mpv|check:|' Makefile || die
60 +}
61 +
62 +src_compile() {
63 + $(usex luajit 'luajit' 'lua') gen.lua > mpv || die
64 +}
65 +
66 +src_install() {
67 + dobashcomp mpv
68 + einstalldocs
69 +}
70 +
71 +pkg_postinst() {
72 + if ! has_version 'x11-apps/xrandr'; then
73 + elog
74 + elog "If you want completion of window sizes, please install 'x11-apps/xrandr'."
75 + elog
76 + fi
77 +}