public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: mpv-plugin/mpv-mpris/
Date: Sat, 18 Jun 2022 19:19:57 +0000 (UTC)	[thread overview]
Message-ID: <1655480420.2f5b011fc455e0f83f36446bf16349d3be9cf137.andrewammerlaan@gentoo> (raw)

commit:     2f5b011fc455e0f83f36446bf16349d3be9cf137
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Fri Jun 17 15:34:35 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Jun 17 15:40:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f5b011f

mpv-plugin/mpv-mpris: Modernize live ebuild, use mpv-plugin eclass

Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>

 mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild | 29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)

diff --git a/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild b/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild
index 2b4e36729..ba02bf7f6 100644
--- a/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild
+++ b/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+MPV_REQ_USE="cplugins,libmpv"
+inherit mpv-plugin toolchain-funcs
 
 DESCRIPTION="MPRIS plugin for mpv"
 HOMEPAGE="https://github.com/hoyon/mpv-mpris"
@@ -16,13 +17,11 @@ else
 	KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 fi
 
-SLOT="0"
 LICENSE="MIT"
-IUSE="+autoload test"
+IUSE="test"
 
 RDEPEND="
 	dev-libs/glib:2
-	media-video/mpv:=[cplugins,libmpv]
 "
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig
@@ -39,6 +38,9 @@ BDEPEND="virtual/pkgconfig
 		x11-themes/sound-theme-freedesktop
 	)
 "
+
+MPV_PLUGIN_FILES=( mpris.so )
+
 RESTRICT="!test? ( test )"
 
 src_compile() {
@@ -49,22 +51,3 @@ src_compile() {
 src_test() {
 	emake test
 }
-
-src_install() {
-	newlib.so mpris.so ${PN}.so
-	use autoload && dosym -r /usr/$(get_libdir)/${PN}.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 " '${EPREFIX}/usr/$(get_libdir)/${PN}.so'"
-		elog "as a 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
-}


             reply	other threads:[~2022-06-18 19:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-18 19:19 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-28 10:01 [gentoo-commits] repo/proj/guru:master commit in: mpv-plugin/mpv-mpris/ David Roman
2023-03-31 10:16 Florian Schmaus
2022-09-12 14:21 Florian Schmaus
2022-09-12 14:21 Florian Schmaus
2022-06-18 19:19 Andrew Ammerlaan
2022-06-18 19:19 Andrew Ammerlaan
2022-06-18 19:19 Andrew Ammerlaan

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=1655480420.2f5b011fc455e0f83f36446bf16349d3be9cf137.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --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