commit: e0fa4466c149f0f0d96dfcea8f1e1d6a5e5a1be7 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> AuthorDate: Tue Jan 6 02:08:44 2026 +0000 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> CommitDate: Tue Jan 6 02:08:44 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e0fa4466
mpv-plugin/mpv-mpris: add 1.2 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> mpv-plugin/mpv-mpris/Manifest | 1 + mpv-plugin/mpv-mpris/mpv-mpris-1.2.ebuild | 59 +++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/mpv-plugin/mpv-mpris/Manifest b/mpv-plugin/mpv-mpris/Manifest index e3727d11bf..aa2927d3fe 100644 --- a/mpv-plugin/mpv-mpris/Manifest +++ b/mpv-plugin/mpv-mpris/Manifest @@ -1,2 +1,3 @@ DIST mpv-mpris-1.0.tar.gz 13974 BLAKE2B fd74326ef24f080505f7da075603b16a44a3c44cebe716ab7c7b013d49e0247e9f4c7b52e842044419a561d3d60cf806682e68343f1f4679e11d562eb8308385 SHA512 edc8218477a3b9b6c0568a122f3c02efde86a4de97f84872b767031e58c6916d4e3b34de75275538e8f18f28f15a139d8fca8631a76cecc04d8df88c457d5fad DIST mpv-mpris-1.1.tar.gz 14511 BLAKE2B 17ad84088077748d1604aec0c6777b0edde6cddfe6dc6218f0e41f84547acbcf08b9b92f622345d27754e1300bbada250af0ecf3140885f163df41f99b3c43b5 SHA512 81622e5e34a8ebde735c39a1615569c833d6cf53c70b4f77794788fd8b19982cc33a71ff5768027826dafc608fa72a089e38c0925a907fa249f5c527d17f9541 +DIST mpv-mpris-1.2.tar.gz 15181 BLAKE2B 8e36f0e80b57ddd821463a42c19b4740566351ed2eeeb85917181d38dbb930654083298349a312e1ff4321d9ae34daac0f85779ef82d5e6fe13d4a2f058230b8 SHA512 251348a14b4efbfd3eb8a482bcabb2a53a9ee4d33b89f6066efcfc60b6c8bcad6d953b10977d9cfbd23e28621f9117b436002b74ffa33deaec5ea224d9ce6753 diff --git a/mpv-plugin/mpv-mpris/mpv-mpris-1.2.ebuild b/mpv-plugin/mpv-mpris/mpv-mpris-1.2.ebuild new file mode 100644 index 0000000000..3b76d1b4bc --- /dev/null +++ b/mpv-plugin/mpv-mpris/mpv-mpris-1.2.ebuild @@ -0,0 +1,59 @@ +# 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 +}
