Gentoo Archives: gentoo-commits

From: Oliver Freyermuth <o.freyermuth@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: mpv-plugin/mpv-mpris/
Date: Sat, 10 Sep 2022 15:37:21
Message-Id: 1662824210.292e5141cb3735f1e7656c3a7747ca7cafca9164.freyermuth@gentoo
1 commit: 292e5141cb3735f1e7656c3a7747ca7cafca9164
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sat Sep 10 15:36:50 2022 +0000
4 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
5 CommitDate: Sat Sep 10 15:36:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=292e5141
7
8 mpv-plugin/mpv-mpris: add 0.9
9
10 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
11
12 mpv-plugin/mpv-mpris/Manifest | 1 +
13 mpv-plugin/mpv-mpris/mpv-mpris-0.9.ebuild | 53 +++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/mpv-plugin/mpv-mpris/Manifest b/mpv-plugin/mpv-mpris/Manifest
17 index c6d93f775..3a64844c2 100644
18 --- a/mpv-plugin/mpv-mpris/Manifest
19 +++ b/mpv-plugin/mpv-mpris/Manifest
20 @@ -1,3 +1,4 @@
21 DIST mpv-mpris-0.7.1.tar.gz 13432 BLAKE2B 884204c2186bc3b52378113dde87e58578b3811ec1a40576eb30e779fe3a3575ad9db802a51434e9fc3d22785db6036f898c76acab61780fac4b35276a17524f SHA512 7e928bbbf85b5c8e1e92ce51e65986ef7a7fe27a1e382b0148cdd70e22e5320be37a573c6206b3a1ab05119d9d24b861fd45081a008111f1da37673aa3896f23
22 DIST mpv-mpris-0.8.1.tar.gz 13469 BLAKE2B a284a9ffb7f0c36254bcec6d5cc102e19bca551b02657c1802cc0790e7ce61866b8928fa42e0de483463a05e2e513d90f53477b3fd5ca2cf29c1ce0fe8efc766 SHA512 a7ed2c7d5d0b7eb323026ae7b21c8a55e02a90b9fe761d7162ed7162200cf00793842f04a7a2ac841f7de3196657cfb17029ce7285ea977cd35284879db0184d
23 DIST mpv-mpris-0.8.tar.gz 13477 BLAKE2B 57ac9e0604bfcb979595f42a9bede20cb4e27c07e768cade3a996bbcb7226cf01704cfc52448a5eb363e1aba1e0b48e90edfcc858a7913649c740c0fa82c5ed1 SHA512 97387caa98296bbcb71c847ada45f8baac8cfb9536554d38accd706800d9b867ac0012d330e9b548926184fff9e4952ff90b22a3e7d42c68ac74fbd6d61c3006
24 +DIST mpv-mpris-0.9.tar.gz 13746 BLAKE2B bcfb6efd51265409545e007980774b1ee7b7415fd89788c909be95d0fa12175c8ef9529d18c608345e88b6cba2b11f98a7bcb6cc1977a8b791b7025b6197c269 SHA512 82845320fe8d1ce903e8c9027070339d0281ace3887743728df0c0b4abb12de59bd7e86927d86b2669c54f80fee03d5f65e2c086ddafd5bcf55039db51bf64fc
25
26 diff --git a/mpv-plugin/mpv-mpris/mpv-mpris-0.9.ebuild b/mpv-plugin/mpv-mpris/mpv-mpris-0.9.ebuild
27 new file mode 100644
28 index 000000000..ba02bf7f6
29 --- /dev/null
30 +++ b/mpv-plugin/mpv-mpris/mpv-mpris-0.9.ebuild
31 @@ -0,0 +1,53 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +MPV_REQ_USE="cplugins,libmpv"
38 +inherit mpv-plugin toolchain-funcs
39 +
40 +DESCRIPTION="MPRIS plugin for mpv"
41 +HOMEPAGE="https://github.com/hoyon/mpv-mpris"
42 +
43 +if [[ ${PV} == *9999* ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/hoyon/${PN}.git"
46 +else
47 + SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +fi
50 +
51 +LICENSE="MIT"
52 +IUSE="test"
53 +
54 +RDEPEND="
55 + dev-libs/glib:2
56 +"
57 +DEPEND="${RDEPEND}"
58 +BDEPEND="virtual/pkgconfig
59 + test? (
60 + app-misc/jq
61 + app-shells/bash
62 + app-text/jo
63 + media-sound/playerctl
64 + net-misc/socat
65 + sys-apps/dbus
66 + virtual/awk
67 + x11-apps/xauth
68 + x11-misc/xvfb-run
69 + x11-themes/sound-theme-freedesktop
70 + )
71 +"
72 +
73 +MPV_PLUGIN_FILES=( mpris.so )
74 +
75 +RESTRICT="!test? ( test )"
76 +
77 +src_compile() {
78 + tc-export CC
79 + emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
80 +}
81 +
82 +src_test() {
83 + emake test
84 +}