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: Sat, 05 Mar 2022 23:08:18
Message-Id: 1646521652.791bf41f652e797c629ef5ff8e5aaecbbe422c25.freyermuth@gentoo
1 commit: 791bf41f652e797c629ef5ff8e5aaecbbe422c25
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sat Mar 5 23:07:32 2022 +0000
4 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
5 CommitDate: Sat Mar 5 23:07:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=791bf41f
7
8 media-video/mpv-mpris: Add unit tests in live ebuild.
9
10 Upstream now has a functional smoke test suite
11 which we can leverage to implement tests.
12
13 Package-Manager: Portage-3.0.30, Repoman-3.0.3
14 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
15
16 media-video/mpv-mpris/mpv-mpris-9999.ebuild | 24 +++++++++++++++++++++---
17 1 file changed, 21 insertions(+), 3 deletions(-)
18
19 diff --git a/media-video/mpv-mpris/mpv-mpris-9999.ebuild b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
20 index afb890923..d56b88791 100644
21 --- a/media-video/mpv-mpris/mpv-mpris-9999.ebuild
22 +++ b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
23 @@ -1,4 +1,4 @@
24 -# Copyright 1999-2021 Gentoo Authors
25 +# Copyright 1999-2022 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=8
29 @@ -18,20 +18,38 @@ fi
30
31 SLOT="0"
32 LICENSE="MIT"
33 -IUSE="+autoload"
34 +IUSE="+autoload test"
35
36 RDEPEND="
37 dev-libs/glib:2
38 media-video/mpv:=[cplugins,libmpv]
39 "
40 DEPEND="${RDEPEND}"
41 -BDEPEND="virtual/pkgconfig"
42 +BDEPEND="virtual/pkgconfig
43 + test? (
44 + app-misc/jq
45 + app-shells/bash
46 + app-text/jo
47 + media-sound/playerctl
48 + net-misc/socat
49 + sys-apps/dbus
50 + virtual/awk
51 + x11-apps/xauth
52 + x11-misc/xvfb-run
53 + x11-themes/sound-theme-freedesktop
54 + )
55 +"
56 +RESTRICT="!test? ( test )"
57
58 src_compile() {
59 tc-export CC
60 emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
61 }
62
63 +src_test() {
64 + emake test
65 +}
66 +
67 src_install() {
68 dolib.so mpris.so
69 use autoload && dosym -r /usr/$(get_libdir)/mpv/mpris.so /etc/mpv/scripts/mpris.so