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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (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.7: +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.4.ebuild,v 1.7 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}/${P/_/}.tar.gz"
12 RESTRICT="nomirror"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~x86"
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.3
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}/${P/_/}"
35
36 src_compile() {
37 local myconf
38
39 if [ "`/bin/ls -l /etc/localtime | grep Europe`" ] ; then
40 myconf="${myconf} --tv=pal"
41 fi
42 if use matrox ; then
43 myconf="${myconf} --geometry=768x576 --display=mga"
44 elif use X ; then
45 myconf="${myconf} --geometry=800x600 --display=x11"
46 else
47 myconf="${myconf} --geometry=800x600 --display=fbdev"
48 fi
49
50 sed -e "s:/etc/freevo/freevo.conf:${T}/freevo.conf:" \
51 -i "${S}/src/setup_freevo.py" || die "sed failed"
52
53 "${S}/freevo" setup ${myconf} || die "configure problem"
54
55 sed -e "s:${T}/freevo.conf:/etc/freevo/freevo.conf:" \
56 -i "${S}/src/setup_freevo.py" || die "sed failed"
57 }
58
59 src_install() {
60 distutils_src_install
61
62 insinto /etc/freevo
63 doins "${T}/freevo.conf"
64 newins local_conf.py.example local_conf.py
65
66 exeinto /etc/init.d
67 newexe "${FILESDIR}/freevo.rc6" freevo
68 insinto /etc/conf.d
69 newins "${FILESDIR}/freevo.conf" freevo
70
71 rm -rf "${D}/usr/share/doc"
72 newdoc Docs/README README.docs
73 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
74 Docs/{CREDITS,NOTES,plugins/*.txt}
75 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
76
77 use nls || rm -rf ${D}/usr/share/locale
78 }
79
80 pkg_postinst() {
81 einfo "If you want to schedule programs, emerge xmltv now."
82 echo
83
84 einfo "Please check /etc/freevo/freevo.conf and"
85 einfo "/etc/freevo/local_conf.py before starting Freevo."
86 einfo "To rebuild freevo.conf with different parameters,"
87 einfo "please run:"
88 einfo " freevo setup"
89 echo
90
91 if [ -e "${ROOT}/opt/freevo" ] ; then
92 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
93 fi
94 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
95 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
96 fi
97 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
98 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
99 fi
100 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
101 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
102 fi
103 }

  ViewVC Help
Powered by ViewVC 1.1.20