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