mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
media-video/mpv-mpris: Add unit tests in live ebuild.
Upstream now has a functional smoke test suite which we can leverage to implement tests. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -18,20 +18,38 @@ fi
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
IUSE="+autoload"
|
||||
IUSE="+autoload test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
media-video/mpv:=[cplugins,libmpv]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
test? (
|
||||
app-misc/jq
|
||||
app-shells/bash
|
||||
app-text/jo
|
||||
media-sound/playerctl
|
||||
net-misc/socat
|
||||
sys-apps/dbus
|
||||
virtual/awk
|
||||
x11-apps/xauth
|
||||
x11-misc/xvfb-run
|
||||
x11-themes/sound-theme-freedesktop
|
||||
)
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so mpris.so
|
||||
use autoload && dosym -r /usr/$(get_libdir)/mpv/mpris.so /etc/mpv/scripts/mpris.so
|
||||
|
||||
Reference in New Issue
Block a user