From: "Oliver Freyermuth" <o.freyermuth@googlemail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/mpv-mpris/
Date: Tue, 2 Jun 2020 16:33:48 +0000 (UTC) [thread overview]
Message-ID: <1591115624.99f678492d15f81466c38763b0fa2c48d0d6cc47.freyermuth@gentoo> (raw)
commit: 99f678492d15f81466c38763b0fa2c48d0d6cc47
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Tue Jun 2 16:33:44 2020 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Tue Jun 2 16:33:44 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=99f67849
media-video/mpv-mpris: New package.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
media-video/mpv-mpris/Manifest | 1 +
media-video/mpv-mpris/metadata.xml | 15 +++++++++
media-video/mpv-mpris/mpv-mpris-0.5.ebuild | 48 +++++++++++++++++++++++++++++
media-video/mpv-mpris/mpv-mpris-9999.ebuild | 48 +++++++++++++++++++++++++++++
4 files changed, 112 insertions(+)
diff --git a/media-video/mpv-mpris/Manifest b/media-video/mpv-mpris/Manifest
new file mode 100644
index 0000000..21feb4b
--- /dev/null
+++ b/media-video/mpv-mpris/Manifest
@@ -0,0 +1 @@
+DIST mpv-mpris-0.5.tar.gz 8559 BLAKE2B 7eef231ab3855ed3f0a708484881f1df93152d9b79be491986ed0da2cd54870101d5fd90a35d95344b886a6af930c303b3f8c0bc480b55c8799ec8b96e7acdab SHA512 9c28b4f3fdcd6bddf3824125f994807d7a31f8e7398178296dab9d4422d3cc71a0b798ae75fe68c890556c993fb04bf5d7ffa379676312840fdf219bf4a974f7
diff --git a/media-video/mpv-mpris/metadata.xml b/media-video/mpv-mpris/metadata.xml
new file mode 100644
index 0000000..b7574b8
--- /dev/null
+++ b/media-video/mpv-mpris/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>o.freyermuth@googlemail.com</email>
+ <name>Oliver Freyermuth</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/hoyon/mpv-mpris/issues</bugs-to>
+ <remote-id type="github">hoyon/mpv-mpris</remote-id>
+ </upstream>
+ <use>
+ <flag name="autoload">Load plugin automatically</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-video/mpv-mpris/mpv-mpris-0.5.ebuild b/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
new file mode 100644
index 0000000..290300d
--- /dev/null
+++ b/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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
+
+SLOT="0"
+LICENSE="MIT"
+IUSE="+autoload"
+
+RDEPEND="media-video/mpv:=[cplugins]
+ dev-libs/glib"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(
+ README.md
+)
+
+src_install() {
+ insinto "/usr/$(get_libdir)/mpv"
+ doins mpris.so
+ use autoload && dosym "/usr/$(get_libdir)/mpv/mpris.so" "/etc/mpv/scripts/mpris.so"
+ einstalldocs
+}
+
+pkg_postinst() {
+ if ! use autoload; then
+ elog
+ elog "The plugin has not been installed to /etc/mpv/scripts for autoloading."
+ elog "You have to activate it manually by passing"
+ elog " \"/usr/$(get_libdir)/mpv/mpris.so\" "
+ elog "as script option to mpv or symlinking the library to \"scripts/\" in your mpv"
+ elog "config directory."
+ elog "Alternatively, activate the autoload use flag."
+ elog
+ fi
+}
diff --git a/media-video/mpv-mpris/mpv-mpris-9999.ebuild b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
new file mode 100644
index 0000000..290300d
--- /dev/null
+++ b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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
+
+SLOT="0"
+LICENSE="MIT"
+IUSE="+autoload"
+
+RDEPEND="media-video/mpv:=[cplugins]
+ dev-libs/glib"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(
+ README.md
+)
+
+src_install() {
+ insinto "/usr/$(get_libdir)/mpv"
+ doins mpris.so
+ use autoload && dosym "/usr/$(get_libdir)/mpv/mpris.so" "/etc/mpv/scripts/mpris.so"
+ einstalldocs
+}
+
+pkg_postinst() {
+ if ! use autoload; then
+ elog
+ elog "The plugin has not been installed to /etc/mpv/scripts for autoloading."
+ elog "You have to activate it manually by passing"
+ elog " \"/usr/$(get_libdir)/mpv/mpris.so\" "
+ elog "as script option to mpv or symlinking the library to \"scripts/\" in your mpv"
+ elog "config directory."
+ elog "Alternatively, activate the autoload use flag."
+ elog
+ fi
+}
next reply other threads:[~2020-06-02 16:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-02 16:33 Oliver Freyermuth [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-06-02 17:05 [gentoo-commits] repo/proj/guru:dev commit in: media-video/mpv-mpris/ Oliver Freyermuth
2020-06-13 1:30 Oliver Freyermuth
2021-04-22 22:18 Oliver Freyermuth
2021-04-23 7:04 Oliver Freyermuth
2021-10-25 0:20 Oliver Freyermuth
2021-11-06 12:46 Anna Vyalkova
2022-03-05 23:08 Oliver Freyermuth
2022-03-05 23:08 Oliver Freyermuth
2022-03-05 23:18 Oliver Freyermuth
2022-03-05 23:18 Oliver Freyermuth
2022-03-18 4:04 Anna Vyalkova
2022-04-06 21:38 Oliver Freyermuth
2022-04-06 21:38 Oliver Freyermuth
2022-04-14 9:26 Nicola Smaniotto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1591115624.99f678492d15f81466c38763b0fa2c48d0d6cc47.freyermuth@gentoo \
--to=o.freyermuth@googlemail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox