aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2022-06-18 04:12:03 +0200
committerOliver Freyermuth <o.freyermuth@googlemail.com>2022-06-18 04:12:03 +0200
commit4d6c5146cc274434ad65b7eb570f3e2206c7efe7 (patch)
tree0ce74341967a3d18c406b01c5f7cdfcfebcb7bbb /mpv-plugin/mpv-mpris/mpv-mpris-0.8.1.ebuild
parentsys-apps/ov: drop 0.11.0, add 0.11.2 (diff)
downloadguru-4d6c5146cc274434ad65b7eb570f3e2206c7efe7.tar.gz
guru-4d6c5146cc274434ad65b7eb570f3e2206c7efe7.tar.bz2
guru-4d6c5146cc274434ad65b7eb570f3e2206c7efe7.zip
mpv-plugin/mpv-mpris: add 0.8.1
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
Diffstat (limited to 'mpv-plugin/mpv-mpris/mpv-mpris-0.8.1.ebuild')
-rw-r--r--mpv-plugin/mpv-mpris/mpv-mpris-0.8.1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/mpv-plugin/mpv-mpris/mpv-mpris-0.8.1.ebuild b/mpv-plugin/mpv-mpris/mpv-mpris-0.8.1.ebuild
new file mode 100644
index 000000000..ba02bf7f6
--- /dev/null
+++ b/mpv-plugin/mpv-mpris/mpv-mpris-0.8.1.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
+}