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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 31 17:01:30 2004 UTC (16 years, 1 month ago) by iggy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
a little cleanup, and mark 1.5.1 x86

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.ebuild,v 1.2 2004/08/19 09:56:42 mr_bones_ 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="nomirror"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86"
16
17 DEPEND="${DEPEND}
18 >=dev-python/pygame-1.5.6
19 >=dev-python/imaging-1.1.3
20 >=dev-python/pyxml-0.8.2
21 >=dev-python/twisted-1.0.7
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 >=sys-apps/sed-4
27 dvd? ( >=media-video/xine-ui-0.9.22 >=media-video/lsdvd-0.10 )
28 encode? ( >=media-sound/cdparanoia-3.9.8 >=media-sound/lame-3.93.1 )
29 matrox? ( >=media-video/matroxset-0.3 )
30 lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )
31 X? ( virtual/x11 )"
32
33 S="${WORKDIR}/${P}"
34
35 src_install() {
36 distutils_src_install
37
38 insinto /etc/freevo
39 doins "${T}/freevo.conf"
40 newins local_conf.py.example local_conf.py
41
42 exeinto /etc/init.d
43 newexe "${FILESDIR}/freevo.rc6" freevo
44 insinto /etc/conf.d
45 newins "${FILESDIR}/freevo.conf" freevo
46
47 rm -rf "${D}/usr/share/doc"
48 newdoc Docs/README README.docs
49 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
50 Docs/{CREDITS,NOTES,plugins/*.txt}
51 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
52
53 use nls || rm -rf ${D}/usr/share/locale
54 }
55
56 pkg_postinst() {
57 einfo "If you want to schedule programs, emerge xmltv now."
58 echo
59
60 einfo "Please check /etc/freevo/freevo.conf and"
61 einfo "/etc/freevo/local_conf.py before starting Freevo."
62 einfo "To rebuild freevo.conf with different parameters,"
63 einfo "please run:"
64 einfo " freevo setup"
65 echo
66
67 if [ -e "${ROOT}/opt/freevo" ] ; then
68 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
69 fi
70 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
71 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
72 fi
73 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
74 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
75 fi
76 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
77 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
78 fi
79
80 local myconf
81 if [ "`/bin/ls -l /etc/localtime | grep Europe`" ] ; then
82 myconf="${myconf} --tv=pal"
83 fi
84 if use matrox ; then
85 myconf="${myconf} --geometry=768x576 --display=mga"
86 elif use X ; then
87 myconf="${myconf} --geometry=800x600 --display=x11"
88 else
89 myconf="${myconf} --geometry=800x600 --display=fbdev"
90 fi
91
92 "/usr/bin/freevo" setup ${myconf} || die "configure problem"
93 }

  ViewVC Help
Powered by ViewVC 1.1.20