1 |
commit: 605dcd9ba186f499dab6365c53a4d7c1e558f630 |
2 |
Author: Ben de Groot <yngwin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 26 07:03:31 2015 +0000 |
4 |
Commit: Ben de Groot <yngwin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 26 07:03:31 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=605dcd9b |
7 |
|
8 |
media-video/mpv: version bump (bug 560030) |
9 |
|
10 |
Package-Manager: portage-2.2.22 |
11 |
|
12 |
media-video/mpv/Manifest | 2 + |
13 |
media-video/mpv/mpv-0.11.0.ebuild | 259 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 261 insertions(+) |
15 |
|
16 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
17 |
index ea1202f..89e69f2 100644 |
18 |
--- a/media-video/mpv/Manifest |
19 |
+++ b/media-video/mpv/Manifest |
20 |
@@ -1,3 +1,5 @@ |
21 |
+DIST mpv-0.11.0.tar.gz 2689655 SHA256 a2157174e46db46dad5deb1fde94283e72ebe922fd15447cb16a2a243fae5bda SHA512 f85da000770dbca09be2a59c4eda7e6d7142ca17328844d2b08a173f64554159f50ba9b32661ba67924b789e886940cda1add993862f02f295e7753f50388bdb WHIRLPOOL 1184f09435d6f30119143ab98ddd4767e53c701bdc5b850eb62c19607652a7103699a6b54a0d165acb548f4cced4179af6f7decbf64c8289ff56736e26ed7924 |
22 |
DIST mpv-0.9.2.tar.gz 2701306 SHA256 c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 SHA512 4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 WHIRLPOOL 1512bacc2ce50e875770c76106a1bb2bc1d0cc5f6e2bdce91ff8c5cfc8bf13ffb48519858a5fa2a7d57880820dc12e5eb20f34ab71eca5d76ec303618da8f3fe |
23 |
DIST mpv-0.9.2_p20150824.tar.xz 1867384 SHA256 67fa5ce11740b83ceef8bc435d5ef17803f1ec328dd2fee93b67e46ccc195209 SHA512 1ae0fd4faa180472c023c0ba77a28f2d1319f597763d5249259d55a04387b5f6384e2c5a8ff78bb514dfda86c30ceb474c35e54468a29ad3fc6327c4baaf75cc WHIRLPOOL cb61758234f9186880def4dcb7cb7e54d03abd6734484b5691926e2514cae1bebef6f9a53465e2aa2710e4ad5dbe1875369d483489a5cb853c3fa756ff7e968a |
24 |
+DIST waf-1.8.12 97567 SHA256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 WHIRLPOOL c36d37c2d8c08e4048b4800f511611af5cf534304fcb58388ca491ff308bfcbcdd959d153edfd6ff8c118404e7293d8b786e43b07486139bf915a82aa75d792b |
25 |
DIST waf-1.8.4 96179 SHA256 f02035fa5d8814f33f19b2b20d43822ddef6bb39b955ca196c2a247a1f9ffaa8 SHA512 3a132d8b1cba0af0e3df046c0204c5df706fae4e0fac41cf74b53f6cdea6210ed798671c7a3cb3fee70573aacab16d4c0cc699cc4b7aa74c8a416346c5513f4c WHIRLPOOL fe8d7f42e5118a1f9490a0c9add1355c969185376b57d0bab024068dd6e7364632d862bf9432e1209165c5313ae843479ef334f4bd6285db05dfebff9a1b640e |
26 |
|
27 |
diff --git a/media-video/mpv/mpv-0.11.0.ebuild b/media-video/mpv/mpv-0.11.0.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..7bfb032 |
30 |
--- /dev/null |
31 |
+++ b/media-video/mpv/mpv-0.11.0.ebuild |
32 |
@@ -0,0 +1,259 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
39 |
+PYTHON_REQ_USE='threads(+)' |
40 |
+inherit eutils python-any-r1 waf-utils pax-utils fdo-mime gnome2-utils |
41 |
+ |
42 |
+WAF_V="1.8.12" |
43 |
+ |
44 |
+DESCRIPTION="Media player based on MPlayer and mplayer2" |
45 |
+HOMEPAGE="http://mpv.io/" |
46 |
+SRC_URI="http://ftp.waf.io/pub/release/waf-${WAF_V}" |
47 |
+DOCS=( README.md etc/example.conf etc/input.conf ) |
48 |
+ |
49 |
+if [[ ${PV} == *9999* ]]; then |
50 |
+ EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
51 |
+ inherit git-r3 |
52 |
+else |
53 |
+ SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
55 |
+ #DOCS+=( RELEASE_NOTES ) |
56 |
+fi |
57 |
+ |
58 |
+# See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC. |
59 |
+LICENSE="GPL-2+ BSD ISC" |
60 |
+SLOT="0" |
61 |
+IUSE="+alsa bluray cdio +cli doc-pdf drm dvb +dvd egl +enca encode +iconv |
62 |
+jack jpeg lcms +libass libav libcaca libguess libmpv lua luajit openal |
63 |
++opengl oss pulseaudio pvr raspberry-pi rubberband samba sdl selinux v4l vaapi |
64 |
+vdpau vf-dlopen wayland +X xinerama +xscreensaver xv" |
65 |
+ |
66 |
+REQUIRED_USE=" |
67 |
+ || ( cli libmpv ) |
68 |
+ egl? ( opengl X ) |
69 |
+ enca? ( iconv ) |
70 |
+ lcms? ( opengl ) |
71 |
+ libguess? ( iconv ) |
72 |
+ luajit? ( lua ) |
73 |
+ opengl? ( || ( wayland X ) ) |
74 |
+ pvr? ( v4l ) |
75 |
+ vaapi? ( X ) |
76 |
+ vdpau? ( X ) |
77 |
+ wayland? ( opengl ) |
78 |
+ xinerama? ( X ) |
79 |
+ xscreensaver? ( X ) |
80 |
+ xv? ( X ) |
81 |
+" |
82 |
+ |
83 |
+RDEPEND=" |
84 |
+ libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] ) |
85 |
+ !libav? ( >=media-video/ffmpeg-2.4.0:0=[encode?,threads,vaapi?,vdpau?] ) |
86 |
+ sys-libs/zlib |
87 |
+ X? ( |
88 |
+ x11-libs/libX11 |
89 |
+ x11-libs/libXext |
90 |
+ >=x11-libs/libXrandr-1.2.0 |
91 |
+ opengl? ( |
92 |
+ virtual/opengl |
93 |
+ egl? ( media-libs/mesa[egl] ) |
94 |
+ ) |
95 |
+ lcms? ( >=media-libs/lcms-2.6:2 ) |
96 |
+ vaapi? ( >=x11-libs/libva-0.34.0[X(+)] ) |
97 |
+ vdpau? ( >=x11-libs/libvdpau-0.2 ) |
98 |
+ xinerama? ( x11-libs/libXinerama ) |
99 |
+ xscreensaver? ( x11-libs/libXScrnSaver ) |
100 |
+ xv? ( x11-libs/libXv ) |
101 |
+ ) |
102 |
+ alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
103 |
+ bluray? ( >=media-libs/libbluray-0.3.0 ) |
104 |
+ cdio? ( |
105 |
+ dev-libs/libcdio |
106 |
+ dev-libs/libcdio-paranoia |
107 |
+ ) |
108 |
+ drm? ( x11-libs/libdrm ) |
109 |
+ dvb? ( virtual/linuxtv-dvb-headers ) |
110 |
+ dvd? ( |
111 |
+ >=media-libs/libdvdread-4.1.3 |
112 |
+ >=media-libs/libdvdnav-4.2.0 |
113 |
+ ) |
114 |
+ enca? ( app-i18n/enca ) |
115 |
+ iconv? ( virtual/libiconv ) |
116 |
+ jack? ( media-sound/jack-audio-connection-kit ) |
117 |
+ jpeg? ( virtual/jpeg:0 ) |
118 |
+ libass? ( |
119 |
+ >=media-libs/libass-0.12.1:=[enca?,fontconfig] |
120 |
+ virtual/ttf-fonts |
121 |
+ ) |
122 |
+ libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
123 |
+ libguess? ( >=app-i18n/libguess-1.0 ) |
124 |
+ lua? ( |
125 |
+ !luajit? ( || ( =dev-lang/lua-5.1*:= =dev-lang/lua-5.2*:= ) ) |
126 |
+ luajit? ( dev-lang/luajit:2 ) |
127 |
+ ) |
128 |
+ openal? ( >=media-libs/openal-1.13 ) |
129 |
+ pulseaudio? ( media-sound/pulseaudio ) |
130 |
+ rubberband? ( >=media-libs/rubberband-1.8.0 ) |
131 |
+ samba? ( net-fs/samba ) |
132 |
+ sdl? ( media-libs/libsdl2[threads] ) |
133 |
+ v4l? ( media-libs/libv4l ) |
134 |
+ wayland? ( |
135 |
+ >=dev-libs/wayland-1.6.0 |
136 |
+ media-libs/mesa[egl,wayland] |
137 |
+ >=x11-libs/libxkbcommon-0.3.0 |
138 |
+ ) |
139 |
+" |
140 |
+DEPEND="${RDEPEND} |
141 |
+ ${PYTHON_DEPS} |
142 |
+ virtual/pkgconfig |
143 |
+ >=dev-lang/perl-5.8 |
144 |
+ dev-python/docutils |
145 |
+ doc-pdf? ( dev-python/rst2pdf ) |
146 |
+ X? ( |
147 |
+ x11-proto/videoproto |
148 |
+ xinerama? ( x11-proto/xineramaproto ) |
149 |
+ xscreensaver? ( x11-proto/scrnsaverproto ) |
150 |
+ ) |
151 |
+" |
152 |
+RDEPEND+=" |
153 |
+ selinux? ( sec-policy/selinux-mplayer ) |
154 |
+" |
155 |
+ |
156 |
+pkg_setup() { |
157 |
+ if ! use libass; then |
158 |
+ ewarn "You have disabled the libass flag. No OSD or subtitles will be displayed." |
159 |
+ fi |
160 |
+ |
161 |
+ if use openal; then |
162 |
+ ewarn "You have enabled the openal audio output which is a fallback" |
163 |
+ ewarn "and disabled by upstream." |
164 |
+ fi |
165 |
+ |
166 |
+ if use sdl; then |
167 |
+ ewarn "You have enabled the sdl video and audio outputs which are fallbacks" |
168 |
+ ewarn "and disabled by upstream." |
169 |
+ fi |
170 |
+ |
171 |
+ if use libav; then |
172 |
+ einfo "You have enabled media-video/libav instead of media-video/ffmpeg." |
173 |
+ einfo "Upstream recommends media-video/ffmpeg, as some functionality is not" |
174 |
+ einfo "provided by media-video/libav." |
175 |
+ fi |
176 |
+ |
177 |
+ einfo "For additional format support you need to enable the support on your" |
178 |
+ einfo "libavcodec/libavformat provider:" |
179 |
+ einfo " media-video/ffmpeg or media-video/libav" |
180 |
+ |
181 |
+ python-any-r1_pkg_setup |
182 |
+} |
183 |
+ |
184 |
+src_prepare() { |
185 |
+ cp "${DISTDIR}"/waf-${WAF_V} "${S}"/waf || die |
186 |
+ chmod 0755 "${S}"/waf || die |
187 |
+ epatch_user |
188 |
+} |
189 |
+ |
190 |
+src_configure() { |
191 |
+ local mywafargs=( |
192 |
+ --confdir="${EPREFIX}"/etc/${PN} |
193 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} |
194 |
+ $(usex cli '' '--disable-cplayer') |
195 |
+ $(use_enable libmpv libmpv-shared) |
196 |
+ --disable-libmpv-static |
197 |
+ --disable-build-date # keep build reproducible |
198 |
+ --disable-optimize # do not add '-O2' to CFLAGS |
199 |
+ --disable-debug-build # do not add '-g' to CFLAGS |
200 |
+ --disable-test # avoid dev-util/cmocka automagic |
201 |
+ $(use_enable doc-pdf pdf-build) |
202 |
+ $(use_enable vf-dlopen vf-dlopen-filters) |
203 |
+ $(use_enable cli zsh-comp) |
204 |
+ |
205 |
+ # optional features |
206 |
+ $(use_enable iconv) |
207 |
+ $(use_enable libguess) |
208 |
+ $(use_enable samba libsmbclient) |
209 |
+ $(use_enable lua) |
210 |
+ $(use_enable libass) |
211 |
+ $(use_enable libass libass-osd) |
212 |
+ $(use_enable encode encoding) |
213 |
+ $(use_enable bluray libbluray) |
214 |
+ $(use_enable dvd dvdread) |
215 |
+ $(use_enable dvd dvdnav) |
216 |
+ $(use_enable cdio cdda) |
217 |
+ $(use_enable enca) |
218 |
+ $(use_enable rubberband) |
219 |
+ $(use_enable lcms lcms2) |
220 |
+ --disable-vapoursynth # vapoursynth is not packaged |
221 |
+ --disable-vapoursynth-lazy |
222 |
+ --enable-libavfilter |
223 |
+ --enable-libavdevice |
224 |
+ $(usex luajit '--lua=luajit' '') |
225 |
+ |
226 |
+ # audio outputs |
227 |
+ $(use_enable sdl sdl2) # SDL output is fallback for platforms where nothing better is available |
228 |
+ --disable-sdl1 |
229 |
+ $(use_enable oss oss-audio) |
230 |
+ --disable-rsound # media-sound/rsound is in pro-audio overlay only |
231 |
+ $(use_enable pulseaudio pulse) |
232 |
+ $(use_enable jack) |
233 |
+ $(use_enable openal) |
234 |
+ $(use_enable alsa) |
235 |
+ |
236 |
+ # video outputs |
237 |
+ $(use_enable wayland) |
238 |
+ $(use_enable X x11) |
239 |
+ $(use_enable xscreensaver xss) |
240 |
+ $(use_enable X xext) |
241 |
+ $(use_enable xv) |
242 |
+ $(use_enable xinerama) |
243 |
+ $(use_enable X xrandr) |
244 |
+ $(usex X "$(use_enable opengl gl-x11)" '--disable-gl-x11') |
245 |
+ $(use_enable egl egl-x11) |
246 |
+ $(usex wayland "$(use_enable opengl gl-wayland)" '--disable-gl-wayland') |
247 |
+ $(use_enable opengl gl) |
248 |
+ $(use_enable vdpau) |
249 |
+ $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
250 |
+ $(use_enable vaapi) |
251 |
+ $(use_enable vaapi vaapi-vpp) |
252 |
+ $(usex vaapi "$(use_enable opengl vaapi-glx)" '--disable-vaapi-glx') |
253 |
+ $(use_enable libcaca caca) |
254 |
+ $(use_enable drm) |
255 |
+ $(use_enable jpeg) |
256 |
+ $(use_enable raspberry-pi rpi) |
257 |
+ |
258 |
+ # hwaccels |
259 |
+ $(use_enable vaapi vaapi-hwaccel) |
260 |
+ |
261 |
+ # tv features |
262 |
+ $(use_enable v4l tv) |
263 |
+ $(use_enable v4l tv-v4l2) |
264 |
+ $(use_enable v4l libv4l2) |
265 |
+ $(use_enable pvr) |
266 |
+ $(use_enable dvb dvbin) |
267 |
+ ) |
268 |
+ waf-utils_src_configure "${mywafargs[@]}" |
269 |
+} |
270 |
+ |
271 |
+src_install() { |
272 |
+ waf-utils_src_install |
273 |
+ |
274 |
+ if use cli && use luajit; then |
275 |
+ pax-mark -m "${ED}"usr/bin/mpv |
276 |
+ fi |
277 |
+} |
278 |
+ |
279 |
+pkg_preinst() { |
280 |
+ gnome2_icon_savelist |
281 |
+} |
282 |
+ |
283 |
+pkg_postinst() { |
284 |
+ fdo-mime_desktop_database_update |
285 |
+ gnome2_icon_cache_update |
286 |
+} |
287 |
+ |
288 |
+pkg_postrm() { |
289 |
+ fdo-mime_desktop_database_update |
290 |
+ gnome2_icon_cache_update |
291 |
+} |