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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Fri Mar 20 07:53:08 2015 UTC (5 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Fix desktop file

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

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

  ViewVC Help
Powered by ViewVC 1.1.20