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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 25 15:39:53 2008 UTC (12 years, 1 month ago) by rbu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
  Version bump (bug #217542), a lot of upstream changes, cleanup old stuff.
  Downstream changes:
   * USE flag restructuring, add xine use flag (bug #226181 by alpiturchi)
   * Change freevoboot script so it works with slim (patch by Kai Dietrich)
(Portage version: 2.2_rc12/cvs/Linux 2.6.27.2 x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20