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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Feb 26 19:14:38 2010 UTC (10 years, 9 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Delete older ebuild.

1 # Copyright 1999-2009 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.8.2.ebuild,v 1.4 2009/03/08 14:16:36 betelgeuse Exp $
4
5 EAPI="2"
6
7 inherit distutils eutils
8
9 DESCRIPTION="Digital video jukebox (PVR, DVR)."
10 HOMEPAGE="http://www.freevo.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 IUSE="directfb cdparanoia doc dvd encode fbcon flac gphoto2 jpeg lame lirc matrox mixer nls snes sqlite tv tvtime vorbis xine xmame X"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18
19 # TODO: We could also use dev-libs/libxml2 when
20 # built with USE=python alternatively to pyxml
21 RDEPEND="dev-python/pygame
22 dev-python/pyxml
23 dev-python/elementtree
24 dev-python/imaging
25 dev-python/beautifulsoup
26 >=dev-python/twisted-2.5
27 >=dev-python/twisted-web-0.6
28
29 >=dev-python/kaa-base-0.4.0
30 >=dev-python/kaa-metadata-0.7.3
31 >=dev-python/kaa-imlib2-0.2.3
32
33 media-video/mplayer[directfb?,fbcon?]
34 >=media-libs/libsdl-1.2.5[directfb?,fbcon?]
35 media-libs/sdl-image[jpeg,png]
36
37 cdparanoia? ( media-sound/cdparanoia )
38 dvd? (
39 >=media-video/lsdvd-0.10
40 directfb? ( media-libs/xine-lib[directfb] )
41 fbcon? ( media-libs/xine-lib[fbcon] )
42 encode? ( media-video/dvdbackup )
43 )
44 flac? ( media-libs/flac )
45 gphoto2? ( media-libs/libgphoto2 )
46 jpeg? ( media-libs/jpeg )
47 lame? ( media-sound/lame )
48 lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )
49 matrox? ( >=media-video/matroxset-0.3 )
50 mixer? ( media-sound/aumix )
51 snes? ( || ( games-emulation/zsnes games-emulation/snes9x ) )
52 sqlite? ( ~dev-python/pysqlite-1.0.1 )
53 tv? ( media-tv/xmltv
54 tvtime? ( media-tv/tvtime ) )
55 xine? ( media-video/xine-ui )
56 vorbis? ( media-sound/vorbis-tools )
57 xmame? ( games-emulation/xmame )"
58
59 pkg_setup() {
60 if ! { use X || use directfb || use fbcon || use matrox ; } ; then
61 echo
62 ewarn "WARNING - no video support specified in USE flags."
63 ewarn "Please be sure that media-libs/libsdl supports whatever video"
64 ewarn "support (X11, fbcon, directfb, etc) you plan on using."
65 echo
66 fi
67 }
68
69 src_unpack() {
70 distutils_src_unpack
71 epatch "${FILESDIR}"/${P}-mplayerargs.patch
72 }
73
74 src_install() {
75 distutils_src_install
76
77 insinto /etc/freevo
78 newins local_conf.py.example local_conf.py
79
80 if [ "${PROFILE_ARCH}" == "xbox" ]; then
81 sed -i -e "s/# MPLAYER_AO_DEV.*/MPLAYER_AO_DEV='alsa1x'/" "${D}"/etc/freevo/local_conf.py
82 newins "${FILESDIR}"/xbox-lircrc lircrc
83 fi
84
85 if use X; then
86 echo "#!/bin/bash" > freevo
87 echo "/usr/bin/freevoboot startx" >> freevo
88 exeinto /etc/X11/Sessions/
89 doexe freevo
90
91 #insinto /etc/X11/dm/Sessions
92 #doins "${FILESDIR}/freevo.desktop"
93
94 insinto /usr/share/xsessions
95 doins "${FILESDIR}/freevo.desktop"
96 fi
97
98 exeinto /usr/bin
99 newexe "${FILESDIR}"/${P}.boot freevoboot
100 newconfd "${FILESDIR}/freevo.conf" freevo
101
102 rm -rf "${D}/usr/share/doc"
103
104 dodoc ChangeLog FAQ RELEASE_NOTES README TODO \
105 Docs/{CREDITS,NOTES,*.txt,plugins/*.txt}
106 use doc &&
107 cp -r Docs/{installation,html,plugin_writing} "${D}/usr/share/doc/${PF}"
108
109 use nls || rm -rf "${D}"/usr/share/locale
110
111 # Create a default freevo setup
112 cd "${S}/src"
113 if [ "${PROFILE_ARCH}" == "xbox" ]; then
114 myconf="${myconf} --geometry=640x480 --display=x11"
115 elif use matrox && use directfb; then
116 myconf="${myconf} --geometry=768x576 --display=dfbmga"
117 elif use matrox ; then
118 myconf="${myconf} --geometry=768x576 --display=mga"
119 elif use directfb; then
120 myconf="${myconf} --geometry=768x576 --display=directfb"
121 elif use X ; then
122 myconf="${myconf} --geometry=800x600 --display=x11"
123 else
124 myconf="${myconf} --geometry=800x600 --display=fbdev"
125 fi
126 sed -i "s:/etc/freevo/freevo.conf:${D}/etc/freevo/freevo.conf:g" setup_freevo.py || die "Could not fix setup_freevo.py"
127 python setup_freevo.py ${myconf} || die "Could not create new freevo.conf"
128 }
129
130 pkg_postinst() {
131 echo
132 einfo "Please check /etc/freevo/freevo.conf and"
133 einfo "/etc/freevo/local_conf.py before starting Freevo."
134 einfo "To rebuild freevo.conf with different parameters,"
135 einfo "please run:"
136 einfo " # freevo setup"
137
138 ewarn "To update from existing installations, please run"
139 ewarn " # freevo convert_config /etc/freevo/local_conf.py -w"
140 ewarn "If you are using the recordserver, be sure to"
141 ewarn "read the RELEASE_NOTES in /usr/share/doc/${P}"
142
143 echo
144 einfo "To build a freevo-only system, please use the freevoboot"
145 einfo "wrapper to be run it as a user. It can be configured in /etc/conf.d/freevo"
146
147 if use X ; then
148 echo
149 ewarn "If you're using a Freevo-only system with X, you'll need"
150 ewarn "to setup the autologin (as user) and choose freevo as"
151 ewarn "default session. If you need to run recordserver/webserver"
152 ewarn "at boot, please use /etc/conf.d/freevo"
153 echo
154 ewarn "Should you decide to personalize your freevo.desktop"
155 ewarn "session, keep the definition for '/usr/bin/freevoboot startx'"
156 else
157 echo
158 ewarn "If you want Freevo to start automatically,you'll need"
159 ewarn "to follow instructions at :"
160 ewarn "http://freevo.sourceforge.net/cgi-bin/doc/BootFreevo"
161 echo
162 ewarn "*NOTE: you can use mingetty or provide a login"
163 ewarn "program for getty to autologin as a user with limited privileges."
164 ewarn "A tutorial for getty is at:"
165 ewarn "http://ubuntuforums.org/showthread.php?t=152274"
166 fi
167
168 if [ -e "${ROOT}/etc/init.d/freevo" ] ; then
169 echo
170 ewarn "Please remove /etc/init.d/freevo as it is a security"
171 ewarn "threat. To set autostart read above."
172 fi
173
174 if [ -e "${ROOT}/opt/freevo" ] ; then
175 echo
176 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
177 fi
178 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
179 echo
180 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
181 fi
182 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
183 echo
184 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
185 fi
186 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
187 echo
188 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
189 fi
190 }

  ViewVC Help
Powered by ViewVC 1.1.20