1 |
commit: 9afffbb8522d75e108882004d37682a7ade98a80 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 13:28:45 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 13:31:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9afffbb8 |
7 |
|
8 |
media-video/mpv: Version bump (v0.32.0) |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-video/mpv/Manifest | 1 + |
14 |
media-video/mpv/mpv-0.32.0.ebuild | 368 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 369 insertions(+) |
16 |
|
17 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
18 |
index 0d6ec7a8cb6..90e6d83efdb 100644 |
19 |
--- a/media-video/mpv/Manifest |
20 |
+++ b/media-video/mpv/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST mpv-0.30.0.tar.gz 3085141 BLAKE2B 314f6830f91e7dc11d3627688415c7535ef0ae462378d2c29cf036d5b851c55025ea5e9d5b0aa3f07ac6ec8c87350be65c882932bd908eab7c4f40b3840bf1a3 SHA512 2b3cc626575b5e56308f5f9ecf926957a36c861c85f700a4a3ede72cf7f7ea08729d20f810693117e21aeeff649f08718e73ead7d117521bf88d746708a72c66 |
23 |
DIST mpv-0.31.0.tar.gz 3142672 BLAKE2B 62a24a2bde2929047e061522147a6e823dfea9b5e7f1f739ad65bc0c82742e98743fb9ff7f0c3f74218cf50a32d0dc37c5e786fdcc951d649499f74efc3a641c SHA512 5199183d35bc2d7fffde1af250edf829fe768cedd7aa00f424d2a11a11d82cdb451c62886159ba3e1efc407b242c25e2485f4ebffd13b1da9c70defbd1f4c309 |
24 |
+DIST mpv-0.32.0.tar.gz 3148730 BLAKE2B 085c38f0074dd005462aef52ef01ad7cfd70ebf9286a1f6544635e49c8c99bf4fcc5559eeb6e07ef8471388eb77794019fb50c44ea5fcc16842b63ee382e9e7c SHA512 f6426c0254ec0bf2f120e2196904f1e15fe17032b06764abca1d5e074f0cabb452eaf1cd09f8fd9b25b591accee7b881bfc3b06c19d5c98980305c4712486bd6 |
25 |
DIST waf-2.0.9 103104 BLAKE2B c7e996aa49662da3ff941d076fc7e2dd23e867ade92a3b2ae07560b76d63a69e495184a1f9c76be5c51977ddb1713f9247f62e672033ecb988ac559e3a47e546 SHA512 0755170ded115b03e78a2096f197cd9fff62b5036db764153d26ce426f182ea7d7b8231cfa1a10b4a564a8480428502f3691851df66e7b83c7bca8e5fe26de7d |
26 |
|
27 |
diff --git a/media-video/mpv/mpv-0.32.0.ebuild b/media-video/mpv/mpv-0.32.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..97c259c1525 |
30 |
--- /dev/null |
31 |
+++ b/media-video/mpv/mpv-0.32.0.ebuild |
32 |
@@ -0,0 +1,368 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
39 |
+PYTHON_REQ_USE='threads(+)' |
40 |
+ |
41 |
+WAF_PV=2.0.9 |
42 |
+ |
43 |
+inherit bash-completion-r1 eapi7-ver flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs waf-utils xdg-utils |
44 |
+ |
45 |
+DESCRIPTION="Media player based on MPlayer and mplayer2" |
46 |
+HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv" |
47 |
+ |
48 |
+if [[ ${PV} != *9999* ]]; then |
49 |
+ SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
51 |
+ DOCS=( RELEASE_NOTES ) |
52 |
+else |
53 |
+ EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
54 |
+ inherit git-r3 |
55 |
+ DOCS=(); SRC_URI="" |
56 |
+fi |
57 |
+SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
58 |
+DOCS+=( README.md DOCS/{client-api,interface}-changes.rst ) |
59 |
+ |
60 |
+# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
61 |
+LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )" |
62 |
+SLOT="0" |
63 |
+IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb |
64 |
+ dvd +egl gamepad gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua |
65 |
+ luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
66 |
+ selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib zimg" |
67 |
+ |
68 |
+REQUIRED_USE=" |
69 |
+ || ( cli libmpv ) |
70 |
+ aqua? ( opengl ) |
71 |
+ cuda? ( opengl ) |
72 |
+ egl? ( || ( gbm X wayland ) ) |
73 |
+ gamepad? ( sdl ) |
74 |
+ gbm? ( drm egl opengl ) |
75 |
+ lcms? ( opengl ) |
76 |
+ luajit? ( lua ) |
77 |
+ opengl? ( || ( aqua egl X raspberry-pi !cli ) ) |
78 |
+ raspberry-pi? ( opengl ) |
79 |
+ test? ( opengl ) |
80 |
+ tools? ( cli ) |
81 |
+ uchardet? ( iconv ) |
82 |
+ vaapi? ( || ( gbm X wayland ) ) |
83 |
+ vdpau? ( X ) |
84 |
+ vulkan? ( || ( X wayland ) ) |
85 |
+ wayland? ( egl ) |
86 |
+ X? ( egl? ( opengl ) ) |
87 |
+ xv? ( X ) |
88 |
+ ${PYTHON_REQUIRED_USE} |
89 |
+" |
90 |
+ |
91 |
+RESTRICT="!test? ( test )" |
92 |
+ |
93 |
+COMMON_DEPEND=" |
94 |
+ >=media-video/ffmpeg-4.0:0=[encode,threads,vaapi?,vdpau?] |
95 |
+ alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
96 |
+ archive? ( >=app-arch/libarchive-3.4.0:= ) |
97 |
+ bluray? ( >=media-libs/libbluray-0.3.0:= ) |
98 |
+ cdda? ( dev-libs/libcdio-paranoia ) |
99 |
+ drm? ( x11-libs/libdrm ) |
100 |
+ dvd? ( |
101 |
+ >=media-libs/libdvdnav-4.2.0:= |
102 |
+ >=media-libs/libdvdread-4.1.0:= |
103 |
+ ) |
104 |
+ egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
105 |
+ gamepad? ( media-libs/libsdl2 ) |
106 |
+ iconv? ( |
107 |
+ virtual/libiconv |
108 |
+ uchardet? ( app-i18n/uchardet ) |
109 |
+ ) |
110 |
+ jack? ( virtual/jack ) |
111 |
+ javascript? ( >=dev-lang/mujs-1.0.0 ) |
112 |
+ jpeg? ( virtual/jpeg:0 ) |
113 |
+ lcms? ( >=media-libs/lcms-2.6:2 ) |
114 |
+ libass? ( |
115 |
+ >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
116 |
+ virtual/ttf-fonts |
117 |
+ ) |
118 |
+ libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
119 |
+ lua? ( |
120 |
+ !luajit? ( <dev-lang/lua-5.3:= ) |
121 |
+ luajit? ( dev-lang/luajit:2 ) |
122 |
+ ) |
123 |
+ openal? ( >=media-libs/openal-1.13 ) |
124 |
+ pulseaudio? ( media-sound/pulseaudio ) |
125 |
+ raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
126 |
+ rubberband? ( >=media-libs/rubberband-1.8.0 ) |
127 |
+ samba? ( net-fs/samba ) |
128 |
+ sdl? ( media-libs/libsdl2[sound,threads,video] ) |
129 |
+ vaapi? ( x11-libs/libva:=[drm?,X?,wayland?] ) |
130 |
+ vdpau? ( x11-libs/libvdpau ) |
131 |
+ vulkan? ( |
132 |
+ media-libs/libplacebo:=[vulkan] |
133 |
+ media-libs/shaderc |
134 |
+ ) |
135 |
+ wayland? ( |
136 |
+ >=dev-libs/wayland-1.6.0 |
137 |
+ >=dev-libs/wayland-protocols-1.14 |
138 |
+ >=x11-libs/libxkbcommon-0.3.0 |
139 |
+ ) |
140 |
+ X? ( |
141 |
+ x11-libs/libX11 |
142 |
+ x11-libs/libXScrnSaver |
143 |
+ x11-libs/libXext |
144 |
+ x11-libs/libXinerama |
145 |
+ x11-libs/libXrandr |
146 |
+ opengl? ( |
147 |
+ x11-libs/libXdamage |
148 |
+ virtual/opengl |
149 |
+ ) |
150 |
+ xv? ( x11-libs/libXv ) |
151 |
+ ) |
152 |
+ zlib? ( sys-libs/zlib ) |
153 |
+ zimg? ( >=media-libs/zimg-2.9.2 ) |
154 |
+" |
155 |
+DEPEND="${COMMON_DEPEND} |
156 |
+ ${PYTHON_DEPS} |
157 |
+ virtual/pkgconfig |
158 |
+ dev-python/docutils |
159 |
+ cuda? ( >=media-libs/nv-codec-headers-8.2.15.7 ) |
160 |
+ doc? ( dev-python/rst2pdf ) |
161 |
+ dvb? ( virtual/linuxtv-dvb-headers ) |
162 |
+ test? ( >=dev-util/cmocka-1.0.0 ) |
163 |
+" |
164 |
+RDEPEND="${COMMON_DEPEND} |
165 |
+ cuda? ( x11-drivers/nvidia-drivers[X] ) |
166 |
+ selinux? ( sec-policy/selinux-mplayer ) |
167 |
+ tools? ( ${PYTHON_DEPS} ) |
168 |
+" |
169 |
+ |
170 |
+src_prepare() { |
171 |
+ cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
172 |
+ chmod +x "${S}"/waf || die |
173 |
+ default |
174 |
+} |
175 |
+ |
176 |
+src_configure() { |
177 |
+ python_setup |
178 |
+ tc-export CC PKG_CONFIG AR |
179 |
+ |
180 |
+ if use raspberry-pi; then |
181 |
+ append-cflags -I"${SYSROOT%/}${EPREFIX}/opt/vc/include" |
182 |
+ append-ldflags -L"${SYSROOT%/}${EPREFIX}/opt/vc/lib" |
183 |
+ fi |
184 |
+ |
185 |
+ local mywafargs=( |
186 |
+ --confdir="${EPREFIX}/etc/${PN}" |
187 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" |
188 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
189 |
+ |
190 |
+ $(usex cli '' '--disable-cplayer') |
191 |
+ $(use_enable libmpv libmpv-shared) |
192 |
+ |
193 |
+ --disable-libmpv-static |
194 |
+ --disable-static-build |
195 |
+ # See deep down below for build-date. |
196 |
+ --disable-optimize # Don't add '-O2' to CFLAGS. |
197 |
+ $(use_enable debug debug-build) |
198 |
+ |
199 |
+ $(use_enable doc html-build) |
200 |
+ $(use_enable doc pdf-build) |
201 |
+ --enable-manpage-build |
202 |
+ $(use_enable cplugins) |
203 |
+ $(use_enable test) |
204 |
+ |
205 |
+ $(use_enable iconv) |
206 |
+ $(use_enable samba libsmbclient) |
207 |
+ $(use_enable lua) |
208 |
+ $(usex luajit '--lua=luajit' '') |
209 |
+ $(use_enable javascript) |
210 |
+ $(use_enable libass) |
211 |
+ $(use_enable libass libass-osd) |
212 |
+ $(use_enable zlib) |
213 |
+ $(use_enable bluray libbluray) |
214 |
+ $(use_enable dvd dvdnav) |
215 |
+ $(use_enable cdda) |
216 |
+ $(use_enable uchardet) |
217 |
+ $(use_enable rubberband) |
218 |
+ $(use_enable lcms lcms2) |
219 |
+ --disable-vapoursynth # Only available in overlays. |
220 |
+ $(use_enable archive libarchive) |
221 |
+ |
222 |
+ --enable-libavdevice |
223 |
+ |
224 |
+ # Audio outputs: |
225 |
+ $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
226 |
+ $(use_enable oss oss-audio) |
227 |
+ --disable-rsound # Only available in overlays. |
228 |
+ --disable-sndio # Only available in overlays. |
229 |
+ $(use_enable pulseaudio pulse) |
230 |
+ $(use_enable jack) |
231 |
+ $(use_enable openal) |
232 |
+ --disable-opensles |
233 |
+ $(use_enable alsa) |
234 |
+ $(use_enable coreaudio) |
235 |
+ |
236 |
+ # Video outputs: |
237 |
+ $(use_enable aqua cocoa) |
238 |
+ $(use_enable drm) |
239 |
+ $(use_enable gbm) |
240 |
+ $(use_enable wayland wayland-scanner) |
241 |
+ $(use_enable wayland wayland-protocols) |
242 |
+ $(use_enable wayland) |
243 |
+ $(use_enable X x11) |
244 |
+ $(use_enable xv) |
245 |
+ $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
246 |
+ $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
247 |
+ $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
248 |
+ $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
249 |
+ $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland') |
250 |
+ $(use_enable vdpau) |
251 |
+ $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
252 |
+ $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
253 |
+ $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
254 |
+ $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
255 |
+ $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
256 |
+ $(use_enable libcaca caca) |
257 |
+ $(use_enable jpeg) |
258 |
+ $(use_enable vulkan shaderc) |
259 |
+ $(use_enable raspberry-pi rpi) |
260 |
+ $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
261 |
+ $(usex opengl '' '--disable-gl') |
262 |
+ $(use_enable vulkan) |
263 |
+ $(use_enable gamepad sdl2-gamepad) |
264 |
+ |
265 |
+ # HWaccels: |
266 |
+ # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
267 |
+ $(use_enable cuda cuda-hwaccel) |
268 |
+ $(use_enable cuda cuda-interop) |
269 |
+ |
270 |
+ # TV features: |
271 |
+ $(use_enable dvb dvbin) |
272 |
+ |
273 |
+ # Miscellaneous features: |
274 |
+ $(use_enable zimg) |
275 |
+ ) |
276 |
+ |
277 |
+ if use vaapi && use X; then |
278 |
+ mywafargs+=( |
279 |
+ $(use_enable egl vaapi-x-egl) |
280 |
+ ) |
281 |
+ fi |
282 |
+ |
283 |
+ # Not for us |
284 |
+ mywafargs+=( |
285 |
+ --disable-android |
286 |
+ --disable-egl-android |
287 |
+ --disable-uwp |
288 |
+ --disable-audiounit |
289 |
+ --disable-macos-media-player |
290 |
+ --disable-wasapi |
291 |
+ --disable-ios-gl |
292 |
+ --disable-macos-touchbar |
293 |
+ --disable-macos-cocoa-cb |
294 |
+ --disable-tvos |
295 |
+ --disable-egl-angle-win32 |
296 |
+ ) |
297 |
+ |
298 |
+ mywafargs+=( |
299 |
+ --bashdir="$(get_bashcompdir)" |
300 |
+ --zshdir="${EPREFIX}"/usr/share/zsh/site-functions |
301 |
+) |
302 |
+ |
303 |
+ # Create reproducible non-live builds. |
304 |
+ [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
305 |
+ |
306 |
+ waf-utils_src_configure "${mywafargs[@]}" |
307 |
+} |
308 |
+ |
309 |
+src_install() { |
310 |
+ waf-utils_src_install |
311 |
+ |
312 |
+ if use lua; then |
313 |
+ insinto /usr/share/${PN} |
314 |
+ doins -r TOOLS/lua |
315 |
+ fi |
316 |
+ |
317 |
+ if use cli && use luajit; then |
318 |
+ pax-mark -m "${ED}"usr/bin/${PN} |
319 |
+ fi |
320 |
+ |
321 |
+ if use tools; then |
322 |
+ dobin TOOLS/{mpv_identify.sh,umpv} |
323 |
+ newbin TOOLS/idet.sh mpv_idet.sh |
324 |
+ python_replicate_script "${ED}"usr/bin/umpv |
325 |
+ fi |
326 |
+} |
327 |
+ |
328 |
+pkg_postinst() { |
329 |
+ local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
330 |
+ |
331 |
+ for rv in ${REPLACING_VERSIONS}; do |
332 |
+ ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1 |
333 |
+ ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1 |
334 |
+ ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1 |
335 |
+ ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1 |
336 |
+ done |
337 |
+ |
338 |
+ if [[ ${softvol_0_18_1} -eq 1 ]]; then |
339 |
+ elog "Since version 0.18.1 the software volume control is always enabled." |
340 |
+ elog "This means that volume controls don't change the system volume," |
341 |
+ elog "e.g. per-application volume with PulseAudio." |
342 |
+ elog "If you want to restore the previous behaviour, please refer to" |
343 |
+ elog |
344 |
+ elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
345 |
+ elog |
346 |
+ fi |
347 |
+ |
348 |
+ if [[ ${osc_0_21_0} -eq 1 ]]; then |
349 |
+ elog "In version 0.21.0 the default OSC layout was changed." |
350 |
+ elog "If you want to restore the previous layout, please refer to" |
351 |
+ elog |
352 |
+ elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
353 |
+ elog |
354 |
+ fi |
355 |
+ |
356 |
+ if [[ ${txtsubs_0_24_0} -eq 1 ]]; then |
357 |
+ elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded." |
358 |
+ elog "If you want to restore the previous behaviour, please refer to" |
359 |
+ elog |
360 |
+ elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0" |
361 |
+ elog |
362 |
+ fi |
363 |
+ |
364 |
+ if [[ ${opengl_0_25_0} -eq 1 ]]; then |
365 |
+ elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
366 |
+ elog "the 'opengl' video output and no longer explicitly requires" |
367 |
+ elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
368 |
+ fi |
369 |
+ |
370 |
+ if use cli && ! has_version 'app-shells/mpv-bash-completion'; then |
371 |
+ elog "If you want to have command-line completion via bash-completion," |
372 |
+ elog "please install app-shells/mpv-bash-completion." |
373 |
+ fi |
374 |
+ |
375 |
+ if use cli && [[ -n ${REPLACING_VERSIONS} ]] && |
376 |
+ has_version 'app-shells/mpv-bash-completion'; then |
377 |
+ elog "If command-line completion doesn't work after mpv update," |
378 |
+ elog "please rebuild app-shells/mpv-bash-completion." |
379 |
+ fi |
380 |
+ |
381 |
+ elog "If you want URL support, please install net-misc/youtube-dl." |
382 |
+ |
383 |
+ gnome2_icon_cache_update |
384 |
+ xdg_desktop_database_update |
385 |
+} |
386 |
+ |
387 |
+pkg_postrm() { |
388 |
+ gnome2_icon_cache_update |
389 |
+ xdg_desktop_database_update |
390 |
+} |
391 |
+ |
392 |
+src_test() { |
393 |
+ cd "${S}"/build/test || die |
394 |
+ local test |
395 |
+ for test in *; do |
396 |
+ if [[ -x ${test} ]]; then |
397 |
+ ./"${test}" || die "Test suite failed" |
398 |
+ fi |
399 |
+ done |
400 |
+} |