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

Contents of /media-tv/freevo/freevo-1.4_rc2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Nov 17 03:32:28 2003 UTC (17 years ago) by max
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove the dosed calls to tweak the startup script. Change the startup script from need to use. Remove xmltv as a dependency. Remove old _rc versions.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-tv/freevo/freevo-1.4_rc2.ebuild,v 1.3 2003/11/16 22:17:01 mholzer Exp $
4
5 inherit distutils
6
7 DESCRIPTION="Digital video jukebox (PVR, DVR)."
8 HOMEPAGE="http://www.freevo.org/"
9 SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
10 RESTRICT="nomirror"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86"
15 IUSE="matrox dvd encode lirc X"
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-1.0.7
21 >=dev-python/mmpython-0.3
22 >=media-video/mplayer-0.92
23 >=media-libs/freetype-2.1.4
24 >=media-libs/libsdl-1.2.5
25 >=media-tv/xmltv-0.5.19
26 >=sys-apps/sed-4
27 dvd? ( >=media-video/xine-ui-0.9.22 )
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_compile() {
36 local myconf
37
38 if [ "`/bin/ls -l /etc/localtime | grep Europe`" ] ; then
39 myconf="$myconf --tv=pal"
40 fi
41 if [ "`use matrox`" ] ; then
42 myconf="--geometry=768x576 --display=mga"
43 elif [ "`use X`" ] ; then
44 myconf="--geometry=800x600 --display=x11"
45 else
46 myconf="--geometry=800x600 --display=fbdev"
47 fi
48
49 sed -e "s:/etc/freevo/freevo.conf:${T}/freevo.conf:" \
50 -i "${S}/src/setup_freevo.py" || die "sed failed"
51
52 "${S}/freevo" setup ${myconf} || die "configure problem"
53
54 sed -e "s:${T}/freevo.conf:/etc/freevo/freevo.conf:" \
55 -i "${S}/src/setup_freevo.py" || die "sed failed"
56 }
57
58 src_install() {
59 distutils_src_install
60
61 insinto /etc/freevo
62 doins "${T}/freevo.conf"
63 newins local_conf.py.example local_conf.py
64
65 exeinto /etc/init.d
66 newexe "${FILESDIR}/freevo.rc6" freevo
67 insinto /etc/conf.d
68 newins "${FILESDIR}/freevo.conf" freevo
69
70 if [ ! "`use lirc`" ] ; then
71 dosed '/need lirc/d' /etc/init.d/freevo
72 fi
73 if [ ! "`use X`" ] ; then
74 dosed '/need xfs/d' /etc/init.d/freevo
75 fi
76
77 rm -rf "${D}/usr/share/doc"
78 newdoc Docs/README README.docs
79 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
80 Docs/{CREDITS,NOTES,plugins/*.txt}
81 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
82 }
83
84 pkg_postinst() {
85 einfo "Please check /etc/freevo/freevo.conf and"
86 einfo "/etc/freevo/local_conf.py before starting Freevo."
87 einfo "To rebuild freevo.conf with different parameters,"
88 einfo "please run:"
89 einfo " freevo setup"
90 echo
91
92 if [ -e "/opt/freevo" ] ; then
93 ewarn "Please remove /opt/freevo because it is no longer used."
94 fi
95 if [ -e "/etc/freevo/freevo_config.py" ] ; then
96 ewarn "Please remove /etc/freevo/freevo_config.py."
97 fi
98 if [ -e "/etc/init.d/freevo-record" ] ; then
99 ewarn "Please remove /etc/init.d/freevo-record"
100 fi
101 if [ -e "/etc/init.d/freevo-web" ] ; then
102 ewarn "Please remove /etc/init.d/freevo-web"
103 fi
104 }

  ViewVC Help
Powered by ViewVC 1.1.20