1 |
commit: 3ae97e7386332baf912eb11efded246b6a85a9dd |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 29 16:41:23 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 29 18:19:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ae97e73 |
7 |
|
8 |
media-video/vlc: Cleanup, switch to https, fix 2.2.9999 w/ libav-11.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
media-video/vlc/vlc-2.2.6-r1.ebuild | 140 ++++++++++++++--------------------- |
13 |
media-video/vlc/vlc-2.2.9999.ebuild | 144 +++++++++++++++--------------------- |
14 |
media-video/vlc/vlc-9999.ebuild | 139 ++++++++++++++-------------------- |
15 |
3 files changed, 171 insertions(+), 252 deletions(-) |
16 |
|
17 |
diff --git a/media-video/vlc/vlc-2.2.6-r1.ebuild b/media-video/vlc/vlc-2.2.6-r1.ebuild |
18 |
index f43f8c3b644..ea1b3f17fea 100644 |
19 |
--- a/media-video/vlc/vlc-2.2.6-r1.ebuild |
20 |
+++ b/media-video/vlc/vlc-2.2.6-r1.ebuild |
21 |
@@ -3,54 +3,67 @@ |
22 |
|
23 |
EAPI=6 |
24 |
|
25 |
-SCM="" |
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 |
- |
37 |
- if [ "${PV%.9999}" != "${PV}" ] ; then |
38 |
- EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git" |
39 |
+else |
40 |
+ if [[ ${MY_P} = ${P} ]] ; then |
41 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
42 |
else |
43 |
- EGIT_REPO_URI="git://git.videolan.org/vlc.git" |
44 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
45 |
fi |
46 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
47 |
fi |
48 |
- |
49 |
inherit autotools flag-o-matic toolchain-funcs versionator virtualx ${SCM} |
50 |
|
51 |
-MY_PV="${PV/_/-}" |
52 |
-MY_PV="${MY_PV/-beta/-test}" |
53 |
-MY_P="${PN}-${MY_PV}" |
54 |
- |
55 |
DESCRIPTION="VLC media player - Video player and streamer" |
56 |
HOMEPAGE="https://www.videolan.org/vlc/" |
57 |
-if [[ ${PV} = *9999 ]] ; then # Live ebuild |
58 |
- SRC_URI="" |
59 |
-elif [[ "${MY_P}" == "${P}" ]]; then |
60 |
- SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
61 |
-else |
62 |
- SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
63 |
-fi |
64 |
|
65 |
LICENSE="LGPL-2.1 GPL-2" |
66 |
SLOT="0/5-8" # vlc - vlccore |
67 |
|
68 |
-if [[ ${PV} != *9999 ]] ; then |
69 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
70 |
-fi |
71 |
- |
72 |
-IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec |
73 |
- +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug |
74 |
- directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk |
75 |
- fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls |
76 |
- growl gstreamer httpd ieee1394 jack jpeg kate kde libass libav libcaca libnotify |
77 |
- +libsamplerate libtiger linsys libtar lirc live lua |
78 |
+IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec +avformat bidi bluray cdda |
79 |
+ cddb chromaprint dbus dc1394 debug directfb directx dts dvb +dvbpsi dvd dxva2 |
80 |
+ elibc_glibc +encode faad fdk fluidsynth +ffmpeg flac fontconfig +gcrypt gme |
81 |
+ gnome gnutls growl gstreamer httpd ieee1394 jack jpeg kate kde libass libav |
82 |
+ libcaca libnotify +libsamplerate libtiger linsys libtar lirc live lua |
83 |
macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit |
84 |
- matroska cpu_flags_x86_mmx modplug mp3 mpeg |
85 |
- mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus |
86 |
- png postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba |
87 |
- schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg +swscale |
88 |
- taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau |
89 |
- vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi" |
90 |
- |
91 |
+ matroska cpu_flags_x86_mmx modplug mp3 mpeg mtp musepack ncurses neon ogg |
92 |
+ omxil opencv opengl optimisememory opus png postproc projectm pulseaudio |
93 |
+ qt4 +qt5 rdp rtsp run-as-root samba schroedinger sdl sdl-image sftp shout |
94 |
+ sid skins speex cpu_flags_x86_sse svg +swscale taglib theora tremor truetype |
95 |
+ twolame udev upnp vaapi v4l vcdx vdpau vlm vnc vorbis vpx wma-fixed +X |
96 |
+ x264 x265 +xcb xml xv zeroconf zvbi |
97 |
+" |
98 |
+REQUIRED_USE=" |
99 |
+ aalib? ( X ) |
100 |
+ bidi? ( truetype ) |
101 |
+ cddb? ( cdda ) |
102 |
+ dvb? ( dvbpsi ) |
103 |
+ dxva2? ( avcodec ) |
104 |
+ ffmpeg? ( avcodec avformat swscale ) |
105 |
+ fontconfig? ( truetype ) |
106 |
+ gnutls? ( gcrypt ) |
107 |
+ httpd? ( lua ) |
108 |
+ libcaca? ( X ) |
109 |
+ libtar? ( skins ) |
110 |
+ libtiger? ( kate ) |
111 |
+ qt4? ( X ) |
112 |
+ qt5? ( X ) |
113 |
+ sdl? ( X ) |
114 |
+ skins? ( truetype X xml || ( qt4 qt5 ) ) |
115 |
+ vaapi? ( avcodec X ) |
116 |
+ vdpau? ( X ) |
117 |
+ vlm? ( encode ) |
118 |
+ xv? ( xcb ) |
119 |
+" |
120 |
RDEPEND=" |
121 |
dev-libs/libgpg-error:0 |
122 |
net-dns/libidn:0 |
123 |
@@ -152,12 +165,6 @@ RDEPEND=" |
124 |
libav? ( media-video/libav:0=[vaapi] ) |
125 |
) |
126 |
vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 ) |
127 |
- zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
128 |
-" |
129 |
- |
130 |
-# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works; |
131 |
-# thus we'll have to wait for a new release there. |
132 |
-RDEPEND="${RDEPEND} |
133 |
vdpau? ( |
134 |
x11-libs/libvdpau:0 |
135 |
!libav? ( media-video/ffmpeg:0= ) |
136 |
@@ -171,40 +178,17 @@ RDEPEND="${RDEPEND} |
137 |
x265? ( media-libs/x265:0= ) |
138 |
xcb? ( x11-libs/libxcb:0 x11-libs/xcb-util:0 x11-libs/xcb-util-keysyms:0 ) |
139 |
xml? ( dev-libs/libxml2:2 ) |
140 |
+ zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
141 |
zvbi? ( media-libs/zvbi:0 ) |
142 |
" |
143 |
- |
144 |
DEPEND="${RDEPEND} |
145 |
+ app-arch/xz-utils:0 |
146 |
+ >=sys-devel/gettext-0.18.3:* |
147 |
+ virtual/pkgconfig:* |
148 |
!qt5? ( kde? ( kde-frameworks/kdelibs:4 ) ) |
149 |
amd64? ( dev-lang/yasm:* ) |
150 |
x86? ( dev-lang/yasm:* ) |
151 |
xcb? ( x11-proto/xproto:0 ) |
152 |
- app-arch/xz-utils:0 |
153 |
- >=sys-devel/gettext-0.18.3:* |
154 |
- virtual/pkgconfig:* |
155 |
-" |
156 |
- |
157 |
-REQUIRED_USE=" |
158 |
- aalib? ( X ) |
159 |
- bidi? ( truetype ) |
160 |
- cddb? ( cdda ) |
161 |
- dvb? ( dvbpsi ) |
162 |
- dxva2? ( avcodec ) |
163 |
- ffmpeg? ( avcodec avformat swscale ) |
164 |
- fontconfig? ( truetype ) |
165 |
- gnutls? ( gcrypt ) |
166 |
- httpd? ( lua ) |
167 |
- libcaca? ( X ) |
168 |
- libtar? ( skins ) |
169 |
- libtiger? ( kate ) |
170 |
- qt4? ( X ) |
171 |
- qt5? ( X ) |
172 |
- sdl? ( X ) |
173 |
- skins? ( truetype X xml || ( qt4 qt5 ) ) |
174 |
- vaapi? ( avcodec X ) |
175 |
- vdpau? ( X ) |
176 |
- vlm? ( encode ) |
177 |
- xv? ( xcb ) |
178 |
" |
179 |
|
180 |
PATCHES=( |
181 |
@@ -242,14 +226,6 @@ DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt ) |
182 |
|
183 |
S="${WORKDIR}/${MY_P}" |
184 |
|
185 |
-pkg_setup() { |
186 |
- if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then |
187 |
- if ! version_is_at_least 4.5 $(gcc-version) ; then |
188 |
- die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754." |
189 |
- fi |
190 |
- fi |
191 |
-} |
192 |
- |
193 |
src_unpack() { |
194 |
if [[ ${PV} = *9999 ]] ; then |
195 |
git-r3_src_unpack |
196 |
@@ -259,6 +235,8 @@ src_unpack() { |
197 |
} |
198 |
|
199 |
src_prepare() { |
200 |
+ default |
201 |
+ |
202 |
# Remove unnecessary warnings about unimplemented pragmas on gcc for now. |
203 |
# Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc. |
204 |
# |
205 |
@@ -281,8 +259,6 @@ src_prepare() { |
206 |
# We are not in a real git checkout due to the absence of a .git directory. |
207 |
touch src/revision.txt || die |
208 |
|
209 |
- default |
210 |
- |
211 |
# Don't use --started-from-file when not using dbus. |
212 |
if ! use dbus ; then |
213 |
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
214 |
@@ -308,12 +284,10 @@ src_configure() { |
215 |
# Compatibility fix for Samba 4. |
216 |
use samba && append-cppflags "-I/usr/include/samba-4.0" |
217 |
|
218 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. |
219 |
- # See bug #499996 |
220 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
221 |
use x86 && append-cflags $(test-flags-CC -fno-stack-check) |
222 |
|
223 |
- # Needs libresid-builder from libsidplay:2 which is in another directory... |
224 |
- # FIXME! |
225 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
226 |
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
227 |
|
228 |
if use truetype || use projectm ; then |
229 |
@@ -496,13 +470,11 @@ src_test() { |
230 |
|
231 |
src_install() { |
232 |
default |
233 |
- |
234 |
- # Punt useless libtool's .la files |
235 |
find "${D}" -name '*.la' -delete || die |
236 |
} |
237 |
|
238 |
pkg_postinst() { |
239 |
- if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then |
240 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
241 |
einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
242 |
"/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/" |
243 |
else |
244 |
|
245 |
diff --git a/media-video/vlc/vlc-2.2.9999.ebuild b/media-video/vlc/vlc-2.2.9999.ebuild |
246 |
index f53596157ee..ea1b3f17fea 100644 |
247 |
--- a/media-video/vlc/vlc-2.2.9999.ebuild |
248 |
+++ b/media-video/vlc/vlc-2.2.9999.ebuild |
249 |
@@ -3,54 +3,67 @@ |
250 |
|
251 |
EAPI=6 |
252 |
|
253 |
-SCM="" |
254 |
+MY_PV="${PV/_/-}" |
255 |
+MY_PV="${MY_PV/-beta/-test}" |
256 |
+MY_P="${PN}-${MY_PV}" |
257 |
if [[ ${PV} = *9999 ]] ; then |
258 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
259 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
260 |
+ else |
261 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
262 |
+ fi |
263 |
SCM="git-r3" |
264 |
- |
265 |
- if [ "${PV%.9999}" != "${PV}" ] ; then |
266 |
- EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git" |
267 |
+else |
268 |
+ if [[ ${MY_P} = ${P} ]] ; then |
269 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
270 |
else |
271 |
- EGIT_REPO_URI="git://git.videolan.org/vlc.git" |
272 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
273 |
fi |
274 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
275 |
fi |
276 |
- |
277 |
inherit autotools flag-o-matic toolchain-funcs versionator virtualx ${SCM} |
278 |
|
279 |
-MY_PV="${PV/_/-}" |
280 |
-MY_PV="${MY_PV/-beta/-test}" |
281 |
-MY_P="${PN}-${MY_PV}" |
282 |
- |
283 |
DESCRIPTION="VLC media player - Video player and streamer" |
284 |
HOMEPAGE="https://www.videolan.org/vlc/" |
285 |
-if [[ ${PV} = *9999 ]] ; then # Live ebuild |
286 |
- SRC_URI="" |
287 |
-elif [[ "${MY_P}" == "${P}" ]]; then |
288 |
- SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
289 |
-else |
290 |
- SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
291 |
-fi |
292 |
|
293 |
LICENSE="LGPL-2.1 GPL-2" |
294 |
SLOT="0/5-8" # vlc - vlccore |
295 |
|
296 |
-if [[ ${PV} != *9999 ]] ; then |
297 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
298 |
-fi |
299 |
- |
300 |
-IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec |
301 |
- +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug |
302 |
- directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk |
303 |
- fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls |
304 |
- growl gstreamer httpd ieee1394 jack jpeg kate kde libass libav libcaca libnotify |
305 |
- +libsamplerate libtiger linsys libtar lirc live lua |
306 |
+IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec +avformat bidi bluray cdda |
307 |
+ cddb chromaprint dbus dc1394 debug directfb directx dts dvb +dvbpsi dvd dxva2 |
308 |
+ elibc_glibc +encode faad fdk fluidsynth +ffmpeg flac fontconfig +gcrypt gme |
309 |
+ gnome gnutls growl gstreamer httpd ieee1394 jack jpeg kate kde libass libav |
310 |
+ libcaca libnotify +libsamplerate libtiger linsys libtar lirc live lua |
311 |
macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit |
312 |
- matroska cpu_flags_x86_mmx modplug mp3 mpeg |
313 |
- mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus |
314 |
- png postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba |
315 |
- schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg +swscale |
316 |
- taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau |
317 |
- vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi" |
318 |
- |
319 |
+ matroska cpu_flags_x86_mmx modplug mp3 mpeg mtp musepack ncurses neon ogg |
320 |
+ omxil opencv opengl optimisememory opus png postproc projectm pulseaudio |
321 |
+ qt4 +qt5 rdp rtsp run-as-root samba schroedinger sdl sdl-image sftp shout |
322 |
+ sid skins speex cpu_flags_x86_sse svg +swscale taglib theora tremor truetype |
323 |
+ twolame udev upnp vaapi v4l vcdx vdpau vlm vnc vorbis vpx wma-fixed +X |
324 |
+ x264 x265 +xcb xml xv zeroconf zvbi |
325 |
+" |
326 |
+REQUIRED_USE=" |
327 |
+ aalib? ( X ) |
328 |
+ bidi? ( truetype ) |
329 |
+ cddb? ( cdda ) |
330 |
+ dvb? ( dvbpsi ) |
331 |
+ dxva2? ( avcodec ) |
332 |
+ ffmpeg? ( avcodec avformat swscale ) |
333 |
+ fontconfig? ( truetype ) |
334 |
+ gnutls? ( gcrypt ) |
335 |
+ httpd? ( lua ) |
336 |
+ libcaca? ( X ) |
337 |
+ libtar? ( skins ) |
338 |
+ libtiger? ( kate ) |
339 |
+ qt4? ( X ) |
340 |
+ qt5? ( X ) |
341 |
+ sdl? ( X ) |
342 |
+ skins? ( truetype X xml || ( qt4 qt5 ) ) |
343 |
+ vaapi? ( avcodec X ) |
344 |
+ vdpau? ( X ) |
345 |
+ vlm? ( encode ) |
346 |
+ xv? ( xcb ) |
347 |
+" |
348 |
RDEPEND=" |
349 |
dev-libs/libgpg-error:0 |
350 |
net-dns/libidn:0 |
351 |
@@ -152,12 +165,6 @@ RDEPEND=" |
352 |
libav? ( media-video/libav:0=[vaapi] ) |
353 |
) |
354 |
vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 ) |
355 |
- zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
356 |
-" |
357 |
- |
358 |
-# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works; |
359 |
-# thus we'll have to wait for a new release there. |
360 |
-RDEPEND="${RDEPEND} |
361 |
vdpau? ( |
362 |
x11-libs/libvdpau:0 |
363 |
!libav? ( media-video/ffmpeg:0= ) |
364 |
@@ -171,40 +178,17 @@ RDEPEND="${RDEPEND} |
365 |
x265? ( media-libs/x265:0= ) |
366 |
xcb? ( x11-libs/libxcb:0 x11-libs/xcb-util:0 x11-libs/xcb-util-keysyms:0 ) |
367 |
xml? ( dev-libs/libxml2:2 ) |
368 |
+ zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
369 |
zvbi? ( media-libs/zvbi:0 ) |
370 |
" |
371 |
- |
372 |
DEPEND="${RDEPEND} |
373 |
+ app-arch/xz-utils:0 |
374 |
+ >=sys-devel/gettext-0.18.3:* |
375 |
+ virtual/pkgconfig:* |
376 |
!qt5? ( kde? ( kde-frameworks/kdelibs:4 ) ) |
377 |
amd64? ( dev-lang/yasm:* ) |
378 |
x86? ( dev-lang/yasm:* ) |
379 |
xcb? ( x11-proto/xproto:0 ) |
380 |
- app-arch/xz-utils:0 |
381 |
- >=sys-devel/gettext-0.18.3:* |
382 |
- virtual/pkgconfig:* |
383 |
-" |
384 |
- |
385 |
-REQUIRED_USE=" |
386 |
- aalib? ( X ) |
387 |
- bidi? ( truetype ) |
388 |
- cddb? ( cdda ) |
389 |
- dvb? ( dvbpsi ) |
390 |
- dxva2? ( avcodec ) |
391 |
- ffmpeg? ( avcodec avformat swscale ) |
392 |
- fontconfig? ( truetype ) |
393 |
- gnutls? ( gcrypt ) |
394 |
- httpd? ( lua ) |
395 |
- libcaca? ( X ) |
396 |
- libtar? ( skins ) |
397 |
- libtiger? ( kate ) |
398 |
- qt4? ( X ) |
399 |
- qt5? ( X ) |
400 |
- sdl? ( X ) |
401 |
- skins? ( truetype X xml || ( qt4 qt5 ) ) |
402 |
- vaapi? ( avcodec X ) |
403 |
- vdpau? ( X ) |
404 |
- vlm? ( encode ) |
405 |
- xv? ( xcb ) |
406 |
" |
407 |
|
408 |
PATCHES=( |
409 |
@@ -223,6 +207,10 @@ PATCHES=( |
410 |
# Allow QT5.5 since Gentoo has a patched QTwidgets |
411 |
"${FILESDIR}"/${PN}-2.2.2-qt5widgets.patch |
412 |
|
413 |
+ # Bug #575072 |
414 |
+ "${FILESDIR}"/${PN}-2.2.4-relax_ffmpeg.patch |
415 |
+ "${FILESDIR}"/${PN}-2.2.4-ffmpeg3.patch |
416 |
+ |
417 |
# Bug #589396 |
418 |
"${FILESDIR}"/${PN}-2.2.4-cxx0x.patch |
419 |
|
420 |
@@ -238,14 +226,6 @@ DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt ) |
421 |
|
422 |
S="${WORKDIR}/${MY_P}" |
423 |
|
424 |
-pkg_setup() { |
425 |
- if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then |
426 |
- if ! version_is_at_least 4.5 $(gcc-version) ; then |
427 |
- die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754." |
428 |
- fi |
429 |
- fi |
430 |
-} |
431 |
- |
432 |
src_unpack() { |
433 |
if [[ ${PV} = *9999 ]] ; then |
434 |
git-r3_src_unpack |
435 |
@@ -255,6 +235,8 @@ src_unpack() { |
436 |
} |
437 |
|
438 |
src_prepare() { |
439 |
+ default |
440 |
+ |
441 |
# Remove unnecessary warnings about unimplemented pragmas on gcc for now. |
442 |
# Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc. |
443 |
# |
444 |
@@ -277,8 +259,6 @@ src_prepare() { |
445 |
# We are not in a real git checkout due to the absence of a .git directory. |
446 |
touch src/revision.txt || die |
447 |
|
448 |
- default |
449 |
- |
450 |
# Don't use --started-from-file when not using dbus. |
451 |
if ! use dbus ; then |
452 |
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
453 |
@@ -304,12 +284,10 @@ src_configure() { |
454 |
# Compatibility fix for Samba 4. |
455 |
use samba && append-cppflags "-I/usr/include/samba-4.0" |
456 |
|
457 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. |
458 |
- # See bug #499996 |
459 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
460 |
use x86 && append-cflags $(test-flags-CC -fno-stack-check) |
461 |
|
462 |
- # Needs libresid-builder from libsidplay:2 which is in another directory... |
463 |
- # FIXME! |
464 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
465 |
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
466 |
|
467 |
if use truetype || use projectm ; then |
468 |
@@ -492,13 +470,11 @@ src_test() { |
469 |
|
470 |
src_install() { |
471 |
default |
472 |
- |
473 |
- # Punt useless libtool's .la files |
474 |
find "${D}" -name '*.la' -delete || die |
475 |
} |
476 |
|
477 |
pkg_postinst() { |
478 |
- if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then |
479 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
480 |
einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
481 |
"/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/" |
482 |
else |
483 |
|
484 |
diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild |
485 |
index 42d3cb85c8d..11808b476de 100644 |
486 |
--- a/media-video/vlc/vlc-9999.ebuild |
487 |
+++ b/media-video/vlc/vlc-9999.ebuild |
488 |
@@ -3,54 +3,65 @@ |
489 |
|
490 |
EAPI=6 |
491 |
|
492 |
-SCM="" |
493 |
+MY_PV="${PV/_/-}" |
494 |
+MY_PV="${MY_PV/-beta/-test}" |
495 |
+MY_P="${PN}-${MY_PV}" |
496 |
if [[ ${PV} = *9999 ]] ; then |
497 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
498 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
499 |
+ else |
500 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
501 |
+ fi |
502 |
SCM="git-r3" |
503 |
- |
504 |
- if [ "${PV%.9999}" != "${PV}" ] ; then |
505 |
- EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git" |
506 |
+else |
507 |
+ if [[ ${MY_P} = ${P} ]] ; then |
508 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
509 |
else |
510 |
- EGIT_REPO_URI="git://git.videolan.org/vlc.git" |
511 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
512 |
fi |
513 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
514 |
fi |
515 |
- |
516 |
inherit autotools flag-o-matic toolchain-funcs versionator virtualx ${SCM} |
517 |
|
518 |
-MY_PV="${PV/_/-}" |
519 |
-MY_PV="${MY_PV/-beta/-test}" |
520 |
-MY_P="${PN}-${MY_PV}" |
521 |
- |
522 |
DESCRIPTION="VLC media player - Video player and streamer" |
523 |
HOMEPAGE="https://www.videolan.org/vlc/" |
524 |
-if [[ ${PV} = *9999 ]] ; then # Live ebuild |
525 |
- SRC_URI="" |
526 |
-elif [[ "${MY_P}" == "${P}" ]]; then |
527 |
- SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
528 |
-else |
529 |
- SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
530 |
-fi |
531 |
|
532 |
LICENSE="LGPL-2.1 GPL-2" |
533 |
SLOT="0/5-8" # vlc - vlccore |
534 |
|
535 |
-if [[ ${PV} != *9999 ]] ; then |
536 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
537 |
-fi |
538 |
- |
539 |
-IUSE="a52 aalib alsa altivec +audioqueue +avcodec |
540 |
- +avformat bidi bluray cddb chromaprint chromecast dbus dc1394 debug |
541 |
- directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk |
542 |
- fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnutls gstreamer httpd |
543 |
- ieee1394 jack jpeg kate kde libass libav libcaca libnotify |
544 |
- +libsamplerate libtiger linsys libtar lirc live lua |
545 |
- macosx-eyetv macosx-notifications macosx-qtkit |
546 |
- matroska cpu_flags_x86_mmx modplug mp3 mpeg mtp musepack |
547 |
- ncurses neon ogg omxil opencv opengl optimisememory opus |
548 |
- png postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba |
549 |
- schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg +swscale |
550 |
- taglib theora tremor truetype twolame udev upnp vaapi v4l vcd vdpau |
551 |
- vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi" |
552 |
- |
553 |
+IUSE="a52 aalib alsa altivec +audioqueue +avcodec +avformat bidi bluray cddb |
554 |
+ chromaprint chromecast dbus dc1394 debug directfb directx dts dvb +dvbpsi dvd |
555 |
+ dxva2 elibc_glibc +encode faad fdk fluidsynth +ffmpeg flac fontconfig +gcrypt |
556 |
+ gme gnutls gstreamer httpd ieee1394 jack jpeg kate kde libass libav libcaca |
557 |
+ libnotify +libsamplerate libtiger linsys libtar lirc live lua macosx-eyetv |
558 |
+ macosx-notifications macosx-qtkit matroska cpu_flags_x86_mmx modplug mp3 |
559 |
+ mpeg mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus |
560 |
+ png postproc projectm pulseaudio qt4 +qt5 rdp rtsp run-as-root samba |
561 |
+ schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg |
562 |
+ +swscale taglib theora tremor truetype twolame udev upnp vaapi v4l vcd vdpau |
563 |
+ vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi |
564 |
+" |
565 |
+REQUIRED_USE=" |
566 |
+ aalib? ( X ) |
567 |
+ bidi? ( truetype ) |
568 |
+ dvb? ( dvbpsi ) |
569 |
+ dxva2? ( avcodec ) |
570 |
+ ffmpeg? ( avcodec avformat swscale ) |
571 |
+ fontconfig? ( truetype ) |
572 |
+ gnutls? ( gcrypt ) |
573 |
+ httpd? ( lua ) |
574 |
+ libcaca? ( X ) |
575 |
+ libtar? ( skins ) |
576 |
+ libtiger? ( kate ) |
577 |
+ qt4? ( X ) |
578 |
+ qt5? ( X ) |
579 |
+ sdl? ( X ) |
580 |
+ skins? ( truetype X xml || ( qt4 qt5 ) ) |
581 |
+ vaapi? ( avcodec X ) |
582 |
+ vdpau? ( X ) |
583 |
+ vlm? ( encode ) |
584 |
+ xv? ( xcb ) |
585 |
+" |
586 |
RDEPEND=" |
587 |
dev-libs/libgpg-error:0 |
588 |
net-dns/libidn:0 |
589 |
@@ -152,12 +163,6 @@ RDEPEND=" |
590 |
libav? ( media-video/libav:0=[vaapi] ) |
591 |
) |
592 |
vcd? ( >=dev-libs/libcdio-0.78.2:0 ) |
593 |
- zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
594 |
-" |
595 |
- |
596 |
-# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works; |
597 |
-# thus we'll have to wait for a new release there. |
598 |
-RDEPEND="${RDEPEND} |
599 |
vdpau? ( |
600 |
x11-libs/libvdpau:0 |
601 |
!libav? ( media-video/ffmpeg:0= ) |
602 |
@@ -171,39 +176,17 @@ RDEPEND="${RDEPEND} |
603 |
x265? ( media-libs/x265:0= ) |
604 |
xcb? ( x11-libs/libxcb:0 x11-libs/xcb-util:0 x11-libs/xcb-util-keysyms:0 ) |
605 |
xml? ( dev-libs/libxml2:2 ) |
606 |
+ zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
607 |
zvbi? ( media-libs/zvbi:0 ) |
608 |
" |
609 |
- |
610 |
DEPEND="${RDEPEND} |
611 |
+ app-arch/xz-utils:0 |
612 |
+ >=sys-devel/gettext-0.19.6:* |
613 |
+ virtual/pkgconfig:* |
614 |
!qt5? ( kde? ( kde-frameworks/kdelibs:4 ) ) |
615 |
amd64? ( dev-lang/yasm:* ) |
616 |
x86? ( dev-lang/yasm:* ) |
617 |
xcb? ( x11-proto/xproto:0 ) |
618 |
- app-arch/xz-utils:0 |
619 |
- >=sys-devel/gettext-0.19.6:* |
620 |
- virtual/pkgconfig:* |
621 |
-" |
622 |
- |
623 |
-REQUIRED_USE=" |
624 |
- aalib? ( X ) |
625 |
- bidi? ( truetype ) |
626 |
- dvb? ( dvbpsi ) |
627 |
- dxva2? ( avcodec ) |
628 |
- ffmpeg? ( avcodec avformat swscale ) |
629 |
- fontconfig? ( truetype ) |
630 |
- gnutls? ( gcrypt ) |
631 |
- httpd? ( lua ) |
632 |
- libcaca? ( X ) |
633 |
- libtar? ( skins ) |
634 |
- libtiger? ( kate ) |
635 |
- qt4? ( X ) |
636 |
- qt5? ( X ) |
637 |
- sdl? ( X ) |
638 |
- skins? ( truetype X xml || ( qt4 qt5 ) ) |
639 |
- vaapi? ( avcodec X ) |
640 |
- vdpau? ( X ) |
641 |
- vlm? ( encode ) |
642 |
- xv? ( xcb ) |
643 |
" |
644 |
|
645 |
PATCHES=( |
646 |
@@ -224,14 +207,6 @@ DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
647 |
|
648 |
S="${WORKDIR}/${MY_P}" |
649 |
|
650 |
-pkg_setup() { |
651 |
- if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then |
652 |
- if ! version_is_at_least 4.5 $(gcc-version) ; then |
653 |
- die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754." |
654 |
- fi |
655 |
- fi |
656 |
-} |
657 |
- |
658 |
src_unpack() { |
659 |
if [[ ${PV} = *9999 ]] ; then |
660 |
git-r3_src_unpack |
661 |
@@ -241,6 +216,8 @@ src_unpack() { |
662 |
} |
663 |
|
664 |
src_prepare() { |
665 |
+ default |
666 |
+ |
667 |
# Remove unnecessary warnings about unimplemented pragmas on gcc for now. |
668 |
# Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc. |
669 |
# |
670 |
@@ -263,8 +240,6 @@ src_prepare() { |
671 |
# We are not in a real git checkout due to the absence of a .git directory. |
672 |
touch src/revision.txt || die |
673 |
|
674 |
- default |
675 |
- |
676 |
# Don't use --started-from-file when not using dbus. |
677 |
if ! use dbus ; then |
678 |
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
679 |
@@ -290,15 +265,13 @@ src_configure() { |
680 |
# Compatibility fix for Samba 4. |
681 |
use samba && append-cppflags "-I/usr/include/samba-4.0" |
682 |
|
683 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. |
684 |
- # See bug #499996 |
685 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
686 |
use x86 && append-cflags $(test-flags-CC -fno-stack-check) |
687 |
|
688 |
# VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
689 |
append-cxxflags -std=c++11 |
690 |
|
691 |
- # Needs libresid-builder from libsidplay:2 which is in another directory... |
692 |
- # FIXME! |
693 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
694 |
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
695 |
|
696 |
if use truetype || use projectm ; then |
697 |
@@ -470,13 +443,11 @@ src_test() { |
698 |
|
699 |
src_install() { |
700 |
default |
701 |
- |
702 |
- # Punt useless libtool's .la files |
703 |
find "${D}" -name '*.la' -delete || die |
704 |
} |
705 |
|
706 |
pkg_postinst() { |
707 |
- if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then |
708 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
709 |
einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
710 |
"/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/" |
711 |
else |