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