1 |
commit: 69fed83a11d573fbfae8965e34b2fc2d617dd0c4 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 23 10:33:30 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 23 20:38:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69fed83a |
7 |
|
8 |
media-video/mpv: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
media-video/mpv/Manifest | 3 - |
13 |
media-video/mpv/mpv-0.27.1.ebuild | 374 -------------------------------------- |
14 |
media-video/mpv/mpv-0.28.1.ebuild | 361 ------------------------------------ |
15 |
3 files changed, 738 deletions(-) |
16 |
|
17 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
18 |
index f3af1b0fd39..6b0e9085f19 100644 |
19 |
--- a/media-video/mpv/Manifest |
20 |
+++ b/media-video/mpv/Manifest |
21 |
@@ -1,9 +1,6 @@ |
22 |
DIST mpv-0.25.0-patches-r2.tar.xz 11036 BLAKE2B 09fdd566c5fcca290829c536c9e41b655e254d64e63714281119d62e6963f07f8d384eccb3f8ea6ccb2a9b63a60e19bb7ff1fd4b8e4ccccdc9b1fd8e58a7c628 SHA512 fc8d2a23dff27131d2c18d3f91861ec6e6d5240e6531d1a04c06ebef8d5467250c4f131d9faee802842e1ea485dbf350b43a3eebcc13c230cd45ff875fc855e2 |
23 |
DIST mpv-0.25.0.tar.gz 2874584 BLAKE2B c64321b50fd635f82bbcbce5cdefee1d0da011558cebdacd3339aaa14162f659c955bea75341ed21096eea5b689e4c1ca4d2d97feff1f4026044ddd61bdd9944 SHA512 eefc574e2995ddf6bd15c9b62986a5ca277c30949b036d57a11bbfb796c11c1e6dd7c313abd91a909dd98ca0f2b0be29ec6b980d0287a5891b42b0ffba926cbf |
24 |
-DIST mpv-0.27.1-patches-r0.tar.xz 6580 BLAKE2B fdf5f580fbda9ec6856354d43fd80a177464af27ea6f65ab31c610996fced64670f178956b4030c9c34d0707f8fa4544c829e4401679d2e2d6e730b19ebfe6d8 SHA512 8f25c51f0a3c6b5304090144b8343afba4d872216f8fa13890240a51ac464bd2c486b017390d4d3398d7082ffdf3e617659861f15505bd2db72b6f5ab4500bcb |
25 |
-DIST mpv-0.27.1.tar.gz 2957202 BLAKE2B 79dd06ba9399368f24c2c0a065218432110829af08d97cfdf753966ec7ca75e5af8f04da381f83251cb57bdce9b30c0d2d8c6fc772f73b5a0ed43139ce66a316 SHA512 3b8e12edb20b6ffdbbb02aba9cc64ad25e4fb583efc72248549641a46cc840827c1b6b017e7efc323d8a8299b7b094a676525bd978b8c3c9ecccca32fe39149a |
26 |
DIST mpv-0.27.2-patches-r0.tar.xz 6564 BLAKE2B c02efea40e0b19d60eaa49520988464fbf4c9221108cbf19021934dc0cb0a975dab148ec1ea03753d81b8035173e3e5bd74b262ab5675d9fc5dce4a0f75ea37c SHA512 d1c955c32082338f5c7f1cd8268471ca0ac6dcd817c5fe39fb82f0e8bd3babf6f2f954d4ce52e9be786e5527df75cc6f4f3de8106a3517c8a1d8e39be1b4ebbd |
27 |
DIST mpv-0.27.2.tar.gz 2957191 BLAKE2B 35e316e5a30869ae44ff229e99ae11a88e2f7d55b55946bfb752d5ed2d8212885c0c2abb59c9ff6d23a72daee47d80f44511313d67ee6fb265e6681ba4b89ee1 SHA512 bf74a150b3732b8c233362e0902c54f85fbea9ca1765a2a8f946a6eecd9b37a72ede36a36d0dd98a770539c4f81fe24c8ce26be9db7cd6eddd8514a8f82d9cda |
28 |
-DIST mpv-0.28.1.tar.gz 2982546 BLAKE2B ae078e3393b1113a8211699da1fea867324c50d3696ab82446996f04b2571b29791811b3d3dc082761ca36d63c9b1aa844d7cd56b740e73821b3e7ca35d39512 SHA512 7593e5dbb5963bf39f57f8a08f1b5142474897172a2c6cafcbfd3a83a2f0cfb9a3e5d62eea6625f01aae8ccc236b738511846cd5a5016b93d2510f12f0be7624 |
29 |
DIST mpv-0.28.2.tar.gz 2982558 BLAKE2B 5faef4122d456916f43bd603192fc72dee1ad16fa3c842d54a2e53dc8f9db416545549a86af62481fe211dc088821ab13b832c09f82572b36167dd3a73d57f62 SHA512 e6206e8c65dca084e2cfa73ab09278b7113cdfd90b89877d1f75a1068c6379a093ea3955a023857357683edce1aba8c12ee441fd195d887af4d939fc7b66cef4 |
30 |
DIST waf-1.9.8 100685 BLAKE2B b335115b7ba5af4f8f49fc4da7967fa20e0633bfc7de7ad28fdb58dfcf7ae9c7833d053d298280e26e94b18af70a66fc13d08adf1fc7f9ad9b81e70d95cc74fc SHA512 e7493767f65deeb38aa162adef22adf60ebbd038410e9cdf4fe6f0de8c43395dbbba14962aa2c3855e1277136085fc22ad12ebfb8ac4e76f16358296039b8ea2 |
31 |
|
32 |
diff --git a/media-video/mpv/mpv-0.27.1.ebuild b/media-video/mpv/mpv-0.27.1.ebuild |
33 |
deleted file mode 100644 |
34 |
index dec8d69628f..00000000000 |
35 |
--- a/media-video/mpv/mpv-0.27.1.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,374 +0,0 @@ |
38 |
-# Copyright 1999-2018 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=6 |
42 |
- |
43 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
44 |
-PYTHON_REQ_USE='threads(+)' |
45 |
- |
46 |
-WAF_PV=1.9.8 |
47 |
- |
48 |
-inherit flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
49 |
- |
50 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
51 |
-HOMEPAGE="https://mpv.io/" |
52 |
- |
53 |
-if [[ ${PV} != *9999* ]]; then |
54 |
- SRC_URI=" |
55 |
- https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz |
56 |
- https://dev.gentoo.org/~kensington/distfiles/${P}-patches-${PR}.tar.xz |
57 |
- " |
58 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
59 |
- DOCS=( RELEASE_NOTES ) |
60 |
-else |
61 |
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
62 |
- inherit git-r3 |
63 |
-fi |
64 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
65 |
-DOCS+=( README.md DOCS/{client-api,interface}-changes.rst ) |
66 |
- |
67 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
68 |
-LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )" |
69 |
-SLOT="0" |
70 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda doc drm dvb |
71 |
- dvd +egl encode gbm +iconv jack javascript jpeg lcms +libass libav libcaca |
72 |
- libmpv +lua luajit openal +opengl oss pulseaudio raspberry-pi rubberband |
73 |
- samba sdl selinux test tools +uchardet v4l vaapi vdpau wayland +X +xv zlib |
74 |
- zsh-completion" |
75 |
- |
76 |
-REQUIRED_USE=" |
77 |
- || ( cli libmpv ) |
78 |
- aqua? ( opengl ) |
79 |
- cuda? ( !libav opengl ) |
80 |
- egl? ( || ( gbm X wayland ) ) |
81 |
- gbm? ( drm egl opengl ) |
82 |
- lcms? ( opengl ) |
83 |
- luajit? ( lua ) |
84 |
- opengl? ( || ( aqua egl X raspberry-pi !cli ) ) |
85 |
- raspberry-pi? ( opengl ) |
86 |
- test? ( opengl ) |
87 |
- tools? ( cli ) |
88 |
- uchardet? ( iconv ) |
89 |
- v4l? ( || ( alsa oss ) ) |
90 |
- vaapi? ( || ( gbm X wayland ) ) |
91 |
- vdpau? ( X ) |
92 |
- wayland? ( egl ) |
93 |
- X? ( egl? ( opengl ) ) |
94 |
- xv? ( X ) |
95 |
- zsh-completion? ( cli ) |
96 |
- ${PYTHON_REQUIRED_USE} |
97 |
-" |
98 |
- |
99 |
-COMMON_DEPEND=" |
100 |
- !libav? ( >=media-video/ffmpeg-3.2.2:0=[encode?,threads,vaapi?,vdpau?] ) |
101 |
- libav? ( >=media-video/libav-12:0=[encode?,threads,vaapi?,vdpau?] ) |
102 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
103 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
104 |
- bluray? ( >=media-libs/libbluray-0.3.0:= ) |
105 |
- cdda? ( dev-libs/libcdio-paranoia ) |
106 |
- cuda? ( >=media-video/ffmpeg-3.3:0 ) |
107 |
- drm? ( x11-libs/libdrm ) |
108 |
- dvd? ( |
109 |
- >=media-libs/libdvdnav-4.2.0 |
110 |
- >=media-libs/libdvdread-4.1.0 |
111 |
- ) |
112 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
113 |
- iconv? ( |
114 |
- virtual/libiconv |
115 |
- uchardet? ( app-i18n/uchardet ) |
116 |
- ) |
117 |
- jack? ( virtual/jack ) |
118 |
- javascript? ( >=dev-lang/mujs-1.0.0 ) |
119 |
- jpeg? ( virtual/jpeg:0 ) |
120 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
121 |
- libass? ( |
122 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
123 |
- virtual/ttf-fonts |
124 |
- ) |
125 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
126 |
- lua? ( |
127 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
128 |
- luajit? ( dev-lang/luajit:2 ) |
129 |
- ) |
130 |
- openal? ( >=media-libs/openal-1.13 ) |
131 |
- pulseaudio? ( media-sound/pulseaudio ) |
132 |
- raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
133 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
134 |
- samba? ( net-fs/samba ) |
135 |
- sdl? ( media-libs/libsdl2[sound,threads,video] ) |
136 |
- v4l? ( media-libs/libv4l ) |
137 |
- vaapi? ( |
138 |
- !libav? ( >=media-video/ffmpeg-3.3:0 ) |
139 |
- libav? ( >=media-video/libav-13:0 ) |
140 |
- x11-libs/libva:=[drm?,X?,wayland?] |
141 |
- ) |
142 |
- vdpau? ( |
143 |
- !libav? ( >=media-video/ffmpeg-3.3:0 ) |
144 |
- libav? ( >=media-video/libav-13:0 ) |
145 |
- x11-libs/libvdpau |
146 |
- ) |
147 |
- wayland? ( |
148 |
- >=dev-libs/wayland-1.6.0 |
149 |
- >=x11-libs/libxkbcommon-0.3.0 |
150 |
- ) |
151 |
- X? ( |
152 |
- x11-libs/libX11 |
153 |
- x11-libs/libXScrnSaver |
154 |
- x11-libs/libXext |
155 |
- x11-libs/libXinerama |
156 |
- x11-libs/libXrandr |
157 |
- opengl? ( |
158 |
- x11-libs/libXdamage |
159 |
- virtual/opengl |
160 |
- ) |
161 |
- xv? ( x11-libs/libXv ) |
162 |
- ) |
163 |
- zlib? ( sys-libs/zlib ) |
164 |
-" |
165 |
-DEPEND="${COMMON_DEPEND} |
166 |
- ${PYTHON_DEPS} |
167 |
- dev-python/docutils |
168 |
- virtual/pkgconfig |
169 |
- doc? ( dev-python/rst2pdf ) |
170 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
171 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
172 |
- v4l? ( virtual/os-headers ) |
173 |
- zsh-completion? ( dev-lang/perl ) |
174 |
-" |
175 |
-RDEPEND="${COMMON_DEPEND} |
176 |
- cuda? ( x11-drivers/nvidia-drivers[X] ) |
177 |
- selinux? ( sec-policy/selinux-mplayer ) |
178 |
- tools? ( ${PYTHON_DEPS} ) |
179 |
-" |
180 |
- |
181 |
-PATCHES=( |
182 |
- "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch" |
183 |
- "${FILESDIR}/${PN}-0.23.0-make-libavdevice-check-accept-libav.patch" |
184 |
- "${FILESDIR}/${PN}-0.25.0-fix-float-comparisons-in-tests.patch" |
185 |
- "${FILESDIR}/${PN}-0.27.0-add-missing-link-flags-for-rpi.patch" |
186 |
-) |
187 |
- |
188 |
-pkg_setup() { |
189 |
- [[ ${MERGE_TYPE} != "binary" ]] && python_setup |
190 |
-} |
191 |
- |
192 |
-src_prepare() { |
193 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
194 |
- chmod +x "${S}"/waf || die |
195 |
- eapply "${WORKDIR}/${PV}" |
196 |
- default_src_prepare |
197 |
-} |
198 |
- |
199 |
-src_configure() { |
200 |
- tc-export CC PKG_CONFIG AR |
201 |
- |
202 |
- if use raspberry-pi; then |
203 |
- append-cflags -I"${SYSROOT%/}${EPREFIX}/opt/vc/include" |
204 |
- append-ldflags -L"${SYSROOT%/}${EPREFIX}/opt/vc/lib" |
205 |
- fi |
206 |
- |
207 |
- local mywafargs=( |
208 |
- --confdir="${EPREFIX}/etc/${PN}" |
209 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
210 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
211 |
- |
212 |
- $(usex cli '' '--disable-cplayer') |
213 |
- $(use_enable libmpv libmpv-shared) |
214 |
- |
215 |
- --disable-libmpv-static |
216 |
- --disable-static-build |
217 |
- # See deep down below for build-date. |
218 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
219 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
220 |
- --enable-html-build |
221 |
- |
222 |
- $(use_enable doc pdf-build) |
223 |
- $(use_enable cplugins) |
224 |
- $(use_enable zsh-completion zsh-comp) |
225 |
- $(use_enable test) |
226 |
- |
227 |
- --disable-android |
228 |
- $(use_enable iconv) |
229 |
- $(use_enable samba libsmbclient) |
230 |
- $(use_enable lua) |
231 |
- $(usex luajit '--lua=luajit' '') |
232 |
- $(use_enable javascript) |
233 |
- $(use_enable libass) |
234 |
- $(use_enable libass libass-osd) |
235 |
- $(use_enable zlib) |
236 |
- $(use_enable encode encoding) |
237 |
- $(use_enable bluray libbluray) |
238 |
- $(use_enable dvd dvdread) |
239 |
- $(use_enable dvd dvdnav) |
240 |
- $(use_enable cdda) |
241 |
- $(use_enable uchardet) |
242 |
- $(use_enable rubberband) |
243 |
- $(use_enable lcms lcms2) |
244 |
- --disable-vapoursynth # Only available in overlays. |
245 |
- --disable-vapoursynth-lazy |
246 |
- $(use_enable archive libarchive) |
247 |
- |
248 |
- --enable-libavdevice |
249 |
- |
250 |
- # Audio outputs: |
251 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
252 |
- --disable-sdl1 |
253 |
- $(use_enable oss oss-audio) |
254 |
- --disable-rsound # Only available in overlays. |
255 |
- --disable-sndio # Only available in overlays. |
256 |
- $(use_enable pulseaudio pulse) |
257 |
- $(use_enable jack) |
258 |
- $(use_enable openal) |
259 |
- --disable-opensles |
260 |
- $(use_enable alsa) |
261 |
- $(use_enable coreaudio) |
262 |
- |
263 |
- # Video outputs: |
264 |
- $(use_enable aqua cocoa) |
265 |
- $(use_enable drm) |
266 |
- $(use_enable gbm) |
267 |
- $(use_enable wayland) |
268 |
- $(use_enable X x11) |
269 |
- $(use_enable xv) |
270 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
271 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
272 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
273 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
274 |
- $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland') |
275 |
- $(use_enable vdpau) |
276 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
277 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
278 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
279 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
280 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
281 |
- $(use_enable libcaca caca) |
282 |
- $(use_enable jpeg) |
283 |
- $(use_enable raspberry-pi rpi) |
284 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
285 |
- --disable-mali-fbdev # Only available in overlays. |
286 |
- $(usex opengl '' '--disable-gl') |
287 |
- |
288 |
- # HWaccels: |
289 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
290 |
- $(use_enable vaapi vaapi-hwaccel) |
291 |
- $(use_enable vdpau vdpau-hwaccel) |
292 |
- $(use_enable cuda cuda-hwaccel) |
293 |
- |
294 |
- # TV features: |
295 |
- $(use_enable v4l tv) |
296 |
- $(use_enable v4l tv-v4l2) |
297 |
- $(use_enable v4l libv4l2) |
298 |
- $(use_enable v4l audio-input) |
299 |
- $(use_enable dvb dvbin) |
300 |
- |
301 |
- # Miscellaneous features: |
302 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
303 |
- ) |
304 |
- |
305 |
- if use vaapi && use X; then |
306 |
- mywafargs+=( |
307 |
- $(use_enable opengl vaapi-glx) |
308 |
- $(use_enable egl vaapi-x-egl) |
309 |
- ) |
310 |
- fi |
311 |
- |
312 |
- # Create reproducible non-live builds. |
313 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
314 |
- |
315 |
- waf-utils_src_configure "${mywafargs[@]}" |
316 |
-} |
317 |
- |
318 |
-src_install() { |
319 |
- waf-utils_src_install |
320 |
- |
321 |
- if use lua; then |
322 |
- insinto /usr/share/${PN} |
323 |
- doins -r TOOLS/lua |
324 |
- fi |
325 |
- |
326 |
- if use cli && use luajit; then |
327 |
- pax-mark -m "${ED}"usr/bin/${PN} |
328 |
- fi |
329 |
- |
330 |
- if use tools; then |
331 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
332 |
- newbin TOOLS/idet.sh mpv_idet.sh |
333 |
- python_replicate_script "${ED}"usr/bin/umpv |
334 |
- fi |
335 |
-} |
336 |
- |
337 |
-pkg_postinst() { |
338 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
339 |
- |
340 |
- for rv in ${REPLACING_VERSIONS}; do |
341 |
- version_compare ${rv} 0.18.1 |
342 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
343 |
- version_compare ${rv} 0.21.0 |
344 |
- [[ $? -eq 1 ]] && osc_0_21_0=1 |
345 |
- version_compare ${rv} 0.24.0 |
346 |
- [[ $? -eq 1 ]] && txtsubs_0_24_0=1 |
347 |
- version_compare ${rv} 0.25.0 |
348 |
- [[ $? -eq 1 ]] && ! use opengl && opengl_0_25_0=1 |
349 |
- done |
350 |
- |
351 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
352 |
- elog "Since version 0.18.1 the software volume control is always enabled." |
353 |
- elog "This means that volume controls don't change the system volume," |
354 |
- elog "e.g. per-application volume with PulseAudio." |
355 |
- elog "If you want to restore the previous behaviour, please refer to" |
356 |
- elog |
357 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
358 |
- elog |
359 |
- fi |
360 |
- |
361 |
- if [[ ${osc_0_21_0} -eq 1 ]]; then |
362 |
- elog "In version 0.21.0 the default OSC layout was changed." |
363 |
- elog "If you want to restore the previous layout, please refer to" |
364 |
- elog |
365 |
- elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
366 |
- elog |
367 |
- fi |
368 |
- |
369 |
- if [[ ${txtsubs_0_24_0} -eq 1 ]]; then |
370 |
- elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded." |
371 |
- elog "If you want to restore the previous behaviour, please refer to" |
372 |
- elog |
373 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0" |
374 |
- elog |
375 |
- fi |
376 |
- |
377 |
- if [[ ${opengl_0_25_0} -eq 1 ]]; then |
378 |
- elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
379 |
- elog "the 'opengl' video output and no longer explicitly requires" |
380 |
- elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
381 |
- fi |
382 |
- |
383 |
- if use cli && ! has_version 'app-shells/mpv-bash-completion'; then |
384 |
- elog "If you want to have command-line completion via bash-completion," |
385 |
- elog "please install app-shells/mpv-bash-completion." |
386 |
- fi |
387 |
- |
388 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
389 |
- has_version 'app-shells/mpv-bash-completion'; then |
390 |
- elog "If command-line completion doesn't work after mpv update," |
391 |
- elog "please rebuild app-shells/mpv-bash-completion." |
392 |
- fi |
393 |
- |
394 |
- gnome2_icon_cache_update |
395 |
- xdg_desktop_database_update |
396 |
-} |
397 |
- |
398 |
-pkg_postrm() { |
399 |
- gnome2_icon_cache_update |
400 |
- xdg_desktop_database_update |
401 |
-} |
402 |
- |
403 |
-src_test() { |
404 |
- cd "${S}"/build/test || die |
405 |
- local test |
406 |
- for test in *; do |
407 |
- if [[ -x ${test} ]]; then |
408 |
- ./"${test}" || die "Test suite failed" |
409 |
- fi |
410 |
- done |
411 |
-} |
412 |
|
413 |
diff --git a/media-video/mpv/mpv-0.28.1.ebuild b/media-video/mpv/mpv-0.28.1.ebuild |
414 |
deleted file mode 100644 |
415 |
index 472b73c52c5..00000000000 |
416 |
--- a/media-video/mpv/mpv-0.28.1.ebuild |
417 |
+++ /dev/null |
418 |
@@ -1,361 +0,0 @@ |
419 |
-# Copyright 1999-2018 Gentoo Foundation |
420 |
-# Distributed under the terms of the GNU General Public License v2 |
421 |
- |
422 |
-EAPI=6 |
423 |
- |
424 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
425 |
-PYTHON_REQ_USE='threads(+)' |
426 |
- |
427 |
-WAF_PV=1.9.8 |
428 |
- |
429 |
-inherit flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
430 |
- |
431 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
432 |
-HOMEPAGE="https://mpv.io/" |
433 |
- |
434 |
-if [[ ${PV} != *9999* ]]; then |
435 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
436 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
437 |
- DOCS=( RELEASE_NOTES ) |
438 |
-else |
439 |
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
440 |
- inherit git-r3 |
441 |
-fi |
442 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
443 |
-DOCS+=( README.md DOCS/{client-api,interface}-changes.rst ) |
444 |
- |
445 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
446 |
-LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )" |
447 |
-SLOT="0" |
448 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda doc drm dvb |
449 |
- dvd +egl encode gbm +iconv jack javascript jpeg lcms +libass libav libcaca |
450 |
- libmpv +lua luajit openal +opengl oss pulseaudio raspberry-pi rubberband |
451 |
- samba sdl selinux test tools +uchardet v4l vaapi vdpau wayland +X +xv zlib |
452 |
- zsh-completion" |
453 |
- |
454 |
-REQUIRED_USE=" |
455 |
- || ( cli libmpv ) |
456 |
- aqua? ( opengl ) |
457 |
- cuda? ( !libav opengl ) |
458 |
- egl? ( || ( gbm X wayland ) ) |
459 |
- gbm? ( drm egl opengl ) |
460 |
- lcms? ( opengl ) |
461 |
- luajit? ( lua ) |
462 |
- opengl? ( || ( aqua egl X raspberry-pi !cli ) ) |
463 |
- raspberry-pi? ( opengl ) |
464 |
- test? ( opengl ) |
465 |
- tools? ( cli ) |
466 |
- uchardet? ( iconv ) |
467 |
- v4l? ( || ( alsa oss ) ) |
468 |
- vaapi? ( || ( gbm X wayland ) ) |
469 |
- vdpau? ( X ) |
470 |
- wayland? ( egl ) |
471 |
- X? ( egl? ( opengl ) ) |
472 |
- xv? ( X ) |
473 |
- zsh-completion? ( cli ) |
474 |
- ${PYTHON_REQUIRED_USE} |
475 |
-" |
476 |
- |
477 |
-COMMON_DEPEND=" |
478 |
- !libav? ( >=media-video/ffmpeg-9999:0=[encode?,threads,vaapi?,vdpau?] ) |
479 |
- libav? ( >=media-video/libav-9999:0=[encode?,threads,vaapi?,vdpau?] ) |
480 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
481 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
482 |
- bluray? ( >=media-libs/libbluray-0.3.0:= ) |
483 |
- cdda? ( dev-libs/libcdio-paranoia ) |
484 |
- drm? ( x11-libs/libdrm ) |
485 |
- dvd? ( |
486 |
- >=media-libs/libdvdnav-4.2.0 |
487 |
- >=media-libs/libdvdread-4.1.0 |
488 |
- ) |
489 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
490 |
- iconv? ( |
491 |
- virtual/libiconv |
492 |
- uchardet? ( app-i18n/uchardet ) |
493 |
- ) |
494 |
- jack? ( virtual/jack ) |
495 |
- javascript? ( >=dev-lang/mujs-1.0.0 ) |
496 |
- jpeg? ( virtual/jpeg:0 ) |
497 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
498 |
- libass? ( |
499 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
500 |
- virtual/ttf-fonts |
501 |
- ) |
502 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
503 |
- lua? ( |
504 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
505 |
- luajit? ( dev-lang/luajit:2 ) |
506 |
- ) |
507 |
- openal? ( >=media-libs/openal-1.13 ) |
508 |
- pulseaudio? ( media-sound/pulseaudio ) |
509 |
- raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
510 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
511 |
- samba? ( net-fs/samba ) |
512 |
- sdl? ( media-libs/libsdl2[sound,threads,video] ) |
513 |
- v4l? ( media-libs/libv4l ) |
514 |
- vaapi? ( x11-libs/libva:=[drm?,X?,wayland?] ) |
515 |
- vdpau? ( x11-libs/libvdpau ) |
516 |
- wayland? ( |
517 |
- >=dev-libs/wayland-1.6.0 |
518 |
- >=x11-libs/libxkbcommon-0.3.0 |
519 |
- dev-libs/wayland-protocols |
520 |
- ) |
521 |
- X? ( |
522 |
- x11-libs/libX11 |
523 |
- x11-libs/libXScrnSaver |
524 |
- x11-libs/libXext |
525 |
- x11-libs/libXinerama |
526 |
- x11-libs/libXrandr |
527 |
- opengl? ( |
528 |
- x11-libs/libXdamage |
529 |
- virtual/opengl |
530 |
- ) |
531 |
- xv? ( x11-libs/libXv ) |
532 |
- ) |
533 |
- zlib? ( sys-libs/zlib ) |
534 |
-" |
535 |
-DEPEND="${COMMON_DEPEND} |
536 |
- ${PYTHON_DEPS} |
537 |
- dev-python/docutils |
538 |
- virtual/pkgconfig |
539 |
- doc? ( dev-python/rst2pdf ) |
540 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
541 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
542 |
- v4l? ( virtual/os-headers ) |
543 |
- zsh-completion? ( dev-lang/perl ) |
544 |
-" |
545 |
-RDEPEND="${COMMON_DEPEND} |
546 |
- cuda? ( x11-drivers/nvidia-drivers[X] ) |
547 |
- selinux? ( sec-policy/selinux-mplayer ) |
548 |
- tools? ( ${PYTHON_DEPS} ) |
549 |
-" |
550 |
- |
551 |
-PATCHES=( |
552 |
- "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch" |
553 |
- "${FILESDIR}/${PN}-0.25.0-fix-float-comparisons-in-tests.patch" |
554 |
- "${FILESDIR}/${PN}-0.27.0-add-missing-link-flags-for-rpi.patch" |
555 |
-) |
556 |
- |
557 |
-pkg_setup() { |
558 |
- [[ ${MERGE_TYPE} != "binary" ]] && python_setup |
559 |
-} |
560 |
- |
561 |
-src_prepare() { |
562 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
563 |
- chmod +x "${S}"/waf || die |
564 |
- default_src_prepare |
565 |
-} |
566 |
- |
567 |
-src_configure() { |
568 |
- tc-export CC PKG_CONFIG AR |
569 |
- |
570 |
- if use raspberry-pi; then |
571 |
- append-cflags -I"${SYSROOT%/}${EPREFIX}/opt/vc/include" |
572 |
- append-ldflags -L"${SYSROOT%/}${EPREFIX}/opt/vc/lib" |
573 |
- fi |
574 |
- |
575 |
- local mywafargs=( |
576 |
- --confdir="${EPREFIX}/etc/${PN}" |
577 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
578 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
579 |
- |
580 |
- $(usex cli '' '--disable-cplayer') |
581 |
- $(use_enable libmpv libmpv-shared) |
582 |
- |
583 |
- --disable-libmpv-static |
584 |
- --disable-static-build |
585 |
- # See deep down below for build-date. |
586 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
587 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
588 |
- --enable-html-build |
589 |
- |
590 |
- $(use_enable doc pdf-build) |
591 |
- $(use_enable cplugins) |
592 |
- $(use_enable zsh-completion zsh-comp) |
593 |
- $(use_enable test) |
594 |
- |
595 |
- --disable-android |
596 |
- $(use_enable iconv) |
597 |
- $(use_enable samba libsmbclient) |
598 |
- $(use_enable lua) |
599 |
- $(usex luajit '--lua=luajit' '') |
600 |
- $(use_enable javascript) |
601 |
- $(use_enable libass) |
602 |
- $(use_enable libass libass-osd) |
603 |
- $(use_enable zlib) |
604 |
- $(use_enable encode encoding) |
605 |
- $(use_enable bluray libbluray) |
606 |
- $(use_enable dvd dvdread) |
607 |
- $(use_enable dvd dvdnav) |
608 |
- $(use_enable cdda) |
609 |
- $(use_enable uchardet) |
610 |
- $(use_enable rubberband) |
611 |
- $(use_enable lcms lcms2) |
612 |
- --disable-vapoursynth # Only available in overlays. |
613 |
- --disable-vapoursynth-lazy |
614 |
- $(use_enable archive libarchive) |
615 |
- |
616 |
- --enable-libavdevice |
617 |
- |
618 |
- # Audio outputs: |
619 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
620 |
- --disable-sdl1 |
621 |
- $(use_enable oss oss-audio) |
622 |
- --disable-rsound # Only available in overlays. |
623 |
- --disable-sndio # Only available in overlays. |
624 |
- $(use_enable pulseaudio pulse) |
625 |
- $(use_enable jack) |
626 |
- $(use_enable openal) |
627 |
- --disable-opensles |
628 |
- $(use_enable alsa) |
629 |
- $(use_enable coreaudio) |
630 |
- |
631 |
- # Video outputs: |
632 |
- $(use_enable aqua cocoa) |
633 |
- $(use_enable drm) |
634 |
- $(use_enable gbm) |
635 |
- $(use_enable wayland wayland-scanner) |
636 |
- $(use_enable wayland wayland-protocols) |
637 |
- $(use_enable wayland) |
638 |
- $(use_enable X x11) |
639 |
- $(use_enable xv) |
640 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
641 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
642 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
643 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
644 |
- $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland') |
645 |
- $(use_enable vdpau) |
646 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
647 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
648 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
649 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
650 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
651 |
- $(use_enable libcaca caca) |
652 |
- $(use_enable jpeg) |
653 |
- $(use_enable raspberry-pi rpi) |
654 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
655 |
- --disable-mali-fbdev # Only available in overlays. |
656 |
- $(usex opengl '' '--disable-gl') |
657 |
- |
658 |
- # HWaccels: |
659 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
660 |
- $(use_enable cuda cuda-hwaccel) |
661 |
- |
662 |
- # TV features: |
663 |
- $(use_enable v4l tv) |
664 |
- $(use_enable v4l tv-v4l2) |
665 |
- $(use_enable v4l libv4l2) |
666 |
- $(use_enable v4l audio-input) |
667 |
- $(use_enable dvb dvbin) |
668 |
- |
669 |
- # Miscellaneous features: |
670 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
671 |
- ) |
672 |
- |
673 |
- if use vaapi && use X; then |
674 |
- mywafargs+=( |
675 |
- $(use_enable opengl vaapi-glx) |
676 |
- $(use_enable egl vaapi-x-egl) |
677 |
- ) |
678 |
- fi |
679 |
- |
680 |
- # Create reproducible non-live builds. |
681 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
682 |
- |
683 |
- waf-utils_src_configure "${mywafargs[@]}" |
684 |
-} |
685 |
- |
686 |
-src_install() { |
687 |
- waf-utils_src_install |
688 |
- |
689 |
- if use lua; then |
690 |
- insinto /usr/share/${PN} |
691 |
- doins -r TOOLS/lua |
692 |
- fi |
693 |
- |
694 |
- if use cli && use luajit; then |
695 |
- pax-mark -m "${ED}"usr/bin/${PN} |
696 |
- fi |
697 |
- |
698 |
- if use tools; then |
699 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
700 |
- newbin TOOLS/idet.sh mpv_idet.sh |
701 |
- python_replicate_script "${ED}"usr/bin/umpv |
702 |
- fi |
703 |
-} |
704 |
- |
705 |
-pkg_postinst() { |
706 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
707 |
- |
708 |
- for rv in ${REPLACING_VERSIONS}; do |
709 |
- version_compare ${rv} 0.18.1 |
710 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
711 |
- version_compare ${rv} 0.21.0 |
712 |
- [[ $? -eq 1 ]] && osc_0_21_0=1 |
713 |
- version_compare ${rv} 0.24.0 |
714 |
- [[ $? -eq 1 ]] && txtsubs_0_24_0=1 |
715 |
- version_compare ${rv} 0.25.0 |
716 |
- [[ $? -eq 1 ]] && ! use opengl && opengl_0_25_0=1 |
717 |
- done |
718 |
- |
719 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
720 |
- elog "Since version 0.18.1 the software volume control is always enabled." |
721 |
- elog "This means that volume controls don't change the system volume," |
722 |
- elog "e.g. per-application volume with PulseAudio." |
723 |
- elog "If you want to restore the previous behaviour, please refer to" |
724 |
- elog |
725 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
726 |
- elog |
727 |
- fi |
728 |
- |
729 |
- if [[ ${osc_0_21_0} -eq 1 ]]; then |
730 |
- elog "In version 0.21.0 the default OSC layout was changed." |
731 |
- elog "If you want to restore the previous layout, please refer to" |
732 |
- elog |
733 |
- elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
734 |
- elog |
735 |
- fi |
736 |
- |
737 |
- if [[ ${txtsubs_0_24_0} -eq 1 ]]; then |
738 |
- elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded." |
739 |
- elog "If you want to restore the previous behaviour, please refer to" |
740 |
- elog |
741 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0" |
742 |
- elog |
743 |
- fi |
744 |
- |
745 |
- if [[ ${opengl_0_25_0} -eq 1 ]]; then |
746 |
- elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
747 |
- elog "the 'opengl' video output and no longer explicitly requires" |
748 |
- elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
749 |
- fi |
750 |
- |
751 |
- if use cli && ! has_version 'app-shells/mpv-bash-completion'; then |
752 |
- elog "If you want to have command-line completion via bash-completion," |
753 |
- elog "please install app-shells/mpv-bash-completion." |
754 |
- fi |
755 |
- |
756 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
757 |
- has_version 'app-shells/mpv-bash-completion'; then |
758 |
- elog "If command-line completion doesn't work after mpv update," |
759 |
- elog "please rebuild app-shells/mpv-bash-completion." |
760 |
- fi |
761 |
- |
762 |
- gnome2_icon_cache_update |
763 |
- xdg_desktop_database_update |
764 |
-} |
765 |
- |
766 |
-pkg_postrm() { |
767 |
- gnome2_icon_cache_update |
768 |
- xdg_desktop_database_update |
769 |
-} |
770 |
- |
771 |
-src_test() { |
772 |
- cd "${S}"/build/test || die |
773 |
- local test |
774 |
- for test in *; do |
775 |
- if [[ -x ${test} ]]; then |
776 |
- ./"${test}" || die "Test suite failed" |
777 |
- fi |
778 |
- done |
779 |
-} |