commit: b8477664e800c33fd4236d21da3401c78ba81c5a Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> AuthorDate: Thu Apr 14 09:18:09 2022 +0000 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> CommitDate: Thu Apr 14 09:26:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8477664
media-video/mpv-mpris: add 0.7.1-r1 -r1 uses the new eclass, 0.7.1 is left in case something is wrong. Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> media-video/mpv-mpris/mpv-mpris-0.7.1-r1.ebuild | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/media-video/mpv-mpris/mpv-mpris-0.7.1-r1.ebuild b/media-video/mpv-mpris/mpv-mpris-0.7.1-r1.ebuild new file mode 100644 index 000000000..ba02bf7f6 --- /dev/null +++ b/media-video/mpv-mpris/mpv-mpris-0.7.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 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 ~amd64-linux ~x86-linux" +fi + +LICENSE="MIT" +IUSE="test" + +RDEPEND=" + dev-libs/glib:2 +" +DEPEND="${RDEPEND}" +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 + ) +" + +MPV_PLUGIN_FILES=( mpris.so ) + +RESTRICT="!test? ( test )" + +src_compile() { + tc-export CC + emake PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_test() { + emake test +}
