Gentoo Archives: gentoo-commits

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