Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
Date: Sun, 06 Nov 2022 09:24:00
Message-Id: 1667725778.160b346f233df31470d45af79637a14c83b3359a.ionen@gentoo
1 commit: 160b346f233df31470d45af79637a14c83b3359a
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 6 00:20:22 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 6 09:09:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160b346f
7
8 media-video/mpv: drop 0.33.1-r3
9
10 Closes: https://bugs.gentoo.org/879609
11 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
12
13 media-video/mpv/Manifest | 2 -
14 media-video/mpv/mpv-0.33.1-r3.ebuild | 358 -----------------------------------
15 2 files changed, 360 deletions(-)
16
17 diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest
18 index bae6bf74a76e..4e3bbca9d645 100644
19 --- a/media-video/mpv/Manifest
20 +++ b/media-video/mpv/Manifest
21 @@ -1,4 +1,2 @@
22 -DIST mpv-0.33.1.tar.gz 3259882 BLAKE2B 97ab101c2013ffb219d36a788020fb9fc4382d09971ac0beee42701a54667a6c766521be7b052193de4505b2117c2d47b3682ebafab46632fc40b637e0d19c04 SHA512 99d6c40d18c5cf83814b44ec6d8eade229800c5b51a734c9bbe831c3aeb95f8931124c94f6ae2360ffff62053c163bc3c55b254df021e005b350ebc3df7e952b
23 DIST mpv-0.34.1.tar.gz 3288356 BLAKE2B c0e5dc3cd23307449a526bd2cf0df5d870322aa1914a139784fd50d77274d42648a769ee4da3ba74e34a7a080700a5740dae13ed0827df1b3cfef36846f983ab SHA512 77ea349d6999f8cce9b5cce4cebd3506a224fc18ab08d22dd16bd34c34d012bb170879b268ddd62db40d116b4cc0b2d9d651b8097f387ed9115c426834cac77e
24 DIST waf-2.0.22 104880 BLAKE2B 6cae9e764712012ef97f790c723b86a2603dc64e9bafcec02c5251dbc1b23ec629db26c02eee2a72a77cf70c11d2729a626ea71f3cb50a6281257fd6f63eadf0 SHA512 4156cefa65b7e6349ddb1ca643bbdf3e4444449d137e5f595535564271d521362291f257765329015671584ac2c596a0ad98cfdbd621f5d5352141a55d384292
25 -DIST waf-2.0.9 103104 BLAKE2B c7e996aa49662da3ff941d076fc7e2dd23e867ade92a3b2ae07560b76d63a69e495184a1f9c76be5c51977ddb1713f9247f62e672033ecb988ac559e3a47e546 SHA512 0755170ded115b03e78a2096f197cd9fff62b5036db764153d26ce426f182ea7d7b8231cfa1a10b4a564a8480428502f3691851df66e7b83c7bca8e5fe26de7d
26
27 diff --git a/media-video/mpv/mpv-0.33.1-r3.ebuild b/media-video/mpv/mpv-0.33.1-r3.ebuild
28 deleted file mode 100644
29 index ddbaf34ddd05..000000000000
30 --- a/media-video/mpv/mpv-0.33.1-r3.ebuild
31 +++ /dev/null
32 @@ -1,358 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -LUA_COMPAT=( lua5-{1..2} luajit )
39 -PYTHON_COMPAT=( python3_{7..9} )
40 -PYTHON_REQ_USE='threads(+)'
41 -
42 -WAF_PV=2.0.9
43 -
44 -inherit bash-completion-r1 flag-o-matic lua-single optfeature pax-utils python-r1 toolchain-funcs waf-utils xdg-utils
45 -
46 -DESCRIPTION="Media player based on MPlayer and mplayer2"
47 -HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv"
48 -
49 -if [[ ${PV} != *9999* ]]; then
50 - SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 - KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ppc ppc64 ~riscv x86 ~amd64-linux"
52 - DOCS=( RELEASE_NOTES )
53 -else
54 - EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
55 - inherit git-r3
56 - DOCS=(); SRC_URI=""
57 -fi
58 -SRC_URI+=" https://waf.io/waf-${WAF_PV}"
59 -DOCS+=( README.md DOCS/{client-api,interface}-changes.rst )
60 -
61 -# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC.
62 -LICENSE="LGPL-2.1+ GPL-2+ BSD ISC"
63 -SLOT="0"
64 -IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins debug doc drm dvb
65 - dvd +egl gamepad gbm +iconv jack javascript jpeg lcms libcaca libmpv +lua
66 - nvenc openal +opengl pulseaudio raspberry-pi rubberband sdl
67 - selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib zimg"
68 -
69 -REQUIRED_USE="
70 - || ( cli libmpv )
71 - aqua? ( opengl )
72 - egl? ( || ( gbm X wayland ) )
73 - gamepad? ( sdl )
74 - gbm? ( drm egl opengl )
75 - lcms? ( opengl )
76 - lua? ( ${LUA_REQUIRED_USE} )
77 - nvenc? ( opengl )
78 - opengl? ( || ( aqua egl X raspberry-pi !cli ) )
79 - raspberry-pi? ( opengl )
80 - test? ( opengl )
81 - tools? ( cli )
82 - uchardet? ( iconv )
83 - vaapi? ( || ( gbm X wayland ) )
84 - vdpau? ( X )
85 - vulkan? ( || ( X wayland ) )
86 - wayland? ( egl )
87 - X? ( egl? ( opengl ) )
88 - xv? ( X )
89 - ${PYTHON_REQUIRED_USE}
90 -"
91 -
92 -RESTRICT="!test? ( test )"
93 -
94 -COMMON_DEPEND="
95 - >=media-video/ffmpeg-4.0:0=[encode,threads,vaapi?,vdpau?]
96 - alsa? ( >=media-libs/alsa-lib-1.0.18 )
97 - archive? ( >=app-arch/libarchive-3.4.0:= )
98 - bluray? ( >=media-libs/libbluray-0.3.0:= )
99 - cdda? ( dev-libs/libcdio-paranoia
100 - dev-libs/libcdio:= )
101 - drm? ( x11-libs/libdrm )
102 - dvd? (
103 - >=media-libs/libdvdnav-4.2.0:=
104 - >=media-libs/libdvdread-4.1.0:=
105 - )
106 - egl? ( media-libs/mesa[egl(+),gbm(+)?,wayland(-)?] )
107 - gamepad? ( media-libs/libsdl2 )
108 - iconv? (
109 - virtual/libiconv
110 - uchardet? ( app-i18n/uchardet )
111 - )
112 - jack? ( virtual/jack )
113 - javascript? ( >=dev-lang/mujs-1.0.0 )
114 - jpeg? ( virtual/jpeg:0 )
115 - lcms? ( >=media-libs/lcms-2.6:2 )
116 - >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz(+)]
117 - virtual/ttf-fonts
118 - libcaca? ( >=media-libs/libcaca-0.99_beta18 )
119 - lua? ( ${LUA_DEPS} )
120 - openal? ( >=media-libs/openal-1.13 )
121 - pulseaudio? ( media-sound/pulseaudio )
122 - raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
123 - rubberband? ( >=media-libs/rubberband-1.8.0 )
124 - sdl? ( media-libs/libsdl2[sound,threads,video] )
125 - vaapi? ( media-libs/libva:=[drm(+)?,X?,wayland?] )
126 - vdpau? ( x11-libs/libvdpau )
127 - vulkan? (
128 - <media-libs/libplacebo-3.104.0:=[vulkan]
129 - media-libs/shaderc
130 - )
131 - wayland? (
132 - >=dev-libs/wayland-1.6.0
133 - >=dev-libs/wayland-protocols-1.14
134 - >=x11-libs/libxkbcommon-0.3.0
135 - )
136 - X? (
137 - x11-libs/libX11
138 - x11-libs/libXScrnSaver
139 - x11-libs/libXext
140 - x11-libs/libXinerama
141 - x11-libs/libXrandr
142 - opengl? (
143 - x11-libs/libXdamage
144 - virtual/opengl
145 - )
146 - xv? ( x11-libs/libXv )
147 - )
148 - zlib? ( sys-libs/zlib )
149 - zimg? ( >=media-libs/zimg-2.9.2 )
150 -"
151 -DEPEND="${COMMON_DEPEND}
152 - ${PYTHON_DEPS}
153 - dvb? ( virtual/linuxtv-dvb-headers )
154 - nvenc? ( >=media-libs/nv-codec-headers-8.2.15.7 )
155 -"
156 -RDEPEND="${COMMON_DEPEND}
157 - nvenc? ( x11-drivers/nvidia-drivers[X] )
158 - selinux? ( sec-policy/selinux-mplayer )
159 - tools? ( ${PYTHON_DEPS} )
160 -"
161 -BDEPEND="dev-python/docutils
162 - virtual/pkgconfig
163 - test? ( >=dev-util/cmocka-1.0.0 )
164 -"
165 -
166 -pkg_setup() {
167 - use lua && lua-single_pkg_setup
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"${ESYSROOT}/opt/vc/include"
182 - append-ldflags -L"${ESYSROOT}/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 - $(usex debug '' '--disable-debug-build')
196 -
197 - $(use_enable doc html-build)
198 - --disable-pdf-build
199 - --enable-manpage-build
200 - $(use_enable cplugins)
201 - $(use_enable test)
202 -
203 - $(use_enable iconv)
204 - $(use_enable lua)
205 - $(use_enable javascript)
206 - $(use_enable zlib)
207 - $(use_enable bluray libbluray)
208 - $(use_enable dvd dvdnav)
209 - $(use_enable cdda)
210 - $(use_enable uchardet)
211 - $(use_enable rubberband)
212 - $(use_enable lcms lcms2)
213 - --disable-vapoursynth # Only available in overlays.
214 - $(use_enable archive libarchive)
215 -
216 - --enable-libavdevice
217 -
218 - # Audio outputs:
219 - $(use_enable sdl sdl2) # Listed under audio, but also includes video.
220 - $(use_enable pulseaudio pulse)
221 - $(use_enable jack)
222 - $(use_enable openal)
223 - --disable-opensles
224 - $(use_enable alsa)
225 - $(use_enable coreaudio)
226 -
227 - # Video outputs:
228 - $(use_enable aqua cocoa)
229 - $(use_enable drm)
230 - $(use_enable gbm)
231 - $(use_enable wayland wayland-scanner)
232 - $(use_enable wayland wayland-protocols)
233 - $(use_enable wayland)
234 - $(use_enable X x11)
235 - $(use_enable xv)
236 - $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa')
237 - $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11')
238 - $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11')
239 - $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm')
240 - $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland')
241 - $(use_enable vdpau)
242 - $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
243 - $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl.
244 - $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11')
245 - $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland')
246 - $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm')
247 - $(use_enable libcaca caca)
248 - $(use_enable jpeg)
249 - $(use_enable vulkan shaderc)
250 - $(use_enable vulkan libplacebo)
251 - $(use_enable raspberry-pi rpi)
252 - $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl')
253 - $(usex opengl '' '--disable-gl')
254 - $(use_enable vulkan)
255 - $(use_enable gamepad sdl2-gamepad)
256 -
257 - # HWaccels:
258 - # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332.
259 - $(use_enable nvenc cuda-hwaccel)
260 - $(use_enable nvenc cuda-interop)
261 -
262 - # TV features:
263 - $(use_enable dvb dvbin)
264 -
265 - # Miscellaneous features:
266 - $(use_enable zimg)
267 - )
268 - if use lua; then
269 - if use lua_single_target_luajit; then
270 - mywafargs+=( --lua="luajit" )
271 - else
272 - # Because it would be too simple to just let the user directly
273 - # specify the package name to check, wouldn't it.
274 - mywafargs+=( --lua="$(ver_rs 1 '' $(ver_cut 1-2 $(lua_get_version)))" )
275 - fi
276 - fi
277 -
278 - if use vaapi && use X; then
279 - mywafargs+=(
280 - $(use_enable egl vaapi-x-egl)
281 - )
282 - fi
283 -
284 - # Not for us
285 - mywafargs+=(
286 - --disable-android
287 - --disable-egl-android
288 - --disable-uwp
289 - --disable-audiounit
290 - --disable-macos-media-player
291 - --disable-wasapi
292 - --disable-ios-gl
293 - --disable-macos-touchbar
294 - --disable-macos-cocoa-cb
295 - --disable-tvos
296 - --disable-egl-angle-win32
297 - )
298 -
299 - mywafargs+=(
300 - --bashdir="$(get_bashcompdir)"
301 - --zshdir="${EPREFIX}"/usr/share/zsh/site-functions
302 -)
303 -
304 - # Create reproducible non-live builds.
305 - [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date)
306 -
307 - waf-utils_src_configure "${mywafargs[@]}"
308 -}
309 -
310 -src_install() {
311 - waf-utils_src_install
312 -
313 - if use lua; then
314 - insinto /usr/share/${PN}
315 - doins -r TOOLS/lua
316 - fi
317 -
318 - if use cli && use lua_single_target_luajit; then
319 - pax-mark -m "${ED}"/usr/bin/${PN}
320 - fi
321 -
322 - if use tools; then
323 - dobin TOOLS/{mpv_identify.sh,umpv}
324 - newbin TOOLS/idet.sh mpv_idet.sh
325 - python_replicate_script "${ED}"/usr/bin/umpv
326 - fi
327 -}
328 -
329 -pkg_postinst() {
330 - local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0
331 -
332 - for rv in ${REPLACING_VERSIONS}; do
333 - ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1
334 - ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1
335 - ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1
336 - ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1
337 - done
338 -
339 - if [[ ${softvol_0_18_1} -eq 1 ]]; then
340 - elog "Since version 0.18.1 the software volume control is always enabled."
341 - elog "This means that volume controls don't change the system volume,"
342 - elog "e.g. per-application volume with PulseAudio."
343 - elog "If you want to restore the previous behaviour, please refer to"
344 - elog
345 - elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1"
346 - elog
347 - fi
348 -
349 - if [[ ${osc_0_21_0} -eq 1 ]]; then
350 - elog "In version 0.21.0 the default OSC layout was changed."
351 - elog "If you want to restore the previous layout, please refer to"
352 - elog
353 - elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0"
354 - elog
355 - fi
356 -
357 - if [[ ${txtsubs_0_24_0} -eq 1 ]]; then
358 - elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded."
359 - elog "If you want to restore the previous behaviour, please refer to"
360 - elog
361 - elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0"
362 - elog
363 - fi
364 -
365 - if [[ ${opengl_0_25_0} -eq 1 ]]; then
366 - elog "Since version 0.25.0 the 'opengl' USE flag is mapped to"
367 - elog "the 'opengl' video output and no longer explicitly requires"
368 - elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag."
369 - fi
370 -
371 - optfeature "URL support" net-misc/youtube-dl
372 -
373 - xdg_icon_cache_update
374 - xdg_desktop_database_update
375 -}
376 -
377 -pkg_postrm() {
378 - xdg_icon_cache_update
379 - xdg_desktop_database_update
380 -}
381 -
382 -src_test() {
383 - cd "${S}"/build/test || die
384 - local test
385 - for test in *; do
386 - if [[ -x ${test} ]]; then
387 - ./"${test}" || die "Test suite failed"
388 - fi
389 - done
390 -}