From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D3327158091 for ; Fri, 17 Jun 2022 15:40:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5CA4E0A88; Fri, 17 Jun 2022 15:40:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A30D5E0A88 for ; Fri, 17 Jun 2022 15:40:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 65EB3341E89 for ; Fri, 17 Jun 2022 15:40:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97DC3507 for ; Fri, 17 Jun 2022 15:40:24 +0000 (UTC) From: "Oliver Freyermuth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Oliver Freyermuth" Message-ID: <1655480420.2f5b011fc455e0f83f36446bf16349d3be9cf137.freyermuth@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: mpv-plugin/mpv-mpris/ X-VCS-Repository: repo/proj/guru X-VCS-Files: mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild X-VCS-Directories: mpv-plugin/mpv-mpris/ X-VCS-Committer: freyermuth X-VCS-Committer-Name: Oliver Freyermuth X-VCS-Revision: 2f5b011fc455e0f83f36446bf16349d3be9cf137 X-VCS-Branch: dev Date: Fri, 17 Jun 2022 15:40:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d37bc4fe-f210-4654-b2d7-6d200565d1e7 X-Archives-Hash: baa4704ff27e28ba87dae42be570967b commit: 2f5b011fc455e0f83f36446bf16349d3be9cf137 Author: Oliver Freyermuth googlemail com> AuthorDate: Fri Jun 17 15:34:35 2022 +0000 Commit: Oliver Freyermuth googlemail com> 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 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 -}