Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
Date: Sun, 29 Mar 2020 10:25:30
Message-Id: 1585477522.587d031c565c780d981b53b77a4f5b24ee83e3c5.zlogene@gentoo
1 commit: 587d031c565c780d981b53b77a4f5b24ee83e3c5
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 29 10:25:09 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 29 10:25:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=587d031c
7
8 media-video/mpv: Drop old
9
10 Package-Manager: Portage-2.3.89, 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.31.0-r1.ebuild | 361 -----------------------------------
15 2 files changed, 362 deletions(-)
16
17 diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest
18 index a23baaa21f9..9863d3c4256 100644
19 --- a/media-video/mpv/Manifest
20 +++ b/media-video/mpv/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST mpv-0.31.0.tar.gz 3142672 BLAKE2B 62a24a2bde2929047e061522147a6e823dfea9b5e7f1f739ad65bc0c82742e98743fb9ff7f0c3f74218cf50a32d0dc37c5e786fdcc951d649499f74efc3a641c SHA512 5199183d35bc2d7fffde1af250edf829fe768cedd7aa00f424d2a11a11d82cdb451c62886159ba3e1efc407b242c25e2485f4ebffd13b1da9c70defbd1f4c309
23 DIST mpv-0.32.0.tar.gz 3148730 BLAKE2B 085c38f0074dd005462aef52ef01ad7cfd70ebf9286a1f6544635e49c8c99bf4fcc5559eeb6e07ef8471388eb77794019fb50c44ea5fcc16842b63ee382e9e7c SHA512 f6426c0254ec0bf2f120e2196904f1e15fe17032b06764abca1d5e074f0cabb452eaf1cd09f8fd9b25b591accee7b881bfc3b06c19d5c98980305c4712486bd6
24 DIST waf-2.0.9 103104 BLAKE2B c7e996aa49662da3ff941d076fc7e2dd23e867ade92a3b2ae07560b76d63a69e495184a1f9c76be5c51977ddb1713f9247f62e672033ecb988ac559e3a47e546 SHA512 0755170ded115b03e78a2096f197cd9fff62b5036db764153d26ce426f182ea7d7b8231cfa1a10b4a564a8480428502f3691851df66e7b83c7bca8e5fe26de7d
25
26 diff --git a/media-video/mpv/mpv-0.31.0-r1.ebuild b/media-video/mpv/mpv-0.31.0-r1.ebuild
27 deleted file mode 100644
28 index df494bf3aec..00000000000
29 --- a/media-video/mpv/mpv-0.31.0-r1.ebuild
30 +++ /dev/null
31 @@ -1,361 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -PYTHON_COMPAT=( python{3_6,3_7} )
38 -PYTHON_REQ_USE='threads(+)'
39 -
40 -WAF_PV=2.0.9
41 -
42 -inherit eapi7-ver flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs waf-utils xdg-utils
43 -
44 -DESCRIPTION="Media player based on MPlayer and mplayer2"
45 -HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv"
46 -
47 -if [[ ${PV} != *9999* ]]; then
48 - SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 - KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ppc ppc64 x86 ~amd64-linux"
50 - DOCS=( RELEASE_NOTES )
51 -else
52 - EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
53 - inherit git-r3
54 - DOCS=(); SRC_URI=""
55 -fi
56 -SRC_URI+=" https://waf.io/waf-${WAF_PV}"
57 -DOCS+=( README.md DOCS/{client-api,interface}-changes.rst )
58 -
59 -# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC.
60 -LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )"
61 -SLOT="0"
62 -IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb
63 - dvd +egl gamepad gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua
64 - luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl
65 - selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib zimg"
66 -
67 -REQUIRED_USE="
68 - || ( cli libmpv )
69 - aqua? ( opengl )
70 - cuda? ( opengl )
71 - egl? ( || ( gbm X wayland ) )
72 - gamepad? ( sdl )
73 - gbm? ( drm egl opengl )
74 - lcms? ( opengl )
75 - luajit? ( lua )
76 - opengl? ( || ( aqua egl X raspberry-pi !cli ) )
77 - raspberry-pi? ( opengl )
78 - test? ( opengl )
79 - tools? ( cli )
80 - uchardet? ( iconv )
81 - vaapi? ( || ( gbm X wayland ) )
82 - vdpau? ( X )
83 - vulkan? ( || ( X wayland ) )
84 - wayland? ( egl )
85 - X? ( egl? ( opengl ) )
86 - xv? ( X )
87 - ${PYTHON_REQUIRED_USE}
88 -"
89 -
90 -RESTRICT="!test? ( test )"
91 -
92 -COMMON_DEPEND="
93 - >=media-video/ffmpeg-4.0:0=[encode,threads,vaapi?,vdpau?]
94 - alsa? ( >=media-libs/alsa-lib-1.0.18 )
95 - archive? ( >=app-arch/libarchive-3.0.0:= )
96 - bluray? ( >=media-libs/libbluray-0.3.0:= )
97 - cdda? ( dev-libs/libcdio-paranoia
98 - dev-libs/libcdio:= )
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 -
188 - $(usex cli '' '--disable-cplayer')
189 - $(use_enable libmpv libmpv-shared)
190 -
191 - --disable-libmpv-static
192 - --disable-static-build
193 - # See deep down below for build-date.
194 - --disable-optimize # Don't add '-O2' to CFLAGS.
195 - $(use_enable debug debug-build)
196 -
197 - $(use_enable doc html-build)
198 - $(use_enable doc pdf-build)
199 - --enable-manpage-build
200 - $(use_enable cplugins)
201 - $(use_enable test)
202 -
203 - $(use_enable iconv)
204 - $(use_enable samba libsmbclient)
205 - $(use_enable lua)
206 - $(usex luajit '--lua=luajit' '')
207 - $(use_enable javascript)
208 - $(use_enable libass)
209 - $(use_enable libass libass-osd)
210 - $(use_enable zlib)
211 - $(use_enable bluray libbluray)
212 - $(use_enable dvd dvdnav)
213 - $(use_enable cdda)
214 - $(use_enable uchardet)
215 - $(use_enable rubberband)
216 - $(use_enable lcms lcms2)
217 - --disable-vapoursynth # Only available in overlays.
218 - $(use_enable archive libarchive)
219 -
220 - --enable-libavdevice
221 -
222 - # Audio outputs:
223 - $(use_enable sdl sdl2) # Listed under audio, but also includes video.
224 - $(use_enable oss oss-audio)
225 - --disable-rsound # Only available in overlays.
226 - --disable-sndio # Only available in overlays.
227 - $(use_enable pulseaudio pulse)
228 - $(use_enable jack)
229 - $(use_enable openal)
230 - --disable-opensles
231 - $(use_enable alsa)
232 - $(use_enable coreaudio)
233 -
234 - # Video outputs:
235 - $(use_enable aqua cocoa)
236 - $(use_enable drm)
237 - $(use_enable gbm)
238 - $(use_enable wayland wayland-scanner)
239 - $(use_enable wayland wayland-protocols)
240 - $(use_enable wayland)
241 - $(use_enable X x11)
242 - $(use_enable xv)
243 - $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa')
244 - $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11')
245 - $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11')
246 - $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm')
247 - $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland')
248 - $(use_enable vdpau)
249 - $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
250 - $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl.
251 - $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11')
252 - $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland')
253 - $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm')
254 - $(use_enable libcaca caca)
255 - $(use_enable jpeg)
256 - $(use_enable vulkan shaderc)
257 - $(use_enable raspberry-pi rpi)
258 - $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl')
259 - $(usex opengl '' '--disable-gl')
260 - $(use_enable vulkan)
261 - $(use_enable gamepad sdl2-gamepad)
262 -
263 - # HWaccels:
264 - # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332.
265 - $(use_enable cuda cuda-hwaccel)
266 -
267 - # TV features:
268 - $(use_enable dvb dvbin)
269 -
270 - # Miscellaneous features:
271 - $(use_enable zimg)
272 - )
273 -
274 - if use vaapi && use X; then
275 - mywafargs+=(
276 - $(use_enable egl vaapi-x-egl)
277 - )
278 - fi
279 -
280 - # Not for us
281 - mywafargs+=(
282 - --disable-android
283 - --disable-egl-android
284 - --disable-uwp
285 - --disable-audiounit
286 - --disable-macos-media-player
287 - --disable-wasapi
288 - --disable-ios-gl
289 - --disable-macos-touchbar
290 - --disable-macos-cocoa-cb
291 - --disable-tvos
292 - --disable-egl-angle-win32
293 - )
294 -
295 - # Create reproducible non-live builds.
296 - [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date)
297 -
298 - waf-utils_src_configure "${mywafargs[@]}"
299 -}
300 -
301 -src_install() {
302 - waf-utils_src_install
303 -
304 - if use lua; then
305 - insinto /usr/share/${PN}
306 - doins -r TOOLS/lua
307 - fi
308 -
309 - if use cli && use luajit; then
310 - pax-mark -m "${ED}"usr/bin/${PN}
311 - fi
312 -
313 - if use tools; then
314 - dobin TOOLS/{mpv_identify.sh,umpv}
315 - newbin TOOLS/idet.sh mpv_idet.sh
316 - python_replicate_script "${ED}"usr/bin/umpv
317 - fi
318 -}
319 -
320 -pkg_postinst() {
321 - local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0
322 -
323 - for rv in ${REPLACING_VERSIONS}; do
324 - ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1
325 - ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1
326 - ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1
327 - ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1
328 - done
329 -
330 - if [[ ${softvol_0_18_1} -eq 1 ]]; then
331 - elog "Since version 0.18.1 the software volume control is always enabled."
332 - elog "This means that volume controls don't change the system volume,"
333 - elog "e.g. per-application volume with PulseAudio."
334 - elog "If you want to restore the previous behaviour, please refer to"
335 - elog
336 - elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1"
337 - elog
338 - fi
339 -
340 - if [[ ${osc_0_21_0} -eq 1 ]]; then
341 - elog "In version 0.21.0 the default OSC layout was changed."
342 - elog "If you want to restore the previous layout, please refer to"
343 - elog
344 - elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0"
345 - elog
346 - fi
347 -
348 - if [[ ${txtsubs_0_24_0} -eq 1 ]]; then
349 - elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded."
350 - elog "If you want to restore the previous behaviour, please refer to"
351 - elog
352 - elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0"
353 - elog
354 - fi
355 -
356 - if [[ ${opengl_0_25_0} -eq 1 ]]; then
357 - elog "Since version 0.25.0 the 'opengl' USE flag is mapped to"
358 - elog "the 'opengl' video output and no longer explicitly requires"
359 - elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag."
360 - fi
361 -
362 - if use cli && ! has_version 'app-shells/mpv-bash-completion'; then
363 - elog "If you want to have command-line completion via bash-completion,"
364 - elog "please install app-shells/mpv-bash-completion."
365 - fi
366 -
367 - if use cli && [[ -n ${REPLACING_VERSIONS} ]] &&
368 - has_version 'app-shells/mpv-bash-completion'; then
369 - elog "If command-line completion doesn't work after mpv update,"
370 - elog "please rebuild app-shells/mpv-bash-completion."
371 - fi
372 -
373 - elog "If you want URL support, please install net-misc/youtube-dl."
374 -
375 - gnome2_icon_cache_update
376 - xdg_desktop_database_update
377 -}
378 -
379 -pkg_postrm() {
380 - gnome2_icon_cache_update
381 - xdg_desktop_database_update
382 -}
383 -
384 -src_test() {
385 - cd "${S}"/build/test || die
386 - local test
387 - for test in *; do
388 - if [[ -x ${test} ]]; then
389 - ./"${test}" || die "Test suite failed"
390 - fi
391 - done
392 -}