Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/mpv-mpris/
Date: Sat, 06 Nov 2021 12:46:50
Message-Id: 1636202630.c5daf69b839cb5b11f98c0a0401bc0219724bbd2.cybertailor@gentoo
1 commit: c5daf69b839cb5b11f98c0a0401bc0219724bbd2
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Nov 6 12:40:34 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Sat Nov 6 12:43:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c5daf69b
7
8 media-video/mpv-mpris: add slot operators
9
10 * Use `dosym -r` instead of absolute paths
11
12 * Use dolib.so instead of doins
13
14 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
15
16 media-video/mpv-mpris/mpv-mpris-9999.ebuild | 24 +++++++++++-------------
17 1 file changed, 11 insertions(+), 13 deletions(-)
18
19 diff --git a/media-video/mpv-mpris/mpv-mpris-9999.ebuild b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
20 index ccf53bf09..afb890923 100644
21 --- a/media-video/mpv-mpris/mpv-mpris-9999.ebuild
22 +++ b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
23 @@ -20,23 +20,21 @@ SLOT="0"
24 LICENSE="MIT"
25 IUSE="+autoload"
26
27 -BDEPEND="virtual/pkgconfig"
28 -RDEPEND="media-video/mpv:=[cplugins,libmpv]
29 - dev-libs/glib"
30 +RDEPEND="
31 + dev-libs/glib:2
32 + media-video/mpv:=[cplugins,libmpv]
33 +"
34 DEPEND="${RDEPEND}"
35 -
36 -DOCS=(
37 - README.md
38 -)
39 +BDEPEND="virtual/pkgconfig"
40
41 src_compile() {
42 - emake CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
43 + tc-export CC
44 + emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
45 }
46
47 src_install() {
48 - insinto "/usr/$(get_libdir)/mpv"
49 - doins mpris.so
50 - use autoload && dosym "/usr/$(get_libdir)/mpv/mpris.so" "/etc/mpv/scripts/mpris.so"
51 + dolib.so mpris.so
52 + use autoload && dosym -r /usr/$(get_libdir)/mpv/mpris.so /etc/mpv/scripts/mpris.so
53 einstalldocs
54 }
55
56 @@ -45,8 +43,8 @@ pkg_postinst() {
57 elog
58 elog "The plugin has not been installed to /etc/mpv/scripts for autoloading."
59 elog "You have to activate it manually by passing"
60 - elog " \"/usr/$(get_libdir)/mpv/mpris.so\" "
61 - elog "as script option to mpv or symlinking the library to \"scripts/\" in your mpv"
62 + elog " '${EPREFIX}/usr/$(get_libdir)/mpv/mpris.so' "
63 + elog "as a script option to mpv or symlinking the library to 'scripts' in your mpv"
64 elog "config directory."
65 elog "Alternatively, activate the autoload use flag."
66 elog