/[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.60 Revision 1.61
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.60 2010/02/23 10:48:06 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.61 2010/02/24 12:30:21 aballier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
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" 25VLC_SNAPSHOT_TIME="0013"
26 26
27PATCHLEVEL="80" 27PATCHLEVEL="82"
28DESCRIPTION="VLC media player - Video player and streamer" 28DESCRIPTION="VLC media player - Video player and streamer"
29HOMEPAGE="http://www.videolan.org/vlc/" 29HOMEPAGE="http://www.videolan.org/vlc/"
30if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild 30if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
31 SRC_URI="" 31 SRC_URI=""
32elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org 32elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
357 for res in 16 32 48; do 357 for res in 16 32 48; do
358 insinto /usr/share/icons/hicolor/${res}x${res}/apps/ 358 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
359 newins "${S}"/share/vlc${res}x${res}.png vlc.png 359 newins "${S}"/share/vlc${res}x${res}.png vlc.png
360 done 360 done
361} 361}
362
363pkg_postinst() {
364 gnome2_pkg_postinst
365
366 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
367 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen"
368 "/usr/$(get_libdir)/vlc/vlc-cache-gen"
369 else
370 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
371 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
372 ewarn "If you do not do it, vlc will take a long time to load."
373 fi
374}

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

  ViewVC Help
Powered by ViewVC 1.1.20