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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jun 18 02:29:37 2015 UTC (5 years, 5 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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-r1.ebuild,v 1.6 2015/03/21 18:45:40 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8 PYTHON_REQ_USE="xml"
9 DISTUTILS_SINGLE_IMPL=1
10
11 inherit eutils distutils-r1
12
13 DESCRIPTION="Digital video jukebox (PVR, DVR)"
14 HOMEPAGE="http://www.freevo.org/"
15 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ppc ~x86"
20 IUSE="cdparanoia doc dvd encode fbcon flac gphoto2 jpeg lame lirc matrox mixer nls tv vorbis xine X"
21
22 RDEPEND="
23 dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
24 virtual/python-imaging[${PYTHON_USEDEP}]
25 dev-python/pygame[${PYTHON_USEDEP}]
26 >=dev-python/twisted-core-2.5[${PYTHON_USEDEP}]
27 >=dev-python/twisted-web-0.6[${PYTHON_USEDEP}]
28 dev-python/zope-interface[${PYTHON_USEDEP}]
29
30 >=dev-python/kaa-base-0.6.0[${PYTHON_USEDEP}]
31 >=dev-python/kaa-metadata-0.7.3[${PYTHON_USEDEP}]
32 >=dev-python/kaa-imlib2-0.2.3[${PYTHON_USEDEP}]
33 dev-python/kaa-display[${PYTHON_USEDEP}]
34
35 media-video/mplayer[fbcon?]
36 >=media-libs/libsdl-1.2.5[fbcon?]
37 media-libs/sdl-image[jpeg,png]
38 x11-apps/xset
39
40 cdparanoia? ( media-sound/cdparanoia )
41 dvd? (
42 >=media-video/lsdvd-0.10
43 fbcon? ( media-libs/xine-lib[fbcon] )
44 encode? ( media-video/dvdbackup )
45 )
46 flac? ( media-libs/flac )
47 gphoto2? ( media-libs/libgphoto2 )
48 jpeg? ( virtual/jpeg )
49 lame? ( media-sound/lame )
50 lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )
51 matrox? ( >=media-video/matroxset-0.3 )
52 mixer? ( media-sound/aumix )
53 tv? ( media-tv/xmltv )
54 xine? ( media-video/xine-ui )
55 vorbis? ( media-sound/vorbis-tools )"
56
57 PATCHES=( "${FILESDIR}"/${P}-{PIL,distutils-r1}.patch )
58
59 pkg_setup() {
60 if ! { use X || 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, etc.) you plan on using."
65 echo
66 fi
67
68 python-single-r1_pkg_setup
69 }
70
71 src_prepare() {
72 distutils-r1_src_prepare
73
74 sed -i \
75 -e "s/@EPYTHON@/${EPYTHON}/" \
76 freevo || die
77 }
78
79 src_install() {
80 distutils-r1_src_install
81
82 insinto /etc/freevo
83 newins local_conf.py.example local_conf.py
84
85 if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
86 sed -i \
87 -e "s/# MPLAYER_AO_DEV.*/MPLAYER_AO_DEV='alsa1x'/" \
88 "${D}"/etc/freevo/local_conf.py || die
89 newins "${FILESDIR}"/xbox-lircrc lircrc
90 fi
91
92 if use X; then
93 echo "#!/bin/bash" > freevo
94 echo "/usr/bin/freevoboot startx" >> freevo
95 exeinto /etc/X11/Sessions/
96 doexe freevo
97
98 #insinto /etc/X11/dm/Sessions
99 #doins "${FILESDIR}/freevo.desktop"
100
101 insinto /usr/share/xsessions
102 doins "${FILESDIR}/freevo.desktop"
103 fi
104
105 newbin "${FILESDIR}"/${PN}-1.8.2.boot freevoboot
106 newconfd "${FILESDIR}/freevo.conf" freevo
107
108 rm -rf "${D}/usr/share/doc" || die
109
110 dodoc ChangeLog FAQ RELEASE_NOTES README TODO \
111 Docs/{CREDITS,NOTES,*.txt,plugins/*.txt}
112 use doc &&
113 cp -r Docs/{installation,html,plugin_writing} "${D}/usr/share/doc/${PF}"
114
115 use nls || rm -rf "${D}"/usr/share/locale
116
117 # Create a default freevo setup
118 cd "${S}/src" || die
119 if [ "${PROFILE_ARCH}" == "xbox" ]; then
120 myconf="${myconf} --geometry=640x480 --display=x11"
121 elif use matrox ; then
122 myconf="${myconf} --geometry=768x576 --display=mga"
123 elif use X ; then
124 myconf="${myconf} --geometry=800x600 --display=x11"
125 else
126 myconf="${myconf} --geometry=800x600 --display=fbdev"
127 fi
128 sed -i \
129 "s:/etc/freevo/freevo.conf:${D}/etc/freevo/freevo.conf:g" \
130 setup_freevo.py || die "Could not fix setup_freevo.py"
131 "${EPYTHON}" 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 ewarn "To update from existing installations, please run"
143 ewarn " # freevo convert_config /etc/freevo/local_conf.py -w"
144 ewarn "If you are using the recordserver, be sure to"
145 ewarn "read the RELEASE_NOTES in /usr/share/doc/${P}"
146
147 echo
148 einfo "To build a freevo-only system, please use the freevoboot"
149 einfo "wrapper to be run it as a user. It can be configured in /etc/conf.d/freevo"
150
151 if use X ; then
152 echo
153 ewarn "If you're using a Freevo-only system with X, you'll need"
154 ewarn "to setup the autologin (as user) and choose freevo as"
155 ewarn "default session. If you need to run recordserver/webserver"
156 ewarn "at boot, please use /etc/conf.d/freevo"
157 echo
158 ewarn "Should you decide to personalize your freevo.desktop"
159 ewarn "session, keep the definition for '/usr/bin/freevoboot startx'"
160 else
161 echo
162 ewarn "If you want Freevo to start automatically,you'll need"
163 ewarn "to follow instructions at :"
164 ewarn "http://doc.freevo.org/BootFreevo"
165 echo
166 ewarn "*NOTE: you can use mingetty or provide a login"
167 ewarn "program for getty to autologin as a user with limited privileges."
168 ewarn "A tutorial for getty is at:"
169 ewarn "http://ubuntuforums.org/showthread.php?t=152274"
170 fi
171
172 if [ -e "${ROOT}/etc/init.d/freevo" ] ; then
173 echo
174 ewarn "Please remove /etc/init.d/freevo as it is a security"
175 ewarn "threat. To set autostart read above."
176 fi
177
178 if [ -e "${ROOT}/opt/freevo" ] ; then
179 echo
180 ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
181 fi
182 if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
183 echo
184 ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
185 fi
186 if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
187 echo
188 ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
189 fi
190 if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
191 echo
192 ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
193 fi
194 }

  ViewVC Help
Powered by ViewVC 1.1.20