Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/vlc: ChangeLog vlc-1.1.2.ebuild
Date: Mon, 02 Aug 2010 06:02:11
Message-Id: 20100802050443.A997A2CE15@corvid.gentoo.org
1 aballier 10/08/02 05:04:43
2
3 Modified: ChangeLog
4 Added: vlc-1.1.2.ebuild
5 Log:
6 version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.615 media-video/vlc/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/ChangeLog?rev=1.615&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/ChangeLog?rev=1.615&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/ChangeLog?r1=1.614&r2=1.615
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
19 retrieving revision 1.614
20 retrieving revision 1.615
21 diff -u -r1.614 -r1.615
22 --- ChangeLog 26 Jul 2010 09:56:55 -0000 1.614
23 +++ ChangeLog 2 Aug 2010 05:04:43 -0000 1.615
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-video/vlc
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.614 2010/07/26 09:56:55 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.615 2010/08/02 05:04:43 aballier Exp $
29 +
30 +*vlc-1.1.2 (02 Aug 2010)
31 +
32 + 02 Aug 2010; Alexis Ballier <aballier@g.o> +vlc-1.1.2.ebuild:
33 + version bump
34
35 26 Jul 2010; Alexis Ballier <aballier@g.o> vlc-9999.ebuild:
36 v4l support has been removed in favor of v4l2
37
38
39
40 1.1 media-video/vlc/vlc-1.1.2.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-1.1.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-1.1.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: vlc-1.1.2.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-1.1.2.ebuild,v 1.1 2010/08/02 05:04:43 aballier Exp $
50
51 EAPI="3"
52
53 SCM=""
54 if [ "${PV%9999}" != "${PV}" ] ; then
55 SCM=git
56 EGIT_BOOTSTRAP="bootstrap"
57 EGIT_BRANCH=master
58 EGIT_PROJECT=${P}
59 if [ "${PV%.9999}" != "${PV}" ] ; then
60 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
61 else
62 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
63 fi
64 fi
65
66 inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic ${SCM}
67
68 MY_PV="${PV/_/-}"
69 MY_PV="${MY_PV/-beta/-test}"
70 MY_P="${PN}-${MY_PV}"
71 VLC_SNAPSHOT_TIME="0013"
72
73 PATCHLEVEL="88"
74 DESCRIPTION="VLC media player - Video player and streamer"
75 HOMEPAGE="http://www.videolan.org/vlc/"
76 if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
77 SRC_URI=""
78 elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
79 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
80 MY_P="${P/_alpha*/}-git"
81 elif [[ "${MY_P}" == "${P}" ]]; then
82 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
83 else
84 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
85 fi
86
87 SRC_URI="${SRC_URI}
88 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
89
90 LICENSE="GPL-2"
91 SLOT="0"
92
93 if [ "${PV%9999}" = "${PV}" ] ; then
94 KEYWORDS="~alpha ~amd64 ~arm ~sparc ~x86 ~x86-fbsd"
95 else
96 KEYWORDS=""
97 fi
98 IUSE="a52 aac aalib alsa altivec atmo avahi bidi cdda cddb dbus dc1394
99 debug dirac directfb dts dvb dvd elibc_glibc fbcon fluidsynth +ffmpeg flac fontconfig
100 +gcrypt ggi gnome gnutls httpd id3tag ieee1394 jack kate kde libass libcaca
101 libnotify libproxy libtiger libv4l libv4l2 lirc live lua matroska mmx
102 modplug mp3 mpeg mtp musepack ncurses nsplugin ogg opengl optimisememory oss
103 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba
104 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream
105 svg svga taglib theora truetype twolame udev upnp v4l v4l2 vaapi vcdx vlm
106 vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi"
107
108 RDEPEND="
109 sys-libs/zlib
110 >=media-libs/libdvbpsi-0.1.6
111 a52? ( >=media-libs/a52dec-0.7.4-r3 )
112 aalib? ( media-libs/aalib )
113 aac? ( >=media-libs/faad2-2.6.1 )
114 alsa? ( media-libs/alsa-lib )
115 avahi? ( >=net-dns/avahi-0.6[dbus] )
116 bidi? ( >=dev-libs/fribidi-0.10.4 )
117 cdda? ( cddb? ( >=media-libs/libcddb-1.2.0 ) )
118 dbus? ( >=sys-apps/dbus-1.0.2 )
119 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
120 dirac? ( >=media-video/dirac-0.10.0 )
121 directfb? ( dev-libs/DirectFB sys-libs/zlib )
122 dts? ( media-libs/libdca )
123 dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 )
124 elibc_glibc? ( >=sys-libs/glibc-2.8 )
125 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20090201 )
126 flac? ( media-libs/libogg >=media-libs/flac-1.1.2 )
127 fluidsynth? ( media-sound/fluidsynth )
128 fontconfig? ( media-libs/fontconfig )
129 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
130 ggi? ( media-libs/libggi )
131 gnome? ( gnome-base/gnome-vfs )
132 gnutls? ( >=net-libs/gnutls-1.7.4 >=dev-libs/libgcrypt-1.2.0 )
133 id3tag? ( media-libs/libid3tag sys-libs/zlib )
134 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
135 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
136 kate? ( >=media-libs/libkate-0.1.1 )
137 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig )
138 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
139 libnotify? ( x11-libs/libnotify )
140 libproxy? ( net-libs/libproxy )
141 libtiger? ( media-libs/libtiger )
142 lirc? ( app-misc/lirc )
143 live? ( >=media-plugins/live-2008.07.06 )
144 lua? ( >=dev-lang/lua-5.1 )
145 matroska? ( >=dev-libs/libebml-0.7.6 >=media-libs/libmatroska-0.8.0 )
146 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
147 mp3? ( media-libs/libmad )
148 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
149 mtp? ( >=media-libs/libmtp-1.0.0 )
150 musepack? ( >=media-sound/musepack-tools-444 )
151 ncurses? ( sys-libs/ncurses )
152 nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt x11-libs/libxcb x11-libs/xcb-util )
153 ogg? ( media-libs/libogg )
154 opengl? ( virtual/opengl x11-libs/libX11[xcb] )
155 png? ( media-libs/libpng sys-libs/zlib )
156 projectm? ( media-libs/libprojectm )
157 pulseaudio? ( >=media-sound/pulseaudio-0.9.11
158 !X? ( >=media-sound/pulseaudio-0.9.11[-X] ) )
159 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 x11-libs/libX11 )
160 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
161 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] <net-fs/samba-3.4 ) )
162 schroedinger? ( >=media-libs/schroedinger-1.0.6 )
163 sdl? ( >=media-libs/libsdl-1.2.8
164 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
165 shout? ( media-libs/libshout )
166 skins? (
167 x11-libs/qt-gui:4 x11-libs/qt-core:4
168 x11-libs/libXext x11-libs/libX11
169 media-libs/freetype media-fonts/dejavu
170 )
171 speex? ( media-libs/speex )
172 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
173 svg? ( >=gnome-base/librsvg-2.9.0 )
174 svga? ( media-libs/svgalib )
175 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
176 theora? ( >=media-libs/libtheora-1.0_beta3 )
177 truetype? ( media-libs/freetype media-fonts/dejavu )
178 twolame? ( media-sound/twolame )
179 udev? ( >=sys-fs/udev-142 )
180 upnp? ( net-libs/libupnp )
181 v4l2? ( libv4l2? ( media-libs/libv4l ) )
182 v4l? ( libv4l? ( media-libs/libv4l ) )
183 vaapi? ( x11-libs/libva >=media-video/ffmpeg-0.5_p22846 )
184 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
185 vorbis? ( media-libs/libvorbis )
186 win32codecs? ( media-libs/win32codecs )
187 X? ( x11-libs/libX11 )
188 x264? ( >=media-libs/x264-0.0.20090923 )
189 xcb? ( x11-libs/libxcb x11-libs/xcb-util )
190 xml? ( dev-libs/libxml2 )
191 xosd? ( x11-libs/xosd )
192 zvbi? ( >=media-libs/zvbi-0.2.25 )
193 "
194
195 DEPEND="${RDEPEND}
196 !!<=media-video/vlc-1.0.99999
197 dvb? ( sys-kernel/linux-headers )
198 kde? ( >=kde-base/kdelibs-4 )
199 v4l? ( sys-kernel/linux-headers )
200 v4l2? ( >=sys-kernel/linux-headers-2.6.25 )
201 xcb? ( x11-proto/xproto )
202 dev-util/pkgconfig"
203
204 S="${WORKDIR}/${MY_P}"
205
206 # Displays a warning if the first use flag is set but the second is not
207 vlc_use_needs() {
208 use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled."
209 }
210
211 # Notify the user that some useflag have been forced on
212 vlc_use_force() {
213 use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled."
214 }
215
216 # Use when $1 depends strictly on $2
217 # if use $1 then enable $2
218 vlc_use_enable_force() {
219 use $1 && echo "--enable-$2"
220 }
221
222 pkg_setup() {
223 # Useflags we need to forcefuly enable
224 vlc_use_force remoteosd gcrypt
225 vlc_use_force gnutls gcrypt
226 vlc_use_force skins truetype
227 vlc_use_force skins qt4
228 vlc_use_force vlm stream
229 vlc_use_force vaapi ffmpeg
230 vlc_use_force nsplugin xcb
231
232 # Useflags that will be automagically discarded if deps are not met
233 vlc_use_needs bidi truetype
234 vlc_use_needs cddb cdda
235 vlc_use_needs fontconfig truetype
236 vlc_use_needs libv4l2 v4l2
237 vlc_use_needs libv4l v4l
238 vlc_use_needs libtiger kate
239 vlc_use_needs xv xcb
240
241 if use qt4 || use skins ; then
242 qt4_pkg_setup
243 else
244 ewarn "You have disabled the qt4 useflag, ${PN} will not have any"
245 ewarn "graphical interface. Maybe that is not what you want..."
246 fi
247 }
248
249 src_unpack() {
250 unpack ${A}
251 if [ "${PV%9999}" != "${PV}" ] ; then
252 git_src_unpack
253 fi
254 }
255
256 src_prepare() {
257 if [ "${PV%9999}" != "${PV}" ] ; then
258 git_src_prepare
259 fi
260 # Make it build with libtool 1.5
261 rm -f m4/lt* m4/libtool.m4
262
263 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
264 eautoreconf
265 }
266
267 src_configure() {
268
269 # It would fail if -fforce-addr is used due to too few registers...
270 use x86 && filter-flags -fforce-addr
271
272 econf \
273 $(use_enable a52) \
274 $(use_enable aalib aa) \
275 $(use_enable aac faad) \
276 $(use_enable alsa) \
277 $(use_enable altivec) \
278 --disable-asademux \
279 $(use_enable atmo) \
280 $(use_enable avahi bonjour) \
281 $(use_enable bidi fribidi) \
282 $(use_enable cdda vcd) \
283 $(use_enable cddb libcddb) \
284 $(use_enable dbus) $(use_enable dbus dbus-control) \
285 $(use_enable dirac) \
286 $(use_enable directfb) \
287 $(use_enable dc1394) \
288 $(use_enable debug) \
289 $(use_enable dts dca) \
290 $(use_enable dvb) \
291 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
292 $(use_enable fbcon fb) \
293 $(use_enable ffmpeg avcodec) $(use_enable ffmpeg avformat) $(use_enable ffmpeg swscale) $(use_enable ffmpeg postproc) \
294 $(use_enable flac) \
295 $(use_enable fluidsynth) \
296 $(use_enable fontconfig) \
297 $(use_enable ggi) \
298 $(use_enable gnome gnomevfs) \
299 $(use_enable gnutls) \
300 $(use_enable httpd) \
301 $(use_enable id3tag) \
302 $(use_enable ieee1394 dv) \
303 $(use_enable jack) \
304 $(use_enable kate) \
305 $(use_with kde kde-solid) \
306 $(use_enable libass) \
307 $(use_enable libcaca caca) \
308 $(use_enable gcrypt libgcrypt) \
309 $(use_enable libnotify notify) \
310 $(use_enable libproxy) \
311 --disable-libtar \
312 $(use_enable libtiger tiger) \
313 $(use_enable libv4l) \
314 $(use_enable libv4l2) \
315 $(use_enable lirc) \
316 $(use_enable live live555) \
317 $(use_enable lua) \
318 $(use_enable matroska mkv) \
319 $(use_enable mmx) \
320 $(use_enable modplug mod) \
321 $(use_enable mp3 mad) \
322 $(use_enable mpeg libmpeg2) \
323 $(use_enable mtp) \
324 $(use_enable musepack mpc) \
325 $(use_enable ncurses) \
326 $(use_enable nsplugin mozilla) --with-mozilla-pkg=libxul \
327 $(use_enable ogg) \
328 $(use_enable opengl glx) $(use_enable opengl) \
329 $(use_enable optimisememory optimize-memory) \
330 $(use_enable oss) \
331 $(use_enable png) \
332 --disable-portaudio \
333 $(use_enable projectm) \
334 $(use_enable pulseaudio pulse) \
335 $(use_enable pvr) \
336 $(use_enable qt4) \
337 $(use_enable remoteosd) \
338 $(use_enable rtsp realrtsp) \
339 $(use_enable run-as-root) \
340 $(use_enable samba smb) \
341 $(use_enable schroedinger) \
342 $(use_enable sdl) \
343 $(use_enable sdl-image) \
344 $(use_enable shine) \
345 $(use_enable shout) \
346 $(use_enable skins skins2) \
347 $(use_enable speex) \
348 $(use_enable sqlite) \
349 $(use_enable sse) \
350 $(use_enable stream sout) \
351 $(use_enable svg) \
352 $(use_enable svga svgalib) \
353 $(use_enable taglib) \
354 $(use_enable theora) \
355 $(use_enable truetype freetype) \
356 $(use_enable twolame) \
357 $(use_enable udev) \
358 $(use_enable upnp) \
359 $(use_enable v4l) \
360 $(use_enable v4l2) \
361 $(use_enable vcdx) \
362 $(use_enable vaapi libva) \
363 $(use_enable vlm) \
364 $(use_enable vorbis) \
365 $(use_enable win32codecs loader) \
366 $(use_enable wma-fixed) \
367 $(use_with X x) \
368 $(use_enable x264) \
369 $(use_enable xcb) \
370 $(use_enable xml libxml2) \
371 $(use_enable xosd) \
372 $(use_enable xv xvideo) \
373 $(use_enable zvbi) $(use_enable !zvbi telx) \
374 --disable-snapshot \
375 --disable-growl \
376 --disable-optimizations \
377 --enable-fast-install \
378 $(vlc_use_enable_force vlm sout) \
379 $(vlc_use_enable_force skins qt4) \
380 $(vlc_use_enable_force skins freetype) \
381 $(vlc_use_enable_force remoteosd libgcrypt) \
382 $(vlc_use_enable_force gnutls libgcrypt) \
383 $(vlc_use_enable_force vaapi avcodec) \
384 $(vlc_use_enable_force nsplugin xcb)
385 }
386
387 src_install() {
388 emake DESTDIR="${D}" install || die "make install failed"
389
390 dodoc AUTHORS HACKING THANKS NEWS README \
391 doc/fortunes.txt doc/intf-vcd.txt
392
393 rm -rf "${D}/usr/share/doc/vlc" \
394 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
395
396 if use nsplugin; then
397 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
398 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
399 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
400 fi
401
402 use skins || rm -rf "${D}/usr/share/vlc/skins2"
403 }
404
405 pkg_postinst() {
406 gnome2_pkg_postinst
407
408 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
409 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
410 "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
411 else
412 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
413 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
414 ewarn "If you do not do it, vlc will take a long time to load."
415 fi
416 }