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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (show annotations) (download)
Thu Jun 18 02:29:37 2015 UTC (5 years, 3 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +6 -11 lines
Drop directfb useflag as dependencies for it are unsatisfiable #545246

(Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 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.9.0.ebuild,v 1.21 2015/03/21 18:45:40 jlec Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2:2.5"
7 PYTHON_USE_WITH="xml"
8
9 inherit distutils eutils
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 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86"
18 IUSE="cdparanoia doc dvd encode fbcon flac gphoto2 jpeg lame lirc matrox mixer nls tv vorbis xine X"
19
20 RDEPEND="dev-python/beautifulsoup:python-2
21 virtual/python-imaging
22 dev-python/pygame
23 >=dev-python/twisted-core-2.5
24 >=dev-python/twisted-web-0.6
25 dev-python/zope-interface
26
27 >=dev-python/kaa-base-0.6.0
28 >=dev-python/kaa-metadata-0.7.3
29 >=dev-python/kaa-imlib2-0.2.3
30 dev-python/kaa-display
31
32 media-video/mplayer[fbcon?]
33 >=media-libs/libsdl-1.2.5[fbcon?]
34 media-libs/sdl-image[jpeg,png]
35 x11-apps/xset
36
37 cdparanoia? ( media-sound/cdparanoia )
38 dvd? (
39 >=media-video/lsdvd-0.10
40 fbcon? ( media-libs/xine-lib[fbcon] )
41 encode? ( media-video/dvdbackup )
42 )
43 flac? ( media-libs/flac )
44 gphoto2? ( media-libs/libgphoto2 )
45 jpeg? ( virtual/jpeg )
46 lame? ( media-sound/lame )
47 lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )
48 matrox? ( >=media-video/matroxset-0.3 )
49 mixer? ( media-sound/aumix )
50 tv? ( media-tv/xmltv )
51 xine? ( media-video/xine-ui )
52 vorbis? ( media-sound/vorbis-tools )"
53
54 pkg_setup() {
55 if ! { use X || use fbcon || use matrox ; } ; then
56 echo
57 ewarn "WARNING - no video support specified in USE flags."
58 ewarn "Please be sure that media-libs/libsdl supports whatever video"
59 ewarn "support (X11, fbcon, etc.) you plan on using."
60 echo
61 fi
62
63 python_set_active_version 2
64 python_pkg_setup
65 }
66
67 src_prepare() {
68 epatch "${FILESDIR}"/${P}-PIL.patch
69
70 distutils_src_prepare
71 python_convert_shebangs -r 2 .
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 newbin "${FILESDIR}"/${PN}-1.8.2.boot freevoboot
99 newconfd "${FILESDIR}/freevo.conf" freevo
100
101 rm -rf "${D}/usr/share/doc"
102
103 dodoc ChangeLog FAQ RELEASE_NOTES README TODO \
104 Docs/{CREDITS,NOTES,*.txt,plugins/*.txt}
105 use doc &&
106 cp -r Docs/{installation,html,plugin_writing} "${D}/usr/share/doc/${PF}"
107
108 use nls || rm -rf "${D}"/usr/share/locale
109
110 # Create a default freevo setup
111 cd "${S}/src"
112 if [ "${PROFILE_ARCH}" == "xbox" ]; then
113 myconf="${myconf} --geometry=640x480 --display=x11"
114 elif use matrox ; then
115 myconf="${myconf} --geometry=768x576 --display=mga"
116 elif use X ; then
117 myconf="${myconf} --geometry=800x600 --display=x11"
118 else
119 myconf="${myconf} --geometry=800x600 --display=fbdev"
120 fi
121 sed -i "s:/etc/freevo/freevo.conf:${D}/etc/freevo/freevo.conf:g" setup_freevo.py || die "Could not fix setup_freevo.py"
122 "$(PYTHON)" setup_freevo.py ${myconf} || die "Could not create new freevo.conf"
123 }
124
125 pkg_postinst() {
126 distutils_pkg_postinst
127
128 echo
129 einfo "Please check /etc/freevo/freevo.conf and"
130 einfo "/etc/freevo/local_conf.py before starting Freevo."
131 einfo "To rebuild freevo.conf with different parameters,"
132 einfo "please run:"
133 einfo " # freevo setup"
134
135 ewarn "To update from existing installations, please run"
136 ewarn " # freevo convert_config /etc/freevo/local_conf.py -w"
137 ewarn "If you are using the recordserver, be sure to"
138 ewarn "read the RELEASE_NOTES in /usr/share/doc/${P}"
139
140 echo
141 einfo "To build a freevo-only system, please use the freevoboot"
142 einfo "wrapper to be run it as a user. It can be configured in /etc/conf.d/freevo"
143
144 if use X ; then
145 echo
146 ewarn "If you're using a Freevo-only system with X, you'll need"
147 ewarn "to setup the autologin (as user) and choose freevo as"
148 ewarn "default session. If you need to run recordserver/webserver"
149 ewarn "at boot, please use /etc/conf.d/freevo"
150 echo
151 ewarn "Should you decide to personalize your freevo.desktop"
152 ewarn "session, keep the definition for '/usr/bin/freevoboot startx'"
153 else
154 echo
155 ewarn "If you want Freevo to start automatically,you'll need"
156 ewarn "to follow instructions at :"
157 ewarn "http://doc.freevo.org/BootFreevo"
158 echo
159 ewarn "*NOTE: you can use mingetty or provide a login"
160 ewarn "program for getty to autologin as a user with limited privileges."
161 ewarn "A tutorial for getty is at:"
162 ewarn "http://ubuntuforums.org/showthread.php?t=152274"
163 fi
164
165 if [ -e "${ROOT}/etc/init.d/freevo" ] ; then
166 echo
167 ewarn "Please remove /etc/init.d/freevo as it is a security"
168 ewarn "threat. To set autostart read above."
169 fi
170
171 if [ -e "${ROOT}/opt/freevo" ] ; then
172 echo
173 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
174 fi
175 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
176 echo
177 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
178 fi
179 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
180 echo
181 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
182 fi
183 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
184 echo
185 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
186 fi
187 }

  ViewVC Help
Powered by ViewVC 1.1.20