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: media-video/mpv-mpris/
Date: Wed, 06 Apr 2022 21:38:12
Message-Id: 1649281056.66b2e16ccbd1efb1eb55965ef8853082dc1d6c47.freyermuth@gentoo
1 commit: 66b2e16ccbd1efb1eb55965ef8853082dc1d6c47
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Wed Apr 6 21:37:36 2022 +0000
4 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
5 CommitDate: Wed Apr 6 21:37:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=66b2e16c
7
8 media-video/mpv-mpris: add 0.7.1
9
10 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
11
12 media-video/mpv-mpris/Manifest | 1 +
13 media-video/mpv-mpris/mpv-mpris-0.7.1.ebuild | 70 ++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/media-video/mpv-mpris/Manifest b/media-video/mpv-mpris/Manifest
17 index cee0cf89e..afd0ebfa1 100644
18 --- a/media-video/mpv-mpris/Manifest
19 +++ b/media-video/mpv-mpris/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mpv-mpris-0.6.tar.gz 8910 BLAKE2B 44888f9a0945bf850ba48a4b2a5b2d03325e05b17111a6184c3540eaf15745c7bb18006b03dd018599e017837c005bf10dafc910b3e031e440a511a5496d6ab4 SHA512 da92e4cf6541f0f18fc1c779ab87eef914e6e76a94bfe1259b323953a11654b228d02c4d352ea0c588308bedc8aa807bdaa41023917629a90d50269f454e256d
22 +DIST mpv-mpris-0.7.1.tar.gz 13432 BLAKE2B 884204c2186bc3b52378113dde87e58578b3811ec1a40576eb30e779fe3a3575ad9db802a51434e9fc3d22785db6036f898c76acab61780fac4b35276a17524f SHA512 7e928bbbf85b5c8e1e92ce51e65986ef7a7fe27a1e382b0148cdd70e22e5320be37a573c6206b3a1ab05119d9d24b861fd45081a008111f1da37673aa3896f23
23 DIST mpv-mpris-0.7.tar.gz 12982 BLAKE2B db919cdad6528519211725694f63871e371a33a331c46eebb202fa87d452d1cf30cecf3d4c2b26cb187cfa2c4cdd53411b88e6e7855510ffbaeef28ab3eb8346 SHA512 b370c9550622302cfdd07c21ae2f03a4e66e80da02e8f38c68d447ef273ae582ad6d918e207a9fb8c917a851163c6aadc08d3d68ad8e70ec85b37732c0cac96f
24
25 diff --git a/media-video/mpv-mpris/mpv-mpris-0.7.1.ebuild b/media-video/mpv-mpris/mpv-mpris-0.7.1.ebuild
26 new file mode 100644
27 index 000000000..2b4e36729
28 --- /dev/null
29 +++ b/media-video/mpv-mpris/mpv-mpris-0.7.1.ebuild
30 @@ -0,0 +1,70 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="MPRIS plugin for mpv"
39 +HOMEPAGE="https://github.com/hoyon/mpv-mpris"
40 +
41 +if [[ ${PV} == *9999* ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/hoyon/${PN}.git"
44 +else
45 + SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
47 +fi
48 +
49 +SLOT="0"
50 +LICENSE="MIT"
51 +IUSE="+autoload test"
52 +
53 +RDEPEND="
54 + dev-libs/glib:2
55 + media-video/mpv:=[cplugins,libmpv]
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 +RESTRICT="!test? ( test )"
73 +
74 +src_compile() {
75 + tc-export CC
76 + emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
77 +}
78 +
79 +src_test() {
80 + emake test
81 +}
82 +
83 +src_install() {
84 + newlib.so mpris.so ${PN}.so
85 + use autoload && dosym -r /usr/$(get_libdir)/${PN}.so /etc/mpv/scripts/mpris.so
86 + einstalldocs
87 +}
88 +
89 +pkg_postinst() {
90 + if ! use autoload; then
91 + elog
92 + elog "The plugin has not been installed to /etc/mpv/scripts for autoloading."
93 + elog "You have to activate it manually by passing"
94 + elog " '${EPREFIX}/usr/$(get_libdir)/${PN}.so'"
95 + elog "as a script option to mpv or symlinking the library to 'scripts' in your mpv"
96 + elog "config directory."
97 + elog "Alternatively, activate the autoload use flag."
98 + elog
99 + fi
100 +}