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 metadata.xml vlc-0.9.3.ebuild
Date: Sat, 27 Sep 2008 07:50:49
Message-Id: E1KjUZh-000199-J1@stork.gentoo.org
1 aballier 08/09/27 07:50:45
2
3 Modified: ChangeLog metadata.xml
4 Added: vlc-0.9.3.ebuild
5 Log:
6 version bump, add kate useflag
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.26.5 x86_64)
8
9 Revision Changes Path
10 1.387 media-video/vlc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.387&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.387&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?r1=1.386&r2=1.387
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
19 retrieving revision 1.386
20 retrieving revision 1.387
21 diff -u -r1.386 -r1.387
22 --- ChangeLog 16 Sep 2008 07:20:53 -0000 1.386
23 +++ ChangeLog 27 Sep 2008 07:50:44 -0000 1.387
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/vlc
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.386 2008/09/16 07:20:53 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.387 2008/09/27 07:50:44 aballier Exp $
29 +
30 +*vlc-0.9.3 (27 Sep 2008)
31 +
32 + 27 Sep 2008; Alexis Ballier <aballier@g.o> metadata.xml,
33 + +vlc-0.9.3.ebuild:
34 + version bump, add kate useflag
35
36 16 Sep 2008; Alexis Ballier <aballier@g.o> metadata.xml,
37 vlc-0.9.2.ebuild:
38
39
40
41 1.13 media-video/vlc/metadata.xml
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/metadata.xml?rev=1.13&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/metadata.xml?rev=1.13&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/metadata.xml?r1=1.12&r2=1.13
46
47 Index: metadata.xml
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/metadata.xml,v
50 retrieving revision 1.12
51 retrieving revision 1.13
52 diff -u -r1.12 -r1.13
53 --- metadata.xml 16 Sep 2008 07:20:53 -0000 1.12
54 +++ metadata.xml 27 Sep 2008 07:50:45 -0000 1.13
55 @@ -16,6 +16,7 @@
56 <flag name="fluidsynth">Enables Fluidsynth MIDI software synthesis (with external sound fonts).</flag>
57 <flag name="httpd">Enables a web based interface for vlc.</flag>
58 <flag name="id3tag">Enables id3tag metadata reader plugin.</flag>
59 + <flag name="kate">Adds support for Ogg Kate subtitles via libkate.</flag>
60 <flag name="libass">Enables subtitles support using libass.</flag>
61 <flag name="libgcrypt">Enables cryptography support via libgcrypt.</flag>
62 <flag name="live">Enables LIVE.com support.</flag>
63
64
65
66 1.1 media-video/vlc/vlc-0.9.3.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.3.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.3.ebuild?rev=1.1&content-type=text/plain
70
71 Index: vlc-0.9.3.ebuild
72 ===================================================================
73 # Copyright 1999-2008 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.9.3.ebuild,v 1.1 2008/09/27 07:50:45 aballier Exp $
76
77 EAPI="1"
78
79 WANT_AUTOMAKE=latest
80 WANT_AUTOCONF=latest
81
82 inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic
83
84 MY_PV="${PV/_/-}"
85 MY_PV="${MY_PV/-beta/-test}"
86 MY_P="${PN}-${MY_PV}"
87 VLC_SNAPSHOT_TIME="0013"
88
89 PATCHLEVEL="59"
90 M4_TARBALL_VERSION="1"
91 DESCRIPTION="VLC media player - Video player and streamer"
92 HOMEPAGE="http://www.videolan.org/vlc/"
93 if [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
94 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
95 MY_P="${P/_alpha*/}-git"
96 elif [[ "${P}" == *_p* ]]; then # Snapshots
97 SRC_URI="mirror://gentoo/${P}.tar.bz2"
98 MY_P="${P}"
99 elif [[ "${MY_P}" == "${P}" ]]; then
100 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
101 else
102 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
103 fi
104
105 SRC_URI="${SRC_URI}
106 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2
107 mirror://gentoo/${PN}-m4-${M4_TARBALL_VERSION}.tar.bz2"
108
109 LICENSE="GPL-2"
110 SLOT="0"
111
112 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
113 IUSE="a52 aac aalib alsa altivec arts atmo avahi bidi cdda cddb cdio dbus dc1394
114 debug dirac directfb dts dvb dvd esd fbcon fluidsynth +ffmpeg flac fontconfig ggi gnome gnutls hal httpd
115 id3tag jack kate libass libcaca +libgcrypt libnotify lirc live lua matroska mmx modplug mp3 mpeg
116 musepack ncurses nsplugin ogg opengl optimisememory oss png pulseaudio pvr +qt4
117 remoteosd rtsp samba schroedinger sdl sdl-image seamonkey shout skins speex sse stream svg svga taglib
118 theora truetype twolame upnp v4l v4l2 vcd vcdx vlm vorbis win32codecs
119 X x264 xinerama xml xosd xv zvbi"
120
121 RDEPEND="
122 sys-libs/zlib
123 media-libs/libdvbpsi
124 a52? ( >=media-libs/a52dec-0.7.4-r3 )
125 aalib? ( media-libs/aalib )
126 aac? ( >=media-libs/faad2-2.6.1 )
127 alsa? ( media-libs/alsa-lib )
128 arts? ( kde-base/arts )
129 avahi? ( >=net-dns/avahi-0.6 )
130 bidi? ( >=dev-libs/fribidi-0.10.4 )
131 cdda? ( >=dev-libs/libcdio-0.72
132 cddb? ( >=media-libs/libcddb-1.2.0 ) )
133 cdio? ( >=dev-libs/libcdio-0.78.2
134 >=media-video/vcdimager-0.7.22 )
135 dbus? ( >=sys-apps/dbus-1.0.2 )
136 dc1394? ( sys-libs/libraw1394
137 <media-libs/libdc1394-1.9.99 )
138 dirac? ( >=media-video/dirac-0.10.0 )
139 directfb? ( dev-libs/DirectFB )
140 dts? ( media-libs/libdca )
141 dvd? ( media-libs/libdvdread
142 media-libs/libdvdcss
143 >=media-libs/libdvdnav-0.1.9
144 media-libs/libdvdplay )
145 esd? ( media-sound/esound )
146 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20070616 )
147 flac? ( media-libs/libogg
148 >=media-libs/flac-1.1.2 )
149 fluidsynth? ( media-sound/fluidsynth )
150 fontconfig? ( media-libs/fontconfig )
151 ggi? ( media-libs/libggi )
152 gnome? ( gnome-base/gnome-vfs )
153 gnutls? ( >=net-libs/gnutls-1.3.3 )
154 hal? ( sys-apps/hal )
155 id3tag? ( media-libs/libid3tag
156 sys-libs/zlib )
157 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
158 kate? ( >=media-libs/libkate-0.1.1 )
159 libass? ( >=media-libs/libass-0.9.5 media-libs/fontconfig )
160 libcaca? ( media-libs/libcaca )
161 libgcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
162 libnotify? ( x11-libs/libnotify )
163 lirc? ( app-misc/lirc )
164 live? ( >=media-plugins/live-2008.07.06 )
165 lua? ( >=dev-lang/lua-5.1 )
166 matroska? (
167 >=dev-libs/libebml-0.7.6
168 >=media-libs/libmatroska-0.8.0 )
169 modplug? ( media-libs/libmodplug )
170 mp3? ( media-libs/libmad )
171 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
172 musepack? ( media-libs/libmpcdec )
173 ncurses? ( sys-libs/ncurses )
174 nsplugin? (
175 seamonkey? ( =www-client/seamonkey-1* )
176 !seamonkey? ( >=net-libs/xulrunner-1.8 )
177 )
178 ogg? ( media-libs/libogg )
179 png? ( media-libs/libpng )
180 pulseaudio? ( >=media-sound/pulseaudio-0.9.8 )
181 qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) )
182 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
183 samba? ( net-fs/samba )
184 schroedinger? ( >=media-libs/schroedinger-1.0 )
185 sdl? ( >=media-libs/libsdl-1.2.8
186 sdl-image? ( media-libs/sdl-image ) )
187 shout? ( media-libs/libshout )
188 skins? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) )
189 speex? ( media-libs/speex )
190 svg? ( >=gnome-base/librsvg-2.9.0 )
191 svga? ( media-libs/svgalib )
192 taglib? ( media-libs/taglib )
193 theora? ( media-libs/libtheora )
194 truetype? ( media-libs/freetype
195 media-fonts/ttf-bitstream-vera )
196 twolame? ( media-sound/twolame )
197 upnp? ( net-libs/libupnp )
198 vorbis? ( media-libs/libvorbis )
199 win32codecs? ( media-libs/win32codecs )
200 X? (
201 x11-libs/libX11
202 x11-libs/libXext
203 xv? ( x11-libs/libXv )
204 xinerama? ( x11-libs/libXinerama )
205 opengl? ( virtual/opengl )
206 )
207 x264? ( media-libs/x264 )
208 xml? ( dev-libs/libxml2 )
209 xosd? ( x11-libs/xosd )
210 zvbi? ( >=media-libs/zvbi-0.2.25 )
211 "
212
213 # Disabled features and reasons:
214 # xvmc? ( x11-libs/libXvMC )
215 # Will probably compile only on x86
216
217 DEPEND="${RDEPEND}
218 dvb? ( sys-kernel/linux-headers )
219 v4l? ( sys-kernel/linux-headers )
220 v4l2? ( sys-kernel/linux-headers )
221 X? ( xinerama? ( x11-proto/xineramaproto ) )
222 dev-util/pkgconfig"
223
224 S="${WORKDIR}/${MY_P}"
225
226 # Dispalys a warning if the first use flag is set but not the second
227 vlc_use_needs() {
228 use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled."
229 }
230
231 # Notify the user that some useflag have been forced on
232 vlc_use_force() {
233 use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled."
234 }
235
236 # Use when $2 depends strictly on $3
237 # if use $1 then enable $2 and $3, otherwise disable $2
238 vlc_use_enable_force() {
239 if use $1 ; then
240 echo "--enable-$2 --enable-$3"
241 else
242 echo "--disable-$2"
243 fi
244 }
245
246 # Prints the configure argument for the ffmpeg scaling api to use
247 vlc_ffmpeg_scaling_api() {
248 if use ffmpeg ; then
249 if has_version ">=media-video/ffmpeg-0.4.9_p20070616-r20" || has_version "=media-video/ffmpeg-0.4.9_p20070616-r2" || has_version "=media-video/ffmpeg-0.4.9_p20070616-r1"; then
250 echo "--enable-swscale --disable-imgresample"
251 else
252 echo "--disable-swscale --enable-imgresample"
253 fi
254 else
255 echo "--disable-swscale --disable-imgresample"
256 fi
257 }
258
259 pkg_setup() {
260 vlc_use_needs skins truetype
261 vlc_use_force skins qt4
262 vlc_use_needs cdda cdio
263 vlc_use_needs vcdx cdio
264 vlc_use_needs bidi truetype
265 vlc_use_force remoteosd libgcrypt
266 vlc_use_needs fontconfig truetype
267 }
268
269 src_unpack() {
270 unpack ${A}
271 cd "${S}"
272
273 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
274 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf
275 }
276
277 src_compile () {
278
279 # It would fail if -fforce-addr is used due to too few registers...
280 use x86 && filter-flags -fforce-addr
281
282 local MOZILLA_PC
283
284 if use nsplugin; then
285 if use seamonkey; then
286 MOZILLA_PC=seamonkey-plugin
287 else
288 if has_version 'net-libs/xulrunner:1.9' ; then
289 MOZILLA_PC=libxul
290 else
291 MOZILLA_PC=xulrunner-plugin
292 fi
293 fi
294 fi
295
296 econf \
297 $(use_enable a52) \
298 $(use_enable aalib aa) \
299 $(use_enable aac faad) \
300 $(use_enable alsa) \
301 $(use_enable altivec) \
302 $(use_enable arts) \
303 --disable-asademux \
304 $(use_enable atmo) \
305 $(use_enable avahi bonjour) \
306 $(use_enable bidi fribidi) \
307 $(use_enable cdda) $(use_enable cdda cddax)\
308 $(use_enable cddb libcddb) \
309 $(use_enable cdio libcdio) \
310 --disable-csri \
311 $(use_enable dbus) $(use_enable dbus dbus-control) \
312 $(use_enable dirac) \
313 $(use_enable directfb) \
314 $(use_enable dc1394) \
315 $(use_enable debug) \
316 $(use_enable dts dca) \
317 --disable-dv \
318 $(use_enable dvb) \
319 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
320 $(use_enable esd) \
321 $(use_enable fbcon fb) \
322 $(use_enable ffmpeg avcodec) $(use_enable ffmpeg avformat) $(vlc_ffmpeg_scaling_api) $(use_enable ffmpeg postproc) \
323 $(use_enable flac) \
324 $(use_enable fluidsynth) \
325 $(use_enable fontconfig) \
326 $(use_enable ggi) \
327 $(use_enable gnome gnomevfs) \
328 $(use_enable gnutls) \
329 $(use_enable hal) \
330 $(use_enable httpd) \
331 $(use_enable id3tag) \
332 $(use_enable jack) \
333 $(use_enable kate) \
334 $(use_enable libass) \
335 $(use_enable libcaca caca) \
336 $(use_enable libgcrypt) \
337 $(use_enable libnotify notify) \
338 --disable-libproxy \
339 --disable-libtar \
340 $(use_enable lirc) \
341 $(use_enable live live555) \
342 $(use_enable lua) \
343 $(use_enable matroska mkv) \
344 $(use_enable mmx) \
345 $(use_enable modplug mod) \
346 $(use_enable mp3 mad) \
347 $(use_enable mpeg libmpeg2) \
348 $(use_enable musepack mpc) \
349 $(use_enable ncurses) \
350 $(use_enable nsplugin mozilla) --with-mozilla-pkg="${MOZILLA_PC}" \
351 $(use_enable ogg) \
352 $(use_enable opengl glx) $(use_enable opengl) $(use_enable opengl galaktos) \
353 $(use_enable optimisememory optimize-memory) \
354 $(use_enable oss) \
355 $(use_enable png) \
356 --disable-portaudio \
357 $(use_enable pulseaudio pulse) \
358 $(use_enable pvr) \
359 $(use_enable qt4) \
360 $(use_enable rtsp realrtsp) \
361 $(use_enable samba smb) \
362 $(use_enable schroedinger) \
363 $(use_enable sdl) \
364 $(use_enable sdl-image) \
365 $(use_enable shout) \
366 $(use_enable skins skins2) \
367 $(use_enable speex) \
368 $(use_enable sse) \
369 $(use_enable stream sout) \
370 $(use_enable svg) \
371 $(use_enable svga svgalib) \
372 $(use_enable taglib) \
373 $(use_enable theora) \
374 $(use_enable truetype freetype) \
375 $(use_enable twolame) \
376 $(use_enable upnp) \
377 $(use_enable v4l) \
378 $(use_enable v4l2) \
379 $(use_enable vcd) \
380 $(use_enable vcdx) \
381 $(use_enable vorbis) \
382 $(use_enable win32codecs loader) \
383 $(use_enable X x11) $(use_enable X screen) \
384 $(use_enable x264) \
385 $(use_enable xinerama) \
386 $(use_enable xml libxml2) \
387 $(use_enable xosd) \
388 $(use_enable xv xvideo) \
389 --disable-xvmc \
390 $(use_enable zvbi) \
391 --disable-snapshot \
392 --disable-growl \
393 --disable-optimizations \
394 --enable-fast-install \
395 $(vlc_use_enable_force vlm vlm sout) \
396 $(vlc_use_enable_force skins skins2 qt4) \
397 $(vlc_use_enable_force remoteosd remoteosd libgcrypt)
398
399 if [[ $(gcc-major-version) == 2 ]]; then
400 sed -i -e s:"-fomit-frame-pointer":: vlc-config || die "-fomit-frame-pointer patching failed"
401 fi
402
403 emake || die "make of VLC failed"
404 }
405
406 src_install() {
407 emake DESTDIR="${D}" install || die "make install failed"
408
409 dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \
410 doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt
411
412 rm -rf "${D}/usr/share/doc/vlc" \
413 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
414
415 if use nsplugin; then
416 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
417 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
418 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
419 fi
420
421 use skins || rm -rf "${D}/usr/share/vlc/skins2"
422
423 for res in 16 32 48; do
424 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
425 newins "${S}"/share/vlc${res}x${res}.png vlc.png
426 done
427 }