1 |
commit: ddccc15937e405717069c393f66aaea53fabb955 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 28 15:45:41 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 22:53:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddccc159 |
7 |
|
8 |
media-video/mpv: notify users about new OSC layout since 0.21.0 in 9999 |
9 |
|
10 |
Nobody complained about new OSC layout since 0.21.0 (October 2016). |
11 |
Thus don't bother ~arch users with it, but be nice to stable users. |
12 |
|
13 |
Update softvol message to point to Gentoo wiki instead of bugzilla. |
14 |
Gentoo mpv wiki page suffered a complete rewrite and became useful. |
15 |
Version constraint at this point can be relaxed to just 0.18.1. |
16 |
|
17 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/3718 |
19 |
|
20 |
media-video/mpv/mpv-9999.ebuild | 25 ++++++++++++++++--------- |
21 |
1 file changed, 16 insertions(+), 9 deletions(-) |
22 |
|
23 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
24 |
index 3158f6f..145cb5b 100644 |
25 |
--- a/media-video/mpv/mpv-9999.ebuild |
26 |
+++ b/media-video/mpv/mpv-9999.ebuild |
27 |
@@ -298,23 +298,30 @@ pkg_preinst() { |
28 |
} |
29 |
|
30 |
pkg_postinst() { |
31 |
- local rv softvol_0_18_1=0 |
32 |
+ local rv softvol_0_18_1=0 osc_0_21_0=0 |
33 |
+ |
34 |
for rv in ${REPLACING_VERSIONS}; do |
35 |
- version_compare ${rv} 0.18.1-r1 |
36 |
+ version_compare ${rv} 0.18.1 |
37 |
[[ $? -eq 1 ]] && softvol_0_18_1=1 |
38 |
+ version_compare ${rv} 0.21.0 |
39 |
+ [[ $? -eq 1 ]] && osc_0_21_0=1 |
40 |
done |
41 |
|
42 |
if [[ ${softvol_0_18_1} -eq 1 ]]; then |
43 |
- elog "Starting from version 0.18.1 the software volume control is" |
44 |
- elog "enabled by default, see:" |
45 |
- elog "https://github.com/mpv-player/mpv/blob/v0.18.1/DOCS/interface-changes.rst" |
46 |
- elog "https://github.com/mpv-player/mpv/issues/3322" |
47 |
- elog |
48 |
+ elog "Since version 0.18.1 the software volume control is always enabled." |
49 |
elog "This means that volume controls don't change the system volume," |
50 |
elog "e.g. per-application volume with PulseAudio." |
51 |
- elog "If you want to restore the old behaviour, please refer to" |
52 |
+ elog "If you want to restore the previous behaviour, please refer to" |
53 |
+ elog |
54 |
+ elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
55 |
+ elog |
56 |
+ fi |
57 |
+ |
58 |
+ if [[ ${osc_0_21_0} -eq 1 ]]; then |
59 |
+ elog "In version 0.21.0 the default OSC layout was changed." |
60 |
+ elog "If you want to restore the previous layout, please refer to" |
61 |
elog |
62 |
- elog "https://bugs.gentoo.org/show_bug.cgi?id=588492#c7" |
63 |
+ elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
64 |
elog |
65 |
fi |