1 |
commit: 3a433234363eeffb73e955aae85668b25b13ca7a |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Feb 2 15:08:01 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 4 21:24:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a433234 |
7 |
|
8 |
media-video/mpv: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
media-video/mpv/mpv-0.23.0.ebuild | 347 -------------------------------------- |
13 |
1 file changed, 347 deletions(-) |
14 |
|
15 |
diff --git a/media-video/mpv/mpv-0.23.0.ebuild b/media-video/mpv/mpv-0.23.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2e79970..00000000 |
18 |
--- a/media-video/mpv/mpv-0.23.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,347 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
28 |
-PYTHON_REQ_USE='threads(+)' |
29 |
- |
30 |
-WAF_PV=1.8.12 |
31 |
- |
32 |
-inherit gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
33 |
- |
34 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
35 |
-HOMEPAGE="https://mpv.io/" |
36 |
- |
37 |
-if [[ ${PV} != *9999* ]]; then |
38 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
- KEYWORDS="~amd64 ~x86 ~amd64-linux" |
40 |
- DOCS=( RELEASE_NOTES ) |
41 |
-else |
42 |
- EGIT_REPO_URI=( {https,git}://github.com/mpv-player/mpv.git ) |
43 |
- inherit git-r3 |
44 |
-fi |
45 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
46 |
-DOCS+=( README.md ) |
47 |
- |
48 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
49 |
-LICENSE="GPL-2+ BSD ISC" |
50 |
-SLOT="0" |
51 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio doc drm dvb dvd +egl encode |
52 |
- gbm +iconv jack jpeg lcms +libass libav libcaca libmpv +lua luajit openal |
53 |
- +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux test tools |
54 |
- +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv |
55 |
- zsh-completion" |
56 |
- |
57 |
-REQUIRED_USE=" |
58 |
- || ( cli libmpv ) |
59 |
- aqua? ( opengl ) |
60 |
- egl? ( || ( gbm X wayland ) ) |
61 |
- gbm? ( drm egl ) |
62 |
- lcms? ( || ( opengl egl ) ) |
63 |
- luajit? ( lua ) |
64 |
- test? ( || ( opengl egl ) ) |
65 |
- tools? ( cli ) |
66 |
- uchardet? ( iconv ) |
67 |
- v4l? ( || ( alsa oss ) ) |
68 |
- vaapi? ( || ( gbm X wayland ) ) |
69 |
- vdpau? ( X ) |
70 |
- wayland? ( egl ) |
71 |
- xinerama? ( X ) |
72 |
- xscreensaver? ( X ) |
73 |
- xv? ( X ) |
74 |
- zsh-completion? ( cli ) |
75 |
-" |
76 |
- |
77 |
-COMMON_DEPEND=" |
78 |
- !libav? ( >=media-video/ffmpeg-3.2.2:0=[encode?,threads,vaapi?,vdpau?] ) |
79 |
- libav? ( >=media-video/libav-12:0=[encode?,threads,vaapi?,vdpau?] ) |
80 |
- sys-libs/zlib |
81 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
82 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
83 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
84 |
- cdda? ( dev-libs/libcdio-paranoia ) |
85 |
- drm? ( x11-libs/libdrm ) |
86 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
87 |
- dvd? ( |
88 |
- >=media-libs/libdvdnav-4.2.0 |
89 |
- >=media-libs/libdvdread-4.1.0 |
90 |
- ) |
91 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
92 |
- iconv? ( |
93 |
- virtual/libiconv |
94 |
- uchardet? ( dev-libs/uchardet ) |
95 |
- ) |
96 |
- jack? ( virtual/jack ) |
97 |
- jpeg? ( virtual/jpeg:0 ) |
98 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
99 |
- libass? ( |
100 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
101 |
- virtual/ttf-fonts |
102 |
- ) |
103 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
104 |
- lua? ( |
105 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
106 |
- luajit? ( dev-lang/luajit:2 ) |
107 |
- ) |
108 |
- openal? ( >=media-libs/openal-1.13 ) |
109 |
- opengl? ( !aqua? ( virtual/opengl ) ) |
110 |
- pulseaudio? ( media-sound/pulseaudio ) |
111 |
- raspberry-pi? ( |
112 |
- >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
113 |
- media-libs/mesa[egl,gles2] |
114 |
- ) |
115 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
116 |
- samba? ( net-fs/samba[smbclient(+)] ) |
117 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
118 |
- v4l? ( media-libs/libv4l ) |
119 |
- vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
120 |
- wayland? ( |
121 |
- >=dev-libs/wayland-1.6.0 |
122 |
- >=x11-libs/libxkbcommon-0.3.0 |
123 |
- ) |
124 |
- X? ( |
125 |
- x11-libs/libX11 |
126 |
- x11-libs/libXext |
127 |
- >=x11-libs/libXrandr-1.2.0 |
128 |
- opengl? ( x11-libs/libXdamage ) |
129 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
130 |
- xinerama? ( x11-libs/libXinerama ) |
131 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
132 |
- xv? ( x11-libs/libXv ) |
133 |
- ) |
134 |
-" |
135 |
-DEPEND="${COMMON_DEPEND} |
136 |
- ${PYTHON_DEPS} |
137 |
- dev-python/docutils |
138 |
- virtual/pkgconfig |
139 |
- doc? ( dev-python/rst2pdf ) |
140 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
141 |
- v4l? ( virtual/os-headers ) |
142 |
- zsh-completion? ( dev-lang/perl ) |
143 |
-" |
144 |
-RDEPEND="${COMMON_DEPEND} |
145 |
- selinux? ( sec-policy/selinux-mplayer ) |
146 |
- tools? ( ${PYTHON_DEPS} ) |
147 |
-" |
148 |
- |
149 |
-PATCHES=( |
150 |
- "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch" |
151 |
- "${FILESDIR}/${PN}-0.23.0-make-libavdevice-check-accept-libav.patch" |
152 |
-) |
153 |
- |
154 |
-mpv_check_compiler() { |
155 |
- if [[ ${MERGE_TYPE} != "binary" ]] && use vaapi && use egl && ! tc-has-tls; then |
156 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
157 |
- fi |
158 |
-} |
159 |
- |
160 |
-pkg_pretend() { |
161 |
- mpv_check_compiler |
162 |
-} |
163 |
- |
164 |
-pkg_setup() { |
165 |
- mpv_check_compiler |
166 |
- [[ ${MERGE_TYPE} != "binary" ]] && python_setup |
167 |
-} |
168 |
- |
169 |
-src_prepare() { |
170 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
171 |
- chmod +x "${S}"/waf || die |
172 |
- default_src_prepare |
173 |
-} |
174 |
- |
175 |
-src_configure() { |
176 |
- local mywafargs=( |
177 |
- --confdir="${EPREFIX}/etc/${PN}" |
178 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
179 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
180 |
- |
181 |
- $(usex cli '' '--disable-cplayer') |
182 |
- $(use_enable libmpv libmpv-shared) |
183 |
- |
184 |
- # See deep down below for build-date. |
185 |
- --disable-libmpv-static |
186 |
- --disable-static-build |
187 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
188 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
189 |
- --enable-html-build |
190 |
- |
191 |
- $(use_enable doc pdf-build) |
192 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
193 |
- $(use_enable zsh-completion zsh-comp) |
194 |
- $(use_enable test) |
195 |
- |
196 |
- $(use_enable iconv) |
197 |
- $(use_enable samba libsmbclient) |
198 |
- $(use_enable lua) |
199 |
- $(usex luajit '--lua=luajit' '') |
200 |
- $(use_enable libass) |
201 |
- $(use_enable libass libass-osd) |
202 |
- $(use_enable encode encoding) |
203 |
- $(use_enable bluray libbluray) |
204 |
- $(use_enable dvd dvdread) |
205 |
- $(use_enable dvd dvdnav) |
206 |
- $(use_enable cdda) |
207 |
- $(use_enable uchardet) |
208 |
- $(use_enable rubberband) |
209 |
- $(use_enable lcms lcms2) |
210 |
- --disable-vapoursynth # Only available in overlays. |
211 |
- --disable-vapoursynth-lazy |
212 |
- $(use_enable archive libarchive) |
213 |
- |
214 |
- --enable-libavdevice |
215 |
- |
216 |
- # Audio outputs: |
217 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
218 |
- --disable-sdl1 |
219 |
- $(use_enable oss oss-audio) |
220 |
- --disable-rsound # Only available in overlays. |
221 |
- --disable-sndio # Only available in overlays. |
222 |
- $(use_enable pulseaudio pulse) |
223 |
- $(use_enable jack) |
224 |
- $(use_enable openal) |
225 |
- --disable-opensles |
226 |
- $(use_enable alsa) |
227 |
- $(use_enable coreaudio) |
228 |
- |
229 |
- # Video outputs: |
230 |
- $(use_enable aqua cocoa) |
231 |
- $(use_enable drm) |
232 |
- $(use_enable gbm) |
233 |
- $(use_enable wayland) |
234 |
- $(use_enable X x11) |
235 |
- $(use_enable xscreensaver xss) |
236 |
- $(use_enable X xext) |
237 |
- $(use_enable xv) |
238 |
- $(use_enable xinerama) |
239 |
- $(use_enable X xrandr) |
240 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
241 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
242 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
243 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
244 |
- $(use_enable wayland gl-wayland) |
245 |
- $(use_enable vdpau) |
246 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
247 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
248 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
249 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
250 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
251 |
- $(use_enable libcaca caca) |
252 |
- $(use_enable jpeg) |
253 |
- --disable-android |
254 |
- $(use_enable raspberry-pi rpi) |
255 |
- --disable-ios-gl |
256 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
257 |
- --disable-mali-fbdev # Only available in overlays. |
258 |
- |
259 |
- # HWaccels: |
260 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
261 |
- $(use_enable vaapi vaapi-hwaccel) |
262 |
- $(use_enable vdpau vdpau-hwaccel) |
263 |
- --disable-cuda-hwaccel # No support in ffmpeg. See Gentoo bug 595450. |
264 |
- |
265 |
- # TV features: |
266 |
- $(use_enable v4l tv) |
267 |
- $(use_enable v4l tv-v4l2) |
268 |
- $(use_enable v4l libv4l2) |
269 |
- $(use_enable v4l audio-input) |
270 |
- $(use_enable dvb dvbin) |
271 |
- |
272 |
- # Miscellaneous features: |
273 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
274 |
- ) |
275 |
- |
276 |
- if use vaapi && use X; then |
277 |
- mywafargs+=( |
278 |
- $(use_enable opengl vaapi-glx) |
279 |
- $(use_enable egl vaapi-x-egl) |
280 |
- ) |
281 |
- fi |
282 |
- |
283 |
- if ! use egl && ! use opengl && ! use raspberry-pi; then |
284 |
- mywafargs+=(--disable-gl) |
285 |
- fi |
286 |
- |
287 |
- # Create reproducible non-live builds. |
288 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
289 |
- |
290 |
- waf-utils_src_configure "${mywafargs[@]}" |
291 |
-} |
292 |
- |
293 |
-src_install() { |
294 |
- waf-utils_src_install |
295 |
- |
296 |
- if use lua; then |
297 |
- insinto /usr/share/${PN} |
298 |
- doins -r TOOLS/lua |
299 |
- fi |
300 |
- |
301 |
- if use cli && use luajit; then |
302 |
- pax-mark -m "${ED}"usr/bin/${PN} |
303 |
- fi |
304 |
- |
305 |
- if use tools; then |
306 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
307 |
- newbin TOOLS/idet.sh mpv_idet.sh |
308 |
- python_replicate_script "${ED}"usr/bin/umpv |
309 |
- fi |
310 |
-} |
311 |
- |
312 |
-pkg_preinst() { |
313 |
- gnome2_icon_savelist |
314 |
-} |
315 |
- |
316 |
-pkg_postinst() { |
317 |
- local rv softvol_0_18_1=0 |
318 |
- for rv in ${REPLACING_VERSIONS}; do |
319 |
- version_compare ${rv} 0.18.1-r1 |
320 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
321 |
- done |
322 |
- |
323 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
324 |
- elog "Starting from version 0.18.1 the software volume control is" |
325 |
- elog "enabled by default, see:" |
326 |
- elog "https://github.com/mpv-player/mpv/blob/v0.18.1/DOCS/interface-changes.rst" |
327 |
- elog "https://github.com/mpv-player/mpv/issues/3322" |
328 |
- elog |
329 |
- elog "This means that volume controls don't change the system volume," |
330 |
- elog "e.g. per-application volume with PulseAudio." |
331 |
- elog "If you want to restore the old behaviour, please refer to" |
332 |
- elog |
333 |
- elog "https://bugs.gentoo.org/show_bug.cgi?id=588492#c7" |
334 |
- elog |
335 |
- fi |
336 |
- |
337 |
- # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
338 |
- if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
339 |
- ! has_version 'app-shells/mpv-bash-completion'; then |
340 |
- elog "If you want to have command-line completion via bash-completion," |
341 |
- elog "please install app-shells/mpv-bash-completion." |
342 |
- fi |
343 |
- |
344 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
345 |
- has_version 'app-shells/mpv-bash-completion'; then |
346 |
- elog "If command-line completion doesn't work after mpv update," |
347 |
- elog "please rebuild app-shells/mpv-bash-completion." |
348 |
- fi |
349 |
- |
350 |
- gnome2_icon_cache_update |
351 |
- xdg_desktop_database_update |
352 |
-} |
353 |
- |
354 |
-pkg_postrm() { |
355 |
- gnome2_icon_cache_update |
356 |
- xdg_desktop_database_update |
357 |
-} |
358 |
- |
359 |
-src_test() { |
360 |
- cd "${S}"/build/test || die |
361 |
- local test |
362 |
- for test in *; do |
363 |
- if [[ -x ${test} ]]; then |
364 |
- ./"${test}" || die "Test suite failed" |
365 |
- fi |
366 |
- done |
367 |
-} |