mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
See-also: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d25fad95cbaa525c8945d8e582c749d49524f49 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
60 lines
1.1 KiB
Bash
60 lines
1.1 KiB
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MPV_REQ_USE="cplugins(+),libmpv"
|
|
inherit mpv-plugin toolchain-funcs
|
|
|
|
DESCRIPTION="MPRIS plugin for mpv"
|
|
HOMEPAGE="https://github.com/hoyon/mpv-mpris"
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/hoyon/${PN}.git"
|
|
else
|
|
SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~x86"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
IUSE="test"
|
|
|
|
RDEPEND="
|
|
dev-libs/glib:2
|
|
media-video/ffmpeg:=
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
# temporary dep for tests on media-video/mpv due to https://github.com/mpv-player/mpv/pull/11468
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
test? (
|
|
app-misc/jq
|
|
app-text/jo
|
|
media-sound/playerctl
|
|
|| (
|
|
media-video/mpv[lua]
|
|
media-video/mpv[javascript]
|
|
>=media-video/mpv-0.36
|
|
)
|
|
net-misc/socat
|
|
sys-apps/dbus
|
|
x11-apps/xauth
|
|
x11-misc/xvfb-run
|
|
x11-themes/sound-theme-freedesktop
|
|
)
|
|
"
|
|
|
|
MPV_PLUGIN_FILES=( mpris.so )
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
src_compile() {
|
|
tc-export CC
|
|
emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
|
|
}
|
|
|
|
src_test() {
|
|
emake test
|
|
}
|