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

Contents of /media-tv/freevo/freevo-1.5.0-r1.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 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-r1.ebuild,v 1.2 2004/09/11 15:15:21 aliz 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="${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 if [ "${PROFILE_ARCH}" == "xbox" ]; then
43 sed -i -e "s/# MPLAYER_AO_DEV.*/MPLAYER_AO_DEV='alsa1x'/" ${D}/etc/freevo/local_conf.py
44 newins ${FILESDIR}/xbox-lircrc lircrc
45 fi
46
47 exeinto /etc/init.d
48 newexe "${FILESDIR}/freevo.rc6" freevo
49 insinto /etc/conf.d
50 newins "${FILESDIR}/freevo.conf" freevo
51
52 rm -rf "${D}/usr/share/doc"
53 newdoc Docs/README README.docs
54 dodoc BUGS COPYING ChangeLog FAQ INSTALL PKG-INFO README TODO \
55 Docs/{CREDITS,NOTES,plugins/*.txt}
56 cp -r Docs/{installation,plugin_writing} "${D}/usr/share/doc/${PF}"
57
58 use nls || rm -rf ${D}/usr/share/locale
59 }
60
61 pkg_postinst() {
62 einfo "If you want to schedule programs, emerge xmltv now."
63 echo
64
65 einfo "Please check /etc/freevo/freevo.conf and"
66 einfo "/etc/freevo/local_conf.py before starting Freevo."
67 einfo "To rebuild freevo.conf with different parameters,"
68 einfo "please run:"
69 einfo " freevo setup"
70 echo
71
72 if [ -e "${ROOT}/opt/freevo" ] ; then
73 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
74 fi
75 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
76 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
77 fi
78 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
79 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
80 fi
81 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
82 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
83 fi
84
85 local myconf
86 if [ "`/bin/ls -l /etc/localtime | grep -e "Europe\|GMT"`" ] ; then
87 myconf="${myconf} --tv=pal"
88 fi
89 if [ "${PROFILE_ARCH}" == "xbox" ]; then
90 myconf="${myconf} --geometry=640x480 --display=x11"
91 elif use matrox ; then
92 myconf="${myconf} --geometry=768x576 --display=mga"
93 elif use X ; then
94 myconf="${myconf} --geometry=800x600 --display=x11"
95 else
96 myconf="${myconf} --geometry=800x600 --display=fbdev"
97 fi
98
99 "/usr/bin/freevo" setup ${myconf} || die "configure problem"
100 }

  ViewVC Help
Powered by ViewVC 1.1.20