Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/vlc/
Date: Sat, 01 Sep 2018 19:19:46
Message-Id: 1535829053.195b87225f0febde1fc91c707959a743bfca220b.asturm@gentoo
1 commit: 195b87225f0febde1fc91c707959a743bfca220b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 1 18:47:43 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 1 19:10:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=195b8722
7
8 media-video/vlc: 3.0.4 version bump
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 media-video/vlc/Manifest | 1 +
13 media-video/vlc/vlc-3.0.4.ebuild | 492 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 493 insertions(+)
15
16 diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest
17 index 06f4d1b15d5..0b46d050985 100644
18 --- a/media-video/vlc/Manifest
19 +++ b/media-video/vlc/Manifest
20 @@ -1 +1,2 @@
21 DIST vlc-3.0.3.tar.xz 24941592 BLAKE2B dd6e27b10064ecae1c6f64459d2ed172d09f8dc1414c4d96bf66e8b3104154154229bb5d638955c855b6cf471b8630196b170db94b61506c7e0dd42bec8fbb20 SHA512 1569cefa6623b2631a832679bc9a63ebeba222901e5221d254e896a68d2ee467054da8de9eda566924e80a11bb29a673a9f0c4243793845547d8027b58a238ab
22 +DIST vlc-3.0.4.tar.xz 24934112 BLAKE2B b8e680e178f5d34b187d5ee613a75e247b9ef500b18843a6c987479d1afc2e723111a7d3f2ac2ec8c2f34cbd36e2e7a9c0e0add6e594418fc429ec8878f0b1b0 SHA512 55c5a45a1573d559f8d62272dc446bebfb328bd48f938e634693a45032e1a3095148e634de5bc53a3a3c0e4858f7df3ed7e5dc91f3f5447e47d0ab5775171271
23
24 diff --git a/media-video/vlc/vlc-3.0.4.ebuild b/media-video/vlc/vlc-3.0.4.ebuild
25 new file mode 100644
26 index 00000000000..b2e1f771823
27 --- /dev/null
28 +++ b/media-video/vlc/vlc-3.0.4.ebuild
29 @@ -0,0 +1,492 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +MY_PV="${PV/_/-}"
36 +MY_PV="${MY_PV/-beta/-test}"
37 +MY_P="${PN}-${MY_PV}"
38 +if [[ ${PV} = *9999 ]] ; then
39 + if [[ ${PV%.9999} != ${PV} ]] ; then
40 + EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git"
41 + else
42 + EGIT_REPO_URI="https://git.videolan.org/git/vlc.git"
43 + fi
44 + SCM="git-r3"
45 +else
46 + if [[ ${MY_P} = ${P} ]] ; then
47 + SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
48 + else
49 + SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
50 + fi
51 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd"
52 +fi
53 +inherit autotools flag-o-matic gnome2-utils toolchain-funcs virtualx xdg-utils ${SCM}
54 +
55 +DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
56 +HOMEPAGE="https://www.videolan.org/vlc/"
57 +
58 +LICENSE="LGPL-2.1 GPL-2"
59 +SLOT="0/5-9" # vlc - vlccore
60 +
61 +IUSE="a52 alsa altivec aom archive aribsub bidi bluray cddb chromaprint chromecast dbus
62 + dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth
63 + fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate libass
64 + libav libcaca libnotify +libsamplerate libtar libtiger linsys lirc live lua
65 + macosx-notifications macosx-qtkit matroska modplug mp3 mpeg mtp musepack ncurses
66 + neon nfs ogg omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5
67 + rdp run-as-root samba schroedinger sdl-image sftp shout sid skins soxr speex srt ssl
68 + svg taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx
69 + wayland wma-fixed +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse
70 +"
71 +REQUIRED_USE="
72 + chromecast? ( encode )
73 + directx? ( ffmpeg )
74 + fontconfig? ( truetype )
75 + libcaca? ( X )
76 + libtar? ( skins )
77 + libtiger? ( kate )
78 + postproc? ( ffmpeg )
79 + skins? ( qt5 truetype X xml )
80 + ssl? ( gcrypt )
81 + vaapi? ( ffmpeg X )
82 + vdpau? ( ffmpeg X )
83 +"
84 +RDEPEND="
85 + net-dns/libidn:=
86 + sys-libs/zlib:0[minizip]
87 + virtual/libintl:0
88 + virtual/opengl
89 + a52? ( media-libs/a52dec:0 )
90 + alsa? ( media-libs/alsa-lib:0 )
91 + aom? ( media-libs/libaom:= )
92 + archive? ( app-arch/libarchive:= )
93 + aribsub? ( media-libs/aribb24 )
94 + bidi? (
95 + dev-libs/fribidi:0
96 + media-libs/freetype:2[harfbuzz]
97 + media-libs/harfbuzz
98 + virtual/ttf-fonts:0
99 + )
100 + bluray? ( media-libs/libbluray:0= )
101 + cddb? ( media-libs/libcddb:0 )
102 + chromaprint? ( media-libs/chromaprint:0= )
103 + chromecast? (
104 + >=dev-libs/protobuf-2.5.0:=
105 + >=net-libs/libmicrodns-0.0.9:=
106 + )
107 + dbus? ( sys-apps/dbus:0 )
108 + dc1394? (
109 + media-libs/libdc1394:2
110 + sys-libs/libraw1394:0
111 + )
112 + dts? ( media-libs/libdca:0 )
113 + dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:0= )
114 + dvd? (
115 + >=media-libs/libdvdnav-4.9:0
116 + >=media-libs/libdvdread-4.9:0
117 + )
118 + faad? ( media-libs/faad2:0 )
119 + fdk? ( media-libs/fdk-aac:0= )
120 + ffmpeg? (
121 + !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] )
122 + libav? ( >=media-video/libav-12.2:0=[vaapi?,vdpau?] )
123 + )
124 + flac? (
125 + media-libs/flac:0
126 + media-libs/libogg:0
127 + )
128 + fluidsynth? ( media-sound/fluidsynth:0 )
129 + fontconfig? ( media-libs/fontconfig:1.0 )
130 + gcrypt? (
131 + dev-libs/libgcrypt:0=
132 + dev-libs/libgpg-error:0
133 + )
134 + gme? ( media-libs/game-music-emu:0 )
135 + gnome-keyring? ( app-crypt/libsecret )
136 + gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
137 + ieee1394? (
138 + sys-libs/libavc1394:0
139 + sys-libs/libraw1394:0
140 + )
141 + jack? ( virtual/jack )
142 + jpeg? ( virtual/jpeg:0 )
143 + kate? ( media-libs/libkate:0 )
144 + libass? (
145 + media-libs/fontconfig:1.0
146 + media-libs/libass:0=
147 + )
148 + libcaca? ( media-libs/libcaca:0 )
149 + libnotify? (
150 + dev-libs/glib:2
151 + x11-libs/gdk-pixbuf:2
152 + x11-libs/gtk+:3
153 + x11-libs/libnotify:0
154 + )
155 + libsamplerate? ( media-libs/libsamplerate:0 )
156 + libtar? ( dev-libs/libtar:0 )
157 + libtiger? ( media-libs/libtiger:0 )
158 + linsys? ( media-libs/zvbi )
159 + lirc? ( app-misc/lirc:0 )
160 + live? ( media-plugins/live:0 )
161 + lua? ( >=dev-lang/lua-5.1:0 )
162 + matroska? (
163 + dev-libs/libebml:0=
164 + media-libs/libmatroska:0=
165 + )
166 + modplug? ( media-libs/libmodplug:0 )
167 + mp3? ( media-libs/libmad:0 )
168 + mpeg? ( media-libs/libmpeg2:0 )
169 + mtp? ( media-libs/libmtp:0= )
170 + musepack? ( media-sound/musepack-tools:0 )
171 + ncurses? ( sys-libs/ncurses:0=[unicode] )
172 + nfs? ( >=net-fs/libnfs-0.10.0:= )
173 + ogg? ( media-libs/libogg:0 )
174 + opencv? ( media-libs/opencv:0= )
175 + opus? ( >=media-libs/opus-1.0.3:0 )
176 + png? ( media-libs/libpng:0= )
177 + postproc? ( libav? ( media-libs/libpostproc:0= ) )
178 + projectm? (
179 + media-fonts/dejavu:0
180 + media-libs/libprojectm:0
181 + )
182 + pulseaudio? ( media-sound/pulseaudio:0 )
183 + qt5? (
184 + dev-qt/qtcore:5
185 + dev-qt/qtgui:5
186 + dev-qt/qtsvg:5
187 + dev-qt/qtwidgets:5
188 + X? (
189 + dev-qt/qtx11extras:5
190 + x11-libs/libX11
191 + )
192 + )
193 + rdp? ( >=net-misc/freerdp-2.0.0_rc0:0=[client] )
194 + samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] )
195 + schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
196 + sdl-image? ( media-libs/sdl-image:0 )
197 + sftp? ( net-libs/libssh2:0 )
198 + shout? ( media-libs/libshout:0 )
199 + sid? ( media-libs/libsidplay:2 )
200 + skins? (
201 + x11-libs/libXext:0
202 + x11-libs/libXinerama:0
203 + x11-libs/libXpm:0
204 + )
205 + soxr? ( media-libs/soxr )
206 + speex? (
207 + >=media-libs/speex-1.2.0:0
208 + media-libs/speexdsp:0
209 + )
210 + srt? ( net-libs/srt )
211 + ssl? ( net-libs/gnutls:0 )
212 + svg? (
213 + gnome-base/librsvg:2
214 + x11-libs/cairo:0
215 + )
216 + taglib? ( >=media-libs/taglib-1.9:0 )
217 + theora? ( media-libs/libtheora:0 )
218 + tremor? ( media-libs/tremor:0 )
219 + truetype? (
220 + media-libs/freetype:2
221 + virtual/ttf-fonts:0
222 + !fontconfig? ( media-fonts/dejavu:0 )
223 + )
224 + twolame? ( media-sound/twolame:0 )
225 + udev? ( virtual/udev:0 )
226 + upnp? ( net-libs/libupnp:= )
227 + v4l? ( media-libs/libv4l:0 )
228 + vaapi? ( x11-libs/libva:0=[drm,wayland?,X?] )
229 + vdpau? ( x11-libs/libvdpau:0 )
230 + vnc? ( net-libs/libvncserver:0 )
231 + vorbis? ( media-libs/libvorbis:0 )
232 + vpx? ( media-libs/libvpx:0= )
233 + wayland? (
234 + >=dev-libs/wayland-1.15
235 + dev-libs/wayland-protocols
236 + )
237 + X? (
238 + x11-libs/libX11
239 + x11-libs/libxcb
240 + x11-libs/xcb-util
241 + x11-libs/xcb-util-keysyms
242 + )
243 + x264? ( media-libs/x264:0= )
244 + x265? ( media-libs/x265:0= )
245 + xml? ( dev-libs/libxml2:2 )
246 + zeroconf? ( net-dns/avahi:0[dbus] )
247 + zvbi? ( media-libs/zvbi )
248 +"
249 +DEPEND="${RDEPEND}
250 + >=sys-devel/gettext-0.19.8:*
251 + virtual/pkgconfig:*
252 + amd64? ( dev-lang/yasm:* )
253 + x86? ( dev-lang/yasm:* )
254 + X? ( x11-base/xorg-proto )
255 +"
256 +
257 +PATCHES=(
258 + "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system
259 + "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch # bug #593460
260 + "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164
261 +)
262 +
263 +DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt )
264 +
265 +S="${WORKDIR}/${MY_P}"
266 +
267 +src_prepare() {
268 + default
269 +
270 + has_version '>=net-libs/libupnp-1.8.0' && \
271 + eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch
272 +
273 + # Bootstrap when we are on a git checkout.
274 + if [[ ${PV} = *9999 ]] ; then
275 + ./bootstrap
276 + fi
277 +
278 + # Make it build with libtool 1.5
279 + rm m4/lt* m4/libtool.m4 || die
280 +
281 + # We are not in a real git checkout due to the absence of a .git directory.
282 + touch src/revision.txt || die
283 +
284 + # Don't use --started-from-file when not using dbus.
285 + if ! use dbus ; then
286 + sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
287 + fi
288 +
289 + # Disable running of vlc-cache-gen, we do that in pkg_postinst
290 + sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
291 + -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
292 +
293 + eautoreconf
294 +
295 + # Disable automatic running of tests.
296 + find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
297 +}
298 +
299 +src_configure() {
300 + local myeconfargs=(
301 + --disable-aa
302 + --disable-dependency-tracking
303 + --disable-optimizations
304 + --disable-update-check
305 + --enable-fast-install
306 + --enable-screen
307 + --enable-vcd
308 + --enable-vlc
309 + $(use_enable a52)
310 + $(use_enable alsa)
311 + $(use_enable altivec)
312 + $(use_enable aom)
313 + $(use_enable archive)
314 + $(use_enable aribsub)
315 + $(use_enable bidi fribidi)
316 + $(use_enable bidi harfbuzz)
317 + $(use_enable bluray)
318 + $(use_enable cddb libcddb)
319 + $(use_enable chromaprint)
320 + $(use_enable chromecast)
321 + $(use_enable chromecast microdns)
322 + $(use_enable cpu_flags_x86_mmx mmx)
323 + $(use_enable cpu_flags_x86_sse sse)
324 + $(use_enable dbus)
325 + $(use_enable dbus kwallet)
326 + $(use_enable dc1394)
327 + $(use_enable debug)
328 + $(use_enable directx)
329 + $(use_enable directx d3d11va)
330 + $(use_enable directx dxva2)
331 + $(use_enable dts dca)
332 + $(use_enable dvbpsi)
333 + $(use_enable dvd dvdnav)
334 + $(use_enable dvd dvdread)
335 + $(use_enable encode sout)
336 + $(use_enable encode vlm)
337 + $(use_enable faad)
338 + $(use_enable fdk fdkaac)
339 + $(use_enable ffmpeg avcodec)
340 + $(use_enable ffmpeg avformat)
341 + $(use_enable ffmpeg swscale)
342 + $(use_enable flac)
343 + $(use_enable fluidsynth)
344 + $(use_enable fontconfig)
345 + $(use_enable gcrypt libgcrypt)
346 + $(use_enable gme)
347 + $(use_enable gnome-keyring secret)
348 + $(use_enable gstreamer gst-decode)
349 + $(use_enable ieee1394 dv1394)
350 + $(use_enable jack)
351 + $(use_enable jpeg)
352 + $(use_enable kate)
353 + $(use_enable libass)
354 + $(use_enable libcaca caca)
355 + $(use_enable libnotify notify)
356 + $(use_enable libsamplerate samplerate)
357 + $(use_enable libtar)
358 + $(use_enable libtiger tiger)
359 + $(use_enable linsys)
360 + $(use_enable lirc)
361 + $(use_enable live live555)
362 + $(use_enable lua)
363 + $(use_enable macosx-notifications osx-notifications)
364 + $(use_enable macosx-qtkit)
365 + $(use_enable matroska)
366 + $(use_enable modplug mod)
367 + $(use_enable mp3 mad)
368 + $(use_enable mpeg libmpeg2)
369 + $(use_enable mtp)
370 + $(use_enable musepack mpc)
371 + $(use_enable ncurses)
372 + $(use_enable neon)
373 + $(use_enable ogg)
374 + $(use_enable omxil)
375 + $(use_enable omxil omxil-vout)
376 + $(use_enable opencv)
377 + $(use_enable optimisememory optimize-memory)
378 + $(use_enable opus)
379 + $(use_enable png)
380 + $(use_enable postproc)
381 + $(use_enable projectm)
382 + $(use_enable pulseaudio pulse)
383 + $(use_enable qt5 qt)
384 + $(use_enable rdp freerdp)
385 + $(use_enable run-as-root)
386 + $(use_enable samba smbclient)
387 + $(use_enable schroedinger)
388 + $(use_enable sdl-image)
389 + $(use_enable sftp)
390 + $(use_enable shout)
391 + $(use_enable sid)
392 + $(use_enable skins skins2)
393 + $(use_enable soxr)
394 + $(use_enable speex)
395 + $(use_enable srt)
396 + $(use_enable ssl gnutls)
397 + $(use_enable svg)
398 + $(use_enable svg svgdec)
399 + $(use_enable taglib)
400 + $(use_enable theora)
401 + $(use_enable tremor)
402 + $(use_enable twolame)
403 + $(use_enable udev)
404 + $(use_enable upnp)
405 + $(use_enable v4l v4l2)
406 + $(use_enable vaapi libva)
407 + $(use_enable vdpau)
408 + $(use_enable vnc)
409 + $(use_enable vorbis)
410 + $(use_enable vpx)
411 + $(use_enable wayland)
412 + $(use_enable wma-fixed)
413 + $(use_with X x)
414 + $(use_enable X xcb)
415 + $(use_enable X xvideo)
416 + $(use_enable x264)
417 + $(use_enable x265)
418 + $(use_enable xml libxml2)
419 + $(use_enable zeroconf avahi)
420 + $(use_enable zvbi)
421 + $(use_enable !zvbi telx)
422 + --disable-asdcp
423 + --disable-coverage
424 + --disable-cprof
425 + --disable-crystalhd
426 + --disable-decklink
427 + --disable-gles2
428 + --disable-goom
429 + --disable-kai
430 + --disable-kva
431 + --disable-libplacebo
432 + --disable-maintainer-mode
433 + --disable-merge-ffmpeg
434 + --disable-mfx
435 + --disable-mmal
436 + --disable-opensles
437 + --disable-oss
438 + --disable-rpi-omxil
439 + --disable-shine
440 + --disable-sndio
441 + --disable-spatialaudio
442 + --disable-vsxu
443 + --disable-wasapi
444 + )
445 + # ^ We don't have these disabled libraries in the Portage tree yet.
446 +
447 + # Compatibility fix for Samba 4.
448 + use samba && append-cppflags "-I/usr/include/samba-4.0"
449 +
450 + if use x86; then
451 + # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
452 + append-cflags $(test-flags-CC -fno-stack-check)
453 + # Bug 569774
454 + replace-flags -Os -O2
455 + fi
456 +
457 + # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8
458 + append-cxxflags -std=c++11
459 +
460 + # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
461 + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
462 +
463 + xdg_environment_reset # bug 608256
464 +
465 + if use truetype || use bidi; then
466 + myeconfargs+=( --enable-freetype )
467 + else
468 + myeconfargs+=( --disable-freetype )
469 + fi
470 +
471 + if use truetype || use projectm; then
472 + local dejavu="/usr/share/fonts/dejavu/"
473 + myeconfargs+=(
474 + --with-default-font=${dejavu}/DejaVuSans.ttf
475 + --with-default-font-family=Sans
476 + --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
477 + --with-default-monospace-font-family=Monospace
478 + )
479 + fi
480 +
481 + econf ${myeconfargs[@]}
482 +
483 + # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
484 + # Other values may break the build (bug 523144), so definition should not be removed.
485 + # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h
486 + sed -i '1i#undef _FORTIFY_SOURCE' config.h || die
487 +}
488 +
489 +src_test() {
490 + virtx emake check-TESTS
491 +}
492 +
493 +src_install() {
494 + default
495 + find "${D}" -name '*.la' -delete || die
496 +}
497 +
498 +pkg_postinst() {
499 + if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then
500 + einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
501 + "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/"
502 + else
503 + ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
504 + ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
505 + ewarn "If you do not do it, vlc will take a long time to load."
506 + fi
507 +
508 + gnome2_icon_cache_update
509 + xdg_mimeinfo_database_update
510 + xdg_desktop_database_update
511 +}
512 +
513 +pkg_postrm() {
514 + if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
515 + rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
516 + fi
517 +
518 + gnome2_icon_cache_update
519 + xdg_mimeinfo_database_update
520 + xdg_desktop_database_update
521 +}