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

Contents of /media-tv/freevo/freevo-1.5.0_rc4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Aug 18 22:21:05 2004 UTC (16 years, 3 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump, thanks to: Benjamin Schleinzer <thor@4players.de> in bug #58397

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

  ViewVC Help
Powered by ViewVC 1.1.20