diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2022-06-17 17:34:35 +0200 |
---|---|---|
committer | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2022-06-17 17:40:20 +0200 |
commit | 2f5b011fc455e0f83f36446bf16349d3be9cf137 (patch) | |
tree | 1f38ca94eecbc5b5c919eb67911a55be5367063c | |
parent | mpv-plugin/mpv-mpris: drop 0.7, 0.7.1 (diff) | |
download | guru-2f5b011f.tar.gz guru-2f5b011f.tar.bz2 guru-2f5b011f.zip |
mpv-plugin/mpv-mpris: Modernize live ebuild, use mpv-plugin eclass
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
-rw-r--r-- | mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild | 29 |
1 files 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 -} |