1 |
commit: 0ffcf038396102e1cabec9d552e12a91659ce76a |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Apr 27 20:23:25 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 4 16:27:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ffcf038 |
7 |
|
8 |
media-video/mpv: notify users about new opengl USE semantics in 9999 |
9 |
|
10 |
I'm very nice. |
11 |
|
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
13 |
|
14 |
media-video/mpv/mpv-9999.ebuild | 10 +++++++++- |
15 |
1 file changed, 9 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
18 |
index 6db8024521a..7b17c8bd540 100644 |
19 |
--- a/media-video/mpv/mpv-9999.ebuild |
20 |
+++ b/media-video/mpv/mpv-9999.ebuild |
21 |
@@ -309,13 +309,15 @@ pkg_preinst() { |
22 |
} |
23 |
|
24 |
pkg_postinst() { |
25 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 |
26 |
+ local rv softvol_0_18_1=0 osc_0_21_0=0 opengl_0_25_0=0 |
27 |
|
28 |
for rv in ${REPLACING_VERSIONS}; do |
29 |
version_compare ${rv} 0.18.1 |
30 |
[[ $? -eq 1 ]] && softvol_0_18_1=1 |
31 |
version_compare ${rv} 0.21.0 |
32 |
[[ $? -eq 1 ]] && osc_0_21_0=1 |
33 |
+ version_compare ${rv} 0.25.0 |
34 |
+ [[ $? -eq 1 ]] && ! use opengl && opengl_0_25_0=1 |
35 |
done |
36 |
|
37 |
if [[ ${softvol_0_18_1} -eq 1 ]]; then |
38 |
@@ -336,6 +338,12 @@ pkg_postinst() { |
39 |
elog |
40 |
fi |
41 |
|
42 |
+ if [[ ${opengl_0_25_0} -eq 1 ]]; then |
43 |
+ elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
44 |
+ elog "the 'opengl' video output and no longer depends on X11" |
45 |
+ elog "or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
46 |
+ fi |
47 |
+ |
48 |
# bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
49 |
if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
50 |
! has_version 'app-shells/mpv-bash-completion'; then |