1 |
commit: 8b2224c6fc52f5a9f588984c69b29475edaaf4c1 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 28 16:19:30 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 22:53:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b2224c6 |
7 |
|
8 |
media-video/mpv: adjust opengl USE constraints in 9999 |
9 |
|
10 |
This partially reverts 65e3818f6012af6672f7fa4e9dea54dec1fef3fb. |
11 |
I'm not sure why opengl USE constraints were removed and not fixed. |
12 |
|
13 |
Anyway, build system requires X, aqua, or libmpv USEs with opengl USE. |
14 |
If you build with cli enabled you want something that can play videos. |
15 |
Opengl bits in libmpv don't provide a working video playback with cli. |
16 |
Hence libmpv USE doesn't satisfy opengl with cli, but X or aqua do. |
17 |
|
18 |
Also pull virtual/opengl whenever X is enabled. This can be useful on |
19 |
Mac OS to build against XQuartz. virtual/opengl is broken there though, |
20 |
see Gentoo bugs 431182, 577520. Luckily, mpv isn't keyworded there too. |
21 |
|
22 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
23 |
Closes: https://github.com/gentoo/gentoo/pull/3718 |
24 |
|
25 |
media-video/mpv/mpv-9999.ebuild | 3 ++- |
26 |
1 file changed, 2 insertions(+), 1 deletion(-) |
27 |
|
28 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
29 |
index 21f1b6b..ee0b6c6 100644 |
30 |
--- a/media-video/mpv/mpv-9999.ebuild |
31 |
+++ b/media-video/mpv/mpv-9999.ebuild |
32 |
@@ -43,6 +43,7 @@ REQUIRED_USE=" |
33 |
gbm? ( drm egl ) |
34 |
lcms? ( || ( opengl egl ) ) |
35 |
luajit? ( lua ) |
36 |
+ opengl? ( || ( aqua X !cli? ( libmpv ) ) ) |
37 |
test? ( || ( opengl egl ) ) |
38 |
tools? ( cli ) |
39 |
uchardet? ( iconv ) |
40 |
@@ -88,7 +89,7 @@ COMMON_DEPEND=" |
41 |
luajit? ( dev-lang/luajit:2 ) |
42 |
) |
43 |
openal? ( >=media-libs/openal-1.13 ) |
44 |
- opengl? ( !aqua? ( virtual/opengl ) ) |
45 |
+ opengl? ( X? ( virtual/opengl ) ) |
46 |
pulseaudio? ( media-sound/pulseaudio ) |
47 |
raspberry-pi? ( |
48 |
>=media-libs/raspberrypi-userland-0_pre20160305-r1 |