Gentoo Archives: gentoo-commits

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