/[gentoo-x86]/media-video/vlc/vlc-9999.ebuild
Gentoo

Diff of /media-video/vlc/vlc-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.96 Revision 1.98
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.96 2010/10/15 21:43:36 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.98 2010/10/16 17:13:54 aballier Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
20inherit eutils multilib autotools toolchain-funcs gnome2 qt4 flag-o-matic ${SCM} 20inherit eutils multilib autotools toolchain-funcs gnome2 qt4 flag-o-matic ${SCM}
21 21
22MY_PV="${PV/_/-}" 22MY_PV="${PV/_/-}"
23MY_PV="${MY_PV/-beta/-test}" 23MY_PV="${MY_PV/-beta/-test}"
24MY_P="${PN}-${MY_PV}" 24MY_P="${PN}-${MY_PV}"
25VLC_SNAPSHOT_TIME="0013"
26 25
27PATCHLEVEL="89" 26PATCHLEVEL="89"
28DESCRIPTION="VLC media player - Video player and streamer" 27DESCRIPTION="VLC media player - Video player and streamer"
29HOMEPAGE="http://www.videolan.org/vlc/" 28HOMEPAGE="http://www.videolan.org/vlc/"
30if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild 29if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
31 SRC_URI="" 30 SRC_URI=""
32elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
33 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
34 MY_P="${P/_alpha*/}-git"
35elif [[ "${MY_P}" == "${P}" ]]; then 31elif [[ "${MY_P}" == "${P}" ]]; then
36 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" 32 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
37else 33else
38 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2" 34 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
39fi 35fi
214 210
215 # It would fail if -fforce-addr is used due to too few registers... 211 # It would fail if -fforce-addr is used due to too few registers...
216 use x86 && filter-flags -fforce-addr 212 use x86 && filter-flags -fforce-addr
217 213
218 econf \ 214 econf \
215 --docdir=/usr/share/doc/${PF} \
219 $(use_enable a52) \ 216 $(use_enable a52) \
220 $(use_enable aalib aa) \ 217 $(use_enable aalib aa) \
221 $(use_enable aac faad) \ 218 $(use_enable aac faad) \
222 $(use_enable alsa) \ 219 $(use_enable alsa) \
223 $(use_enable altivec) \ 220 $(use_enable altivec) \
326 emake DESTDIR="${D}" install || die "make install failed" 323 emake DESTDIR="${D}" install || die "make install failed"
327 324
328 dodoc AUTHORS HACKING THANKS NEWS README \ 325 dodoc AUTHORS HACKING THANKS NEWS README \
329 doc/fortunes.txt doc/intf-vcd.txt 326 doc/fortunes.txt doc/intf-vcd.txt
330 327
331 rm -rf "${D}/usr/share/doc/vlc" \
332 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
333
334 use skins || rm -rf "${D}/usr/share/vlc/skins2"
335
336 # Punt useless libtool's .la files 328 # Punt useless libtool's .la files
337 find "${D}" -name '*.la' -delete 329 find "${D}" -name '*.la' -delete
338} 330}
339 331
340pkg_postinst() { 332pkg_postinst() {

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.98

  ViewVC Help
Powered by ViewVC 1.1.20