From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A529138334 for ; Thu, 7 Jun 2018 18:55:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66BFDE0AF9; Thu, 7 Jun 2018 18:55:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2AEA7E0AF9 for ; Thu, 7 Jun 2018 18:55:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1CD77335CB0 for ; Thu, 7 Jun 2018 18:55:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 341CF29E for ; Thu, 7 Jun 2018 18:55:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1528397670.df0e9300c0179adc9f5e03ac9f80fb443281b81e.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/mpv-bash-completion/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/mpv-bash-completion/Manifest app-shells/mpv-bash-completion/mpv-bash-completion-3.3.17.ebuild X-VCS-Directories: app-shells/mpv-bash-completion/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: df0e9300c0179adc9f5e03ac9f80fb443281b81e X-VCS-Branch: master Date: Thu, 7 Jun 2018 18:55:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 19f8090c-2a25-4f7c-b35f-7d7dbcbdfcb5 X-Archives-Hash: c8b6993902c33e84713644487c92e343 commit: df0e9300c0179adc9f5e03ac9f80fb443281b81e Author: Ilya Tumaykin gmail com> AuthorDate: Tue Jun 5 17:53:13 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jun 7 18:54:30 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df0e9300 app-shells/mpv-bash-completion: verbump to 3.3.17 Package-Manager: Portage-2.3.40, Repoman-2.3.9 Closes: https://github.com/gentoo/gentoo/pull/8731 app-shells/mpv-bash-completion/Manifest | 1 + .../mpv-bash-completion-3.3.17.ebuild | 51 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/app-shells/mpv-bash-completion/Manifest b/app-shells/mpv-bash-completion/Manifest index 2f1e2f9d4c6..e274df5a909 100644 --- a/app-shells/mpv-bash-completion/Manifest +++ b/app-shells/mpv-bash-completion/Manifest @@ -1 +1,2 @@ DIST mpv-bash-completion-3.3.16.tar.gz 20125 BLAKE2B 1350445ea05474e553ade334c1f11e97828df11143021920a25787a295d6e870595e35dda6ccd048ed4e01e0e85443a5902893fed1aa1525e875649a93ef632d SHA512 d962cc911d571b0345ddee22ecae6faef307f2da44642d6db5223fb0e51d2b2087b038e1964cf8f1ed683bb95a3268a8ffc1fff2759561100b23921406a0e31f +DIST mpv-bash-completion-3.3.17.tar.gz 20873 BLAKE2B 5e44b315a4f148c27768a3b0c29d609b679e3d489dd79803795a75a9289816ed13797cc04c748410ba3302a2619dedad21772f2d914b2c3ff5c73189e4e348df SHA512 a0b1ae4b07bd3e5fc95fea135aa5391d0efb0d2c1e4ccbb712cf0911b9e07b23a7bfb27d43b615988610f545f1bc62226998295573480ab657e3b18966d48991 diff --git a/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.17.ebuild b/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.17.ebuild new file mode 100644 index 00000000000..2aca0b8cc66 --- /dev/null +++ b/app-shells/mpv-bash-completion/mpv-bash-completion-3.3.17.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 + +DESCRIPTION="Bash completion for the mpv video player" +HOMEPAGE="https://2ion.github.io/mpv-bash-completion/" +SRC_URI="https://github.com/2ion/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="luajit" + +COMMON_DEPEND=">=media-video/mpv-0.25.0[cli]" +RDEPEND="${COMMON_DEPEND} + >=app-shells/bash-completion-2.3-r1 +" +DEPEND="${COMMON_DEPEND} + !luajit? ( dev-lang/lua:* ) + luajit? ( dev-lang/luajit:2 ) +" + +src_prepare() { + default_src_prepare + # Avoid 'mpv' make target that supports lua only. + sed -i -e 's|check: mpv|check:|' Makefile || die +} + +src_compile() { + # Prevent access violations from completion generation. + # See Gentoo bug 656086. + addpredict /dev/dri + + $(usex luajit 'luajit' 'lua') gen.lua > mpv || die +} + +src_install() { + dobashcomp mpv + einstalldocs +} + +pkg_postinst() { + if ! has_version 'x11-apps/xrandr'; then + elog + elog "If you want completion of window sizes, please install 'x11-apps/xrandr'." + elog + fi +}