/[gentoo-x86]/media-tv/freevo/freevo-1.5.4.ebuild
Gentoo

Contents of /media-tv/freevo/freevo-1.5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Oct 25 15:39:53 2008 UTC (12 years, 1 month ago) by rbu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
  Version bump (bug #217542), a lot of upstream changes, cleanup old stuff.
  Downstream changes:
   * USE flag restructuring, add xine use flag (bug #226181 by alpiturchi)
   * Change freevoboot script so it works with slim (patch by Kai Dietrich)
(Portage version: 2.2_rc12/cvs/Linux 2.6.27.2 x86_64)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-tv/freevo/freevo-1.5.4.ebuild,v 1.11 2007/11/27 11:14:27 zzam Exp $
4
5 inherit distutils
6
7 IUSE="matrox dvd encode lirc X nls"
8 DESCRIPTION="Digital video jukebox (PVR, DVR)."
9 HOMEPAGE="http://www.freevo.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11 RESTRICT="mirror"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16
17 DEPEND=">=dev-python/pygame-1.5.6
18 >=dev-python/imaging-1.1.3
19 >=dev-python/pyxml-0.8.2
20 >=dev-python/twisted-2
21 >=dev-python/twisted-web-0.5.0-r1
22 >=dev-python/mmpython-0.4.5
23 >=media-video/mplayer-0.92
24 >=media-libs/freetype-2.1.4
25 >=media-libs/libsdl-1.2.5
26 dvd? ( >=media-video/xine-ui-0.9.22 >=media-video/lsdvd-0.10 )
27 encode? ( >=media-sound/cdparanoia-3.9.8 >=media-sound/lame-3.93.1 )
28 matrox? ( >=media-video/matroxset-0.3 )
29 lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )"
30 RDEPEND="${DEPEND}"
31
32 pkg_setup() {
33 if ! built_with_use media-libs/sdl-image png; then
34 eerror "media-libs/sdl-image must be emerged with the 'png' use flag"
35 eerror "Please fix and re-emerge freevo."
36 die "fix use flags"
37 fi
38 }
39
40 src_install() {
41 distutils_src_install
42
43 insinto /etc/freevo
44 doins "${T}/freevo.conf"
45 newins local_conf.py.example local_conf.py
46
47 if [ "${PROFILE_ARCH}" == "xbox" ]; then
48 sed -i -e "s/# MPLAYER_AO_DEV.*/MPLAYER_AO_DEV='alsa1x'/" "${D}"/etc/freevo/local_conf.py
49 newins "${FILESDIR}"/xbox-lircrc lircrc
50 fi
51
52 newinitd "${FILESDIR}/freevo.rc6" freevo
53 newconfd "${FILESDIR}/freevo.conf" freevo
54
55 rm -rf "${D}/usr/share/doc"
56 newdoc Docs/README README.docs
57 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
58 Docs/{CREDITS,NOTES,plugins/*.txt}
59 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
60
61 use nls || rm -rf "${D}"/usr/share/locale
62 }
63
64 pkg_postinst() {
65 elog "If you want to schedule programs, emerge xmltv now."
66 elog
67
68 elog "Please check /etc/freevo/freevo.conf and"
69 elog "/etc/freevo/local_conf.py before starting Freevo."
70 elog "To rebuild freevo.conf with different parameters,"
71 elog "please run:"
72 elog " freevo setup"
73 elog
74
75 if [ -e "${ROOT}/opt/freevo" ] ; then
76 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
77 fi
78 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
79 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
80 fi
81 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
82 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
83 fi
84 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
85 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
86 fi
87
88 local myconf
89 if [ "`/bin/ls -l /etc/localtime | grep -e "Europe\|GMT"`" ] ; then
90 myconf="${myconf} --tv=pal"
91 fi
92 if [ "${PROFILE_ARCH}" == "xbox" ]; then
93 myconf="${myconf} --geometry=640x480 --display=x11"
94 elif use matrox ; then
95 myconf="${myconf} --geometry=768x576 --display=mga"
96 elif use X ; then
97 myconf="${myconf} --geometry=800x600 --display=x11"
98 else
99 myconf="${myconf} --geometry=800x600 --display=fbdev"
100 fi
101
102 "/usr/bin/freevo" setup ${myconf} || die "configure problem"
103 }

  ViewVC Help
Powered by ViewVC 1.1.20