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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Dec 3 08:10:30 2003 UTC (16 years, 11 months ago) by max
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Bump to version 1.4. Fix myconf clobbering. Remove last _rc4 version.

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_rc4.ebuild,v 1.4 2003/11/17 03:40:42 max 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="${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.3
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 )
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 rm -rf "${D}/usr/share/doc"
71 newdoc Docs/README README.docs
72 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
73 Docs/{CREDITS,NOTES,plugins/*.txt}
74 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
75 }
76
77 pkg_postinst() {
78 einfo "If you want to schedule programs, emerge xmltv now."
79 echo
80
81 einfo "Please check /etc/freevo/freevo.conf and"
82 einfo "/etc/freevo/local_conf.py before starting Freevo."
83 einfo "To rebuild freevo.conf with different parameters,"
84 einfo "please run:"
85 einfo " freevo setup"
86 echo
87
88 if [ -e "/opt/freevo" ] ; then
89 ewarn "Please remove /opt/freevo because it is no longer used."
90 fi
91 if [ -e "/etc/freevo/freevo_config.py" ] ; then
92 ewarn "Please remove /etc/freevo/freevo_config.py."
93 fi
94 if [ -e "/etc/init.d/freevo-record" ] ; then
95 ewarn "Please remove /etc/init.d/freevo-record"
96 fi
97 if [ -e "/etc/init.d/freevo-web" ] ; then
98 ewarn "Please remove /etc/init.d/freevo-web"
99 fi
100 }

  ViewVC Help
Powered by ViewVC 1.1.20