Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/freevo/
Date: Wed, 06 Jul 2016 10:21:05
Message-Id: 1467800441.80dae2b15e48735a15c5e8e81737221a44a3fe75.kensington@gentoo
1 commit: 80dae2b15e48735a15c5e8e81737221a44a3fe75
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 10:20:35 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 6 10:20:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80dae2b1
7
8 media-tv/freevo: remove old
9
10 Package-Manager: portage-2.3.0
11
12 media-tv/freevo/freevo-1.9.0.ebuild | 187 ------------------------------------
13 1 file changed, 187 deletions(-)
14
15 diff --git a/media-tv/freevo/freevo-1.9.0.ebuild b/media-tv/freevo/freevo-1.9.0.ebuild
16 deleted file mode 100644
17 index 2f86be8..0000000
18 --- a/media-tv/freevo/freevo-1.9.0.ebuild
19 +++ /dev/null
20 @@ -1,187 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI="3"
26 -PYTHON_DEPEND="2:2.5"
27 -PYTHON_USE_WITH="xml"
28 -
29 -inherit distutils eutils
30 -
31 -DESCRIPTION="Digital video jukebox (PVR, DVR)"
32 -HOMEPAGE="http://www.freevo.org/"
33 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
34 -
35 -LICENSE="GPL-2"
36 -SLOT="0"
37 -KEYWORDS="amd64 ppc x86"
38 -IUSE="cdparanoia doc dvd encode fbcon flac gphoto2 jpeg lame lirc matrox mixer nls tv vorbis xine X"
39 -
40 -RDEPEND="dev-python/beautifulsoup:python-2
41 - dev-python/pillow
42 - dev-python/pygame
43 - >=dev-python/twisted-core-2.5
44 - >=dev-python/twisted-web-0.6
45 - dev-python/zope-interface
46 -
47 - >=dev-python/kaa-base-0.6.0
48 - >=dev-python/kaa-metadata-0.7.3
49 - >=dev-python/kaa-imlib2-0.2.3
50 - dev-python/kaa-display
51 -
52 - media-video/mplayer[fbcon?]
53 - >=media-libs/libsdl-1.2.5[fbcon?]
54 - media-libs/sdl-image[jpeg,png]
55 - x11-apps/xset
56 -
57 - cdparanoia? ( media-sound/cdparanoia )
58 - dvd? (
59 - >=media-video/lsdvd-0.10
60 - fbcon? ( media-libs/xine-lib[fbcon] )
61 - encode? ( media-video/dvdbackup )
62 - )
63 - flac? ( media-libs/flac )
64 - gphoto2? ( media-libs/libgphoto2 )
65 - jpeg? ( virtual/jpeg )
66 - lame? ( media-sound/lame )
67 - lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )
68 - matrox? ( >=media-video/matroxset-0.3 )
69 - mixer? ( media-sound/aumix )
70 - tv? ( media-tv/xmltv )
71 - xine? ( media-video/xine-ui )
72 - vorbis? ( media-sound/vorbis-tools )"
73 -
74 -pkg_setup() {
75 - if ! { use X || use fbcon || use matrox ; } ; then
76 - echo
77 - ewarn "WARNING - no video support specified in USE flags."
78 - ewarn "Please be sure that media-libs/libsdl supports whatever video"
79 - ewarn "support (X11, fbcon, etc.) you plan on using."
80 - echo
81 - fi
82 -
83 - python_set_active_version 2
84 - python_pkg_setup
85 -}
86 -
87 -src_prepare() {
88 - epatch "${FILESDIR}"/${P}-PIL.patch
89 -
90 - distutils_src_prepare
91 - python_convert_shebangs -r 2 .
92 -}
93 -
94 -src_install() {
95 - distutils_src_install
96 -
97 - insinto /etc/freevo
98 - newins local_conf.py.example local_conf.py
99 -
100 - if [ "${PROFILE_ARCH}" == "xbox" ]; then
101 - sed -i -e "s/# MPLAYER_AO_DEV.*/MPLAYER_AO_DEV='alsa1x'/" "${D}"/etc/freevo/local_conf.py
102 - newins "${FILESDIR}"/xbox-lircrc lircrc
103 - fi
104 -
105 - if use X; then
106 - echo "#!/bin/bash" > freevo
107 - echo "/usr/bin/freevoboot startx" >> freevo
108 - exeinto /etc/X11/Sessions/
109 - doexe freevo
110 -
111 - #insinto /etc/X11/dm/Sessions
112 - #doins "${FILESDIR}/freevo.desktop"
113 -
114 - insinto /usr/share/xsessions
115 - doins "${FILESDIR}/freevo.desktop"
116 - fi
117 -
118 - newbin "${FILESDIR}"/${PN}-1.8.2.boot freevoboot
119 - newconfd "${FILESDIR}/freevo.conf" freevo
120 -
121 - rm -rf "${D}/usr/share/doc"
122 -
123 - dodoc ChangeLog FAQ RELEASE_NOTES README TODO \
124 - Docs/{CREDITS,NOTES,*.txt,plugins/*.txt}
125 - use doc &&
126 - cp -r Docs/{installation,html,plugin_writing} "${D}/usr/share/doc/${PF}"
127 -
128 - use nls || rm -rf "${D}"/usr/share/locale
129 -
130 - # Create a default freevo setup
131 - cd "${S}/src"
132 - if [ "${PROFILE_ARCH}" == "xbox" ]; then
133 - myconf="${myconf} --geometry=640x480 --display=x11"
134 - elif use matrox ; then
135 - myconf="${myconf} --geometry=768x576 --display=mga"
136 - elif use X ; then
137 - myconf="${myconf} --geometry=800x600 --display=x11"
138 - else
139 - myconf="${myconf} --geometry=800x600 --display=fbdev"
140 - fi
141 - sed -i "s:/etc/freevo/freevo.conf:${D}/etc/freevo/freevo.conf:g" setup_freevo.py || die "Could not fix setup_freevo.py"
142 - "$(PYTHON)" setup_freevo.py ${myconf} || die "Could not create new freevo.conf"
143 -}
144 -
145 -pkg_postinst() {
146 - distutils_pkg_postinst
147 -
148 - echo
149 - einfo "Please check /etc/freevo/freevo.conf and"
150 - einfo "/etc/freevo/local_conf.py before starting Freevo."
151 - einfo "To rebuild freevo.conf with different parameters,"
152 - einfo "please run:"
153 - einfo " # freevo setup"
154 -
155 - ewarn "To update from existing installations, please run"
156 - ewarn " # freevo convert_config /etc/freevo/local_conf.py -w"
157 - ewarn "If you are using the recordserver, be sure to"
158 - ewarn "read the RELEASE_NOTES in /usr/share/doc/${P}"
159 -
160 - echo
161 - einfo "To build a freevo-only system, please use the freevoboot"
162 - einfo "wrapper to be run it as a user. It can be configured in /etc/conf.d/freevo"
163 -
164 - if use X ; then
165 - echo
166 - ewarn "If you're using a Freevo-only system with X, you'll need"
167 - ewarn "to setup the autologin (as user) and choose freevo as"
168 - ewarn "default session. If you need to run recordserver/webserver"
169 - ewarn "at boot, please use /etc/conf.d/freevo"
170 - echo
171 - ewarn "Should you decide to personalize your freevo.desktop"
172 - ewarn "session, keep the definition for '/usr/bin/freevoboot startx'"
173 - else
174 - echo
175 - ewarn "If you want Freevo to start automatically,you'll need"
176 - ewarn "to follow instructions at :"
177 - ewarn "http://doc.freevo.org/BootFreevo"
178 - echo
179 - ewarn "*NOTE: you can use mingetty or provide a login"
180 - ewarn "program for getty to autologin as a user with limited privileges."
181 - ewarn "A tutorial for getty is at:"
182 - ewarn "http://ubuntuforums.org/showthread.php?t=152274"
183 - fi
184 -
185 - if [ -e "${ROOT}/etc/init.d/freevo" ] ; then
186 - echo
187 - ewarn "Please remove /etc/init.d/freevo as it is a security"
188 - ewarn "threat. To set autostart read above."
189 - fi
190 -
191 - if [ -e "${ROOT}/opt/freevo" ] ; then
192 - echo
193 - ewarn "Please remove ${ROOT}/opt/freevo because it is no longer used."
194 - fi
195 - if [ -e "${ROOT}/etc/freevo/freevo_config.py" ] ; then
196 - echo
197 - ewarn "Please remove ${ROOT}/etc/freevo/freevo_config.py."
198 - fi
199 - if [ -e "${ROOT}/etc/init.d/freevo-record" ] ; then
200 - echo
201 - ewarn "Please remove ${ROOT}/etc/init.d/freevo-record"
202 - fi
203 - if [ -e "${ROOT}/etc/init.d/freevo-web" ] ; then
204 - echo
205 - ewarn "Please remove ${ROOT}/etc/init.d/freevo-web"
206 - fi
207 -}