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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Oct 3 01:21:42 2006 UTC (14 years, 1 month ago) by beandog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove old ebuilds
(Portage version: 2.1.1-r1)

1 # Copyright 1999-2006 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.2.ebuild,v 1.7 2006/05/03 22:32:37 marienz 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 ~amd64"
16
17 DEPEND=">=dev-python/pygame-1.5.6
18 >=dev-python/imaging-1.1.3
19 >=dev-python/pyxml-0.8.2
20 || ( (
21 >=dev-python/twisted-2
22 dev-python/twisted-web
23 )
24 =dev-python/twisted-1*
25 )
26 >=dev-python/mmpython-0.4.5
27 >=media-video/mplayer-0.92
28 >=media-libs/freetype-2.1.4
29 >=media-libs/libsdl-1.2.5
30 >=sys-apps/sed-4
31 dvd? ( >=media-video/xine-ui-0.9.22 >=media-video/lsdvd-0.10 )
32 encode? ( >=media-sound/cdparanoia-3.9.8 >=media-sound/lame-3.93.1 )
33 matrox? ( >=media-video/matroxset-0.3 )
34 lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )"
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
43 if [ "${PROFILE_ARCH}" == "xbox" ]; then
44 sed -i -e "s/# MPLAYER_AO_DEV.*/MPLAYER_AO_DEV='alsa1x'/" ${D}/etc/freevo/local_conf.py
45 newins ${FILESDIR}/xbox-lircrc lircrc
46 fi
47
48 exeinto /etc/init.d
49 newexe "${FILESDIR}/freevo.rc6" freevo
50 insinto /etc/conf.d
51 newins "${FILESDIR}/freevo.conf" freevo
52
53 rm -rf "${D}/usr/share/doc"
54 newdoc Docs/README README.docs
55 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
56 Docs/{CREDITS,NOTES,plugins/*.txt}
57 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
58
59 use nls || rm -rf ${D}/usr/share/locale
60 }
61
62 pkg_postinst() {
63 einfo "If you want to schedule programs, emerge xmltv now."
64 echo
65
66 einfo "Please check /etc/freevo/freevo.conf and"
67 einfo "/etc/freevo/local_conf.py before starting Freevo."
68 einfo "To rebuild freevo.conf with different parameters,"
69 einfo "please run:"
70 einfo " freevo setup"
71 echo
72
73 if [ -e "${ROOT}/opt/freevo" ] ; then
74 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
75 fi
76 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
77 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
78 fi
79 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
80 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
81 fi
82 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
83 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
84 fi
85
86 local myconf
87 if [ "`/bin/ls -l /etc/localtime | grep -e "Europe\|GMT"`" ] ; then
88 myconf="${myconf} --tv=pal"
89 fi
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