Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
Date: Sat, 04 Feb 2017 21:25:40
Message-Id: 1486243498.2b4f5c2f5168d27e2fa0dfc2d28eae93f15c7721.soap@gentoo
1 commit: 2b4f5c2f5168d27e2fa0dfc2d28eae93f15c7721
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 2 15:16:12 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 4 21:24:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b4f5c2f
7
8 media-video/mpv: remove old 0.9.2
9
10 0.18.0 is stable on amd64 for about a month without any bug reports.
11 0.9.2 is terribly outdated, completely unsupported upstream and barely
12 supported in Gentoo. We can finally get rid of it.
13
14 Package-Manager: Portage-2.3.3, Repoman-2.3.1
15
16 media-video/mpv/Manifest | 2 -
17 media-video/mpv/metadata.xml | 4 -
18 media-video/mpv/mpv-0.9.2-r1.ebuild | 268 ------------------------------------
19 3 files changed, 274 deletions(-)
20
21 diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest
22 index 16564e8..22d470d 100644
23 --- a/media-video/mpv/Manifest
24 +++ b/media-video/mpv/Manifest
25 @@ -1,6 +1,4 @@
26 DIST mpv-0.18.0.tar.gz 2758960 SHA256 b656638d4f6bce2621baaacb60d8be384aa492fcd86dfd43996aaa2c16fee02b SHA512 5a899ea680b4da6d668a6e77a254e623bafef16f376ee46639e40f151da5a000de84b382f2b07f3a1e87b60fc8e524132767fdf243e36474966af11a88277437 WHIRLPOOL c491e61cb2d7f453cfc23605120048e81c2b7621b8d9591cad6415d3b550f55db6a6c8c6f90d27c7ce214ff89f92a9861d202b457c2de25c5b7de11d8d1d40af
27 DIST mpv-0.22.0.tar.gz 2822645 SHA256 c0f9ac8f0e37a391d19007b333ef8787c2f45d75a0d4401c0098cde52c5082f6 SHA512 6c021bfb79cbedee842bf122ebb29df56e8b1cbfcb038bd54bf6e2f2db2a6550b71fd9fe8998dbd79b4ceeab3fbcab65ec60695f255c5cb36fb1feae17b797c0 WHIRLPOOL 3458dfe646bab65408a7fe45f98ae168f439b4939064b009ba87d0ae08c1f2067bd252558a92f9fdb0822bf5a35b2377bce7f46aeb190d60a4e115394f0506c9
28 DIST mpv-0.23.0.tar.gz 2812103 SHA256 8aeefe5970587dfc454d2b89726b603f156bd7a9ae427654eef0d60c68d94998 SHA512 16304a729684ba177cb902e2508bdba09b344228c44ac78b27302ee4e0bcfb344b3522969e834516547bf82825009afd3bef1701327fdcaa42a9696065cca591 WHIRLPOOL fa214186ae80f4b26d967b8d6c68f0c4c56a77caaf06088249d30551e2cd5efbfc4f0a06e1944ef24ac679f1a3d47faa0d6152d192f032b3d279d5ada6567c8e
29 -DIST mpv-0.9.2.tar.gz 2701306 SHA256 c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 SHA512 4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 WHIRLPOOL 1512bacc2ce50e875770c76106a1bb2bc1d0cc5f6e2bdce91ff8c5cfc8bf13ffb48519858a5fa2a7d57880820dc12e5eb20f34ab71eca5d76ec303618da8f3fe
30 DIST waf-1.8.12 97567 SHA256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 WHIRLPOOL c36d37c2d8c08e4048b4800f511611af5cf534304fcb58388ca491ff308bfcbcdd959d153edfd6ff8c118404e7293d8b786e43b07486139bf915a82aa75d792b
31 -DIST waf-1.8.4 96179 SHA256 f02035fa5d8814f33f19b2b20d43822ddef6bb39b955ca196c2a247a1f9ffaa8 SHA512 3a132d8b1cba0af0e3df046c0204c5df706fae4e0fac41cf74b53f6cdea6210ed798671c7a3cb3fee70573aacab16d4c0cc699cc4b7aa74c8a416346c5513f4c WHIRLPOOL fe8d7f42e5118a1f9490a0c9add1355c969185376b57d0bab024068dd6e7364632d862bf9432e1209165c5313ae843479ef334f4bd6285db05dfebff9a1b640e
32
33 diff --git a/media-video/mpv/metadata.xml b/media-video/mpv/metadata.xml
34 index 7286b2a..591e876 100644
35 --- a/media-video/mpv/metadata.xml
36 +++ b/media-video/mpv/metadata.xml
37 @@ -16,12 +16,9 @@
38 <use>
39 <flag name="archive">Enable support for various archive formats via <pkg>app-arch/libarchive</pkg></flag>
40 <flag name="bluray">Enable playback of Blu-ray filesystems</flag>
41 - <flag name="bs2b">Enable Bauer stereophonic-to-binaural headphone filter</flag>
42 - <flag name="cdio">Enable CDDA support via <pkg>dev-libs/libcdio-paranoia</pkg></flag>
43 <flag name="cli">Build mpv CLI player</flag>
44 <flag name="cplugins">Enable C plugins support</flag>
45 <flag name="cuda">Enable hardware video decoding via Nvidia CUDA</flag>
46 - <flag name="doc-pdf">Build documentation in pdf format</flag>
47 <flag name="drm">Enable Kernel Mode Setting / Direct Rendering Manager based video output</flag>
48 <flag name="egl">Enable support for various EGL-based video outputs / backends</flag>
49 <flag name="enca">Enable subtitles charset discovery via <pkg>app-i18n/enca</pkg></flag>
50 @@ -32,7 +29,6 @@
51 <flag name="libmpv">Build mpv shared library</flag>
52 <flag name="lua">Enable Lua scripting, OSC (On Screen Controller) GUI and <pkg>net-misc/youtube-dl</pkg> hook-script</flag>
53 <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of <pkg>dev-lang/lua</pkg></flag>
54 - <flag name="pvr">Enable Video4Linux2 MPEG PVR</flag>
55 <flag name="raspberry-pi">Enable support for the Raspberry Pi</flag>
56 <flag name="rubberband">Enable high quality pitch correction via <pkg>media-libs/rubberband</pkg></flag>
57 <flag name="sdl">Enable <pkg>media-libs/libsdl2</pkg> based video and audio outputs
58
59 diff --git a/media-video/mpv/mpv-0.9.2-r1.ebuild b/media-video/mpv/mpv-0.9.2-r1.ebuild
60 deleted file mode 100644
61 index 4e93be5..00000000
62 --- a/media-video/mpv/mpv-0.9.2-r1.ebuild
63 +++ /dev/null
64 @@ -1,268 +0,0 @@
65 -# Copyright 1999-2016 Gentoo Foundation
66 -# Distributed under the terms of the GNU General Public License v2
67 -# $Id$
68 -
69 -EAPI=5
70 -PYTHON_COMPAT=( python{2_7,3_4} )
71 -PYTHON_REQ_USE='threads(+)'
72 -inherit eutils python-any-r1 waf-utils pax-utils fdo-mime gnome2-utils
73 -
74 -WAF_V="1.8.4"
75 -
76 -DESCRIPTION="Media player based on MPlayer and mplayer2"
77 -HOMEPAGE="http://mpv.io/"
78 -SRC_URI="http://ftp.waf.io/pub/release/waf-${WAF_V}"
79 -DOCS=( README.md etc/example.conf etc/input.conf )
80 -
81 -if [[ ${PV} == *9999* ]]; then
82 - EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
83 - inherit git-r3
84 -else
85 - SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
86 - KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 ~sparc ~x86 ~amd64-linux"
87 - DOCS+=( RELEASE_NOTES )
88 -fi
89 -
90 -# See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC.
91 -LICENSE="GPL-2+ BSD ISC"
92 -SLOT="0"
93 -IUSE="+alsa bluray bs2b cdio +cli doc-pdf drm dvb +dvd egl +enca encode +iconv
94 -jack jpeg ladspa lcms +libass libav libcaca libguess libmpv lua luajit openal
95 -+opengl oss pulseaudio pvr raspberry-pi rubberband samba sdl selinux v4l vaapi
96 -vdpau vf-dlopen wayland +X xinerama +xscreensaver xv"
97 -
98 -REQUIRED_USE="
99 - || ( cli libmpv )
100 - egl? ( opengl X )
101 - enca? ( iconv )
102 - lcms? ( opengl )
103 - libguess? ( iconv )
104 - luajit? ( lua )
105 - opengl? ( || ( wayland X ) )
106 - pvr? ( v4l )
107 - vaapi? ( X )
108 - vdpau? ( X )
109 - wayland? ( opengl )
110 - xinerama? ( X )
111 - xscreensaver? ( X )
112 - xv? ( X )
113 -"
114 -
115 -RDEPEND="
116 - libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] )
117 - !libav? (
118 - >=media-video/ffmpeg-2.4.0:0=[encode?,threads,vaapi?,vdpau?]
119 - <media-video/ffmpeg-3.0
120 - )
121 - sys-libs/zlib
122 - X? (
123 - x11-libs/libX11
124 - x11-libs/libXext
125 - >=x11-libs/libXrandr-1.2.0
126 - opengl? (
127 - virtual/opengl
128 - egl? ( media-libs/mesa[egl] )
129 - )
130 - lcms? ( >=media-libs/lcms-2.6:2 )
131 - vaapi? ( >=x11-libs/libva-0.34.0[X(+)] )
132 - vdpau? ( >=x11-libs/libvdpau-0.2 )
133 - xinerama? ( x11-libs/libXinerama )
134 - xscreensaver? ( x11-libs/libXScrnSaver )
135 - xv? ( x11-libs/libXv )
136 - )
137 - alsa? ( >=media-libs/alsa-lib-1.0.18 )
138 - bluray? ( >=media-libs/libbluray-0.3.0 )
139 - bs2b? ( media-libs/libbs2b )
140 - cdio? (
141 - dev-libs/libcdio
142 - dev-libs/libcdio-paranoia
143 - )
144 - drm? ( x11-libs/libdrm )
145 - dvb? ( virtual/linuxtv-dvb-headers )
146 - dvd? (
147 - >=media-libs/libdvdread-4.1.3
148 - >=media-libs/libdvdnav-4.2.0
149 - )
150 - enca? ( app-i18n/enca )
151 - iconv? ( virtual/libiconv )
152 - jack? ( media-sound/jack-audio-connection-kit )
153 - jpeg? ( virtual/jpeg:0 )
154 - ladspa? ( media-libs/ladspa-sdk )
155 - libass? (
156 - >=media-libs/libass-0.12.1:=[enca?,fontconfig]
157 - virtual/ttf-fonts
158 - )
159 - libcaca? ( >=media-libs/libcaca-0.99_beta18 )
160 - libguess? ( >=app-i18n/libguess-1.0 )
161 - lua? (
162 - !luajit? ( <dev-lang/lua-5.3:= )
163 - luajit? ( dev-lang/luajit:2 )
164 - )
165 - openal? ( >=media-libs/openal-1.13 )
166 - pulseaudio? ( media-sound/pulseaudio )
167 - rubberband? ( >=media-libs/rubberband-1.8.0 )
168 - samba? ( net-fs/samba[smbclient(+)] )
169 - sdl? ( media-libs/libsdl2[threads] )
170 - v4l? ( media-libs/libv4l )
171 - wayland? (
172 - >=dev-libs/wayland-1.6.0
173 - media-libs/mesa[egl,wayland]
174 - >=x11-libs/libxkbcommon-0.3.0
175 - )
176 -"
177 -DEPEND="${RDEPEND}
178 - ${PYTHON_DEPS}
179 - virtual/pkgconfig
180 - >=dev-lang/perl-5.8
181 - dev-python/docutils
182 - doc-pdf? ( dev-python/rst2pdf )
183 - X? (
184 - x11-proto/videoproto
185 - xinerama? ( x11-proto/xineramaproto )
186 - xscreensaver? ( x11-proto/scrnsaverproto )
187 - )
188 -"
189 -RDEPEND+="
190 - selinux? ( sec-policy/selinux-mplayer )
191 -"
192 -
193 -pkg_setup() {
194 - if ! use libass; then
195 - ewarn "You have disabled the libass flag. No OSD or subtitles will be displayed."
196 - fi
197 -
198 - if use openal; then
199 - ewarn "You have enabled the openal audio output which is a fallback"
200 - ewarn "and disabled by upstream."
201 - fi
202 -
203 - if use sdl; then
204 - ewarn "You have enabled the sdl video and audio outputs which are fallbacks"
205 - ewarn "and disabled by upstream."
206 - fi
207 -
208 - if use libav; then
209 - einfo "You have enabled media-video/libav instead of media-video/ffmpeg."
210 - einfo "Upstream recommends media-video/ffmpeg, as some functionality is not"
211 - einfo "provided by media-video/libav."
212 - fi
213 -
214 - einfo "For additional format support you need to enable the support on your"
215 - einfo "libavcodec/libavformat provider:"
216 - einfo " media-video/ffmpeg or media-video/libav"
217 -
218 - python-any-r1_pkg_setup
219 -}
220 -
221 -src_prepare() {
222 - cp "${DISTDIR}"/waf-${WAF_V} "${S}"/waf || die
223 - chmod 0755 "${S}"/waf || die
224 - epatch_user
225 -}
226 -
227 -src_configure() {
228 - local mywafargs=(
229 - --confdir="${EPREFIX}"/etc/${PN}
230 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
231 - $(usex cli '' '--disable-cplayer')
232 - $(use_enable libmpv libmpv-shared)
233 - --disable-libmpv-static
234 - --disable-build-date # keep build reproducible
235 - --disable-optimize # do not add '-O2' to CFLAGS
236 - --disable-debug-build # do not add '-g' to CFLAGS
237 - --disable-test # avoid dev-util/cmocka automagic
238 - $(use_enable doc-pdf pdf-build)
239 - $(use_enable vf-dlopen vf-dlopen-filters)
240 - $(use_enable cli zsh-comp)
241 -
242 - # optional features
243 - $(use_enable iconv)
244 - $(use_enable libguess)
245 - $(use_enable samba libsmbclient)
246 - $(use_enable lua)
247 - $(use_enable libass)
248 - $(use_enable libass libass-osd)
249 - $(use_enable encode encoding)
250 - $(use_enable bluray libbluray)
251 - $(use_enable dvd dvdread)
252 - $(use_enable dvd dvdnav)
253 - $(use_enable cdio cdda)
254 - $(use_enable enca)
255 - $(use_enable ladspa)
256 - $(use_enable rubberband)
257 - $(use_enable bs2b libbs2b)
258 - $(use_enable lcms lcms2)
259 - --disable-vapoursynth # vapoursynth is not packaged
260 - --disable-vapoursynth-lazy
261 - --enable-libavfilter
262 - --enable-libavdevice
263 - $(usex luajit '--lua=luajit' '')
264 -
265 - # audio outputs
266 - $(use_enable sdl sdl2) # SDL output is fallback for platforms where nothing better is available
267 - --disable-sdl1
268 - $(use_enable oss oss-audio)
269 - --disable-rsound # media-sound/rsound is in pro-audio overlay only
270 - $(use_enable pulseaudio pulse)
271 - $(use_enable jack)
272 - $(use_enable openal)
273 - $(use_enable alsa)
274 -
275 - # video outputs
276 - $(use_enable wayland)
277 - $(use_enable X x11)
278 - $(use_enable xscreensaver xss)
279 - $(use_enable X xext)
280 - $(use_enable xv)
281 - $(use_enable xinerama)
282 - $(use_enable X xrandr)
283 - $(usex X "$(use_enable opengl gl-x11)" '--disable-gl-x11')
284 - $(use_enable egl egl-x11)
285 - $(usex wayland "$(use_enable opengl gl-wayland)" '--disable-gl-wayland')
286 - $(use_enable opengl gl)
287 - $(use_enable vdpau)
288 - $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
289 - $(use_enable vaapi)
290 - $(use_enable vaapi vaapi-vpp)
291 - $(usex vaapi "$(use_enable opengl vaapi-glx)" '--disable-vaapi-glx')
292 - $(use_enable libcaca caca)
293 - $(use_enable drm)
294 - $(use_enable jpeg)
295 - $(use_enable raspberry-pi rpi)
296 - $(use_enable raspberry-pi rpi-gles)
297 -
298 - # hwaccels
299 - $(use_enable vaapi vaapi-hwaccel)
300 - $(use_enable vdpau vdpau-hwaccel)
301 -
302 - # tv features
303 - $(use_enable v4l tv)
304 - $(use_enable v4l tv-v4l2)
305 - $(use_enable v4l libv4l2)
306 - $(use_enable pvr)
307 - $(use_enable dvb dvbin)
308 - )
309 - waf-utils_src_configure "${mywafargs[@]}"
310 -}
311 -
312 -src_install() {
313 - waf-utils_src_install
314 -
315 - if use cli && use luajit; then
316 - pax-mark -m "${ED}"usr/bin/mpv
317 - fi
318 -}
319 -
320 -pkg_preinst() {
321 - gnome2_icon_savelist
322 -}
323 -
324 -pkg_postinst() {
325 - fdo-mime_desktop_database_update
326 - gnome2_icon_cache_update
327 -}
328 -
329 -pkg_postrm() {
330 - fdo-mime_desktop_database_update
331 - gnome2_icon_cache_update
332 -}