Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.21_p18501.ebuild
Date: Wed, 01 Oct 2008 22:03:29
Message-Id: E1Kl9n0-0002tt-Gl@stork.gentoo.org
1 cardoe 08/10/01 22:03:22
2
3 Modified: ChangeLog
4 Added: mythtv-0.21_p18501.ebuild
5 Log:
6 EAPI=2 USE depends. fix mythshutdown wakeup date issue. Improvements to h264 decoder. Fix for previously-shown with xmltv. UTF8 fix for UPnP. French DVB-T freq added. Fix for EITScan stopping. Fix potential segfault in mythbackend. Fix for index out of range issue.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64)
8
9 Revision Changes Path
10 1.254 media-tv/mythtv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.254&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.254&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.253&r2=1.254
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
19 retrieving revision 1.253
20 retrieving revision 1.254
21 diff -u -r1.253 -r1.254
22 --- ChangeLog 1 Oct 2008 14:47:57 -0000 1.253
23 +++ ChangeLog 1 Oct 2008 22:03:21 -0000 1.254
24 @@ -1,6 +1,15 @@
25 # ChangeLog for media-tv/mythtv
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.253 2008/10/01 14:47:57 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.254 2008/10/01 22:03:21 cardoe Exp $
29 +
30 +*mythtv-0.21_p18501 (01 Oct 2008)
31 +
32 + 01 Oct 2008; Doug Goldstein <cardoe@g.o>
33 + +mythtv-0.21_p18501.ebuild:
34 + EAPI=2 USE depends. fix mythshutdown wakeup date issue. Improvements to
35 + h264 decoder. Fix for previously-shown with xmltv. UTF8 fix for UPnP.
36 + French DVB-T freq added. Fix for EITScan stopping. Fix potential segfault
37 + in mythbackend. Fix for index out of range issue.
38
39 *mythtv-0.22_alpha18528 (01 Oct 2008)
40
41
42
43
44 1.1 media-tv/mythtv/mythtv-0.21_p18501.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p18501.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p18501.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mythtv-0.21_p18501.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_p18501.ebuild,v 1.1 2008/10/01 22:03:21 cardoe Exp $
54
55 EAPI=2
56 inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python confutils
57
58 DESCRIPTION="Homebrew PVR project"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~x86"
61
62 IUSE_VIDEO_CARDS="video_cards_nvidia"
63 IUSE="aac alsa altivec autostart debug directv dvb dvd fftw ieee1394 jack lcd \
64 lirc mmx opengl perl python xvmc ${IUSE_VIDEO_CARDS}"
65
66 RDEPEND=">=media-libs/freetype-2.0
67 >=media-sound/lame-3.93.1
68 x11-libs/libX11
69 x11-libs/libXext
70 x11-libs/libXinerama
71 x11-libs/libXv
72 x11-libs/libXrandr
73 x11-libs/libXxf86vm
74 >=x11-libs/qt-3.3:3[mysql,opengl]
75 virtual/mysql
76 virtual/opengl
77 virtual/glu
78 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 )
79 aac? ( media-libs/faad2 )
80 alsa? ( >=media-libs/alsa-lib-0.9 )
81 autostart? ( net-dialup/mingetty
82 x11-wm/evilwm
83 x11-apps/xset )
84 directv? ( virtual/perl-Time-HiRes )
85 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
86 dvd? ( media-libs/libdvdcss )
87 fftw? ( sci-libs/fftw:3.0 )
88 ieee1394? ( >=sys-libs/libraw1394-1.2.0
89 >=sys-libs/libavc1394-0.5.3
90 >=media-libs/libiec61883-1.0.0 )
91 jack? ( media-sound/jack-audio-connection-kit )
92 lcd? ( app-misc/lcdproc )
93 lirc? ( app-misc/lirc )
94 perl? ( dev-perl/DBD-mysql )
95 python? ( dev-python/mysql-python )
96 xvmc? ( x11-libs/libXvMC
97 app-admin/eselect-xvmc )"
98
99 DEPEND="${RDEPEND}
100 x11-proto/xineramaproto
101 x11-proto/xf86vidmodeproto
102 x11-apps/xinit"
103
104 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
105
106 S="${WORKDIR}/${PN}-${MY_PV}"
107
108 MYTHTV_GROUPS="video,audio,tty,uucp"
109
110 pkg_setup() {
111 elog "This ebuild now uses a heavily stripped down version of your CFLAGS"
112
113 if use xvmc && use video_cards_nvidia; then
114 elog
115 elog "For NVIDIA based cards, the XvMC renderer only works on"
116 elog "the NVIDIA 4, 5, 6 & 7 series cards."
117 fi
118
119 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} \
120 || die "Problem adding mythtv user"
121 usermod -a -G ${MYTHTV_GROUPS} mythtv
122 }
123
124 src_prepare() {
125 # upstream wants the revision number in their version.cpp
126 # since the subversion.eclass strips out the .svn directory
127 # svnversion in MythTV's build doesn't work
128 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \
129 -i "${S}"/version.pro || die "svnversion sed failed"
130
131 # Perl bits need to go into vender_perl and not site_perl
132 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
133 -i "${S}"/bindings/perl/perl.pro
134 }
135
136 src_configure() {
137 local myconf="--prefix=/usr
138 --mandir=/usr/share/man
139 --libdir-name=$(get_libdir)"
140 use aac && myconf="${myconf} --enable-libfaad"
141 use alsa || myconf="${myconf} --disable-audio-alsa"
142 use altivec || myconf="${myconf} --disable-altivec"
143 use fftw && myconf="${myconf} --enable-libfftw3"
144 use jack || myconf="${myconf} --disable-audio-jack"
145 # let's give this a whirl from bug #220857
146 use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw \
147 --disable-xvmc-vld"
148 #use xvmc && ! use video_cards_via && \
149 # myconf="${myconf} --enable-xvmc"
150 #use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc \
151 # --enable-xvmc-pro --disable-xvmcw"
152 # nvidia-drivers-71 don't support GLX 1.4
153 #use video_cards_nvidia && has_version =x11-drivers/nvidia-drivers-71* \
154 # && myconf="${myconf} --enable-glx-procaddrarb"
155 # according to the Ubuntu guys, this works better always on
156 myconf="${myconf} --enable-glx-procaddrarb"
157
158 myconf="${myconf}
159 $(use_enable dvb)
160 $(use_enable ieee1394 firewire)
161 $(use_enable lirc)
162 --disable-audio-arts
163 --disable-directfb
164 --dvb-path=/usr/include
165 --enable-opengl-vsync
166 --enable-xrandr
167 --enable-xv
168 --enable-x11"
169 # per discussions with j-rod and janng in #mythtv, these are disabled
170 # --enable-libmp3lame
171 # use x264 && myconf="${myconf} --enable-libx264"
172 # use xvid && myconf="${myconf} --enable-libxvid"
173 # use aac && myconf="${myconf} --enable-libfaac"
174
175 if use mmx || use amd64; then
176 myconf="${myconf} --enable-mmx"
177 else
178 myconf="${myconf} --disable-mmx"
179 fi
180
181 if use perl && use python; then
182 myconf="${myconf} --with-bindings=perl,python"
183 elif use perl; then
184 myconf="${myconf} --with-bindings=perl"
185 elif use python; then
186 myconf="${myconf} --with-bindings=python"
187 else
188 myconf="${myconf} --without-bindings=perl,python"
189 fi
190
191 if use debug; then
192 myconf="${myconf} --compile-type=debug"
193 else
194 myconf="${myconf} --compile-type=profile"
195 fi
196
197 ## CFLAG cleaning so it compiles
198 MARCH=$(get-flag "march")
199 MTUNE=$(get-flag "mtune")
200 strip-flags
201 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
202 filter-flags "-O" "-O?"
203
204 if [[ -n "${MARCH}" ]]; then
205 myconf="${myconf} --cpu=${MARCH}"
206 fi
207 if [[ -n "${MTUNE}" ]]; then
208 myconf="${myconf} --tune=${MTUNE}"
209 fi
210
211 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
212 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
213 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
214
215 # let MythTV come up with our CFLAGS. Upstream will support this
216 CFLAGS=""
217 CXXFLAGS=""
218 einfo "Running ./configure ${myconf}"
219 ./configure ${myconf} || die "configure died"
220 }
221
222 src_compile() {
223 eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed"
224 emake || die "emake failed"
225
226 # firewire support should build the tester
227 if use ieee1394; then
228 cd contrib
229 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
230 ${LDFLAGS} -liec61883 -lraw1394 || \
231 die "failed to compile firewire_tester"
232
233 cd channel_changers
234 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
235 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
236 die "failed to compile 6200ch"
237 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
238 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
239 die "failed to compile sa3250ch"
240 fi
241
242 cd "${S}"/contrib/channel_changers
243 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
244 die "failed to compile red_eye"
245 }
246
247 src_install() {
248
249 einstall INSTALL_ROOT="${D}" || die "install failed"
250 dodoc AUTHORS FAQ UPGRADING README
251
252 insinto /usr/share/mythtv/database
253 doins database/*
254
255 exeinto /usr/share/mythtv
256 doexe "${FILESDIR}/mythfilldatabase.cron"
257
258 newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
259 newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend
260
261 dodoc keys.txt docs/*.{txt,pdf}
262 dohtml docs/*.html
263
264 keepdir /etc/mythtv
265 chown -R mythtv "${D}"/etc/mythtv
266 keepdir /var/log/mythtv
267 chown -R mythtv "${D}"/var/log/mythtv
268
269 insinto /etc/logrotate.d
270 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
271
272 insinto /usr/share/mythtv/contrib
273 doins -r contrib/*
274
275 dobin "${FILESDIR}"/runmythfe
276
277 if use autostart; then
278 dodir /etc/env.d/
279 echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv
280
281 insinto /home/mythtv
282 newins "${FILESDIR}"/bash_profile .bash_profile
283 newins "${FILESDIR}"/xinitrc .xinitrc
284 fi
285
286 if use ieee1394; then
287 dobin firewire_tester || die "failed to install firewire_tester"
288 dodoc contrib/firewire_tester-README
289
290 dobin 6200ch || die "failed to install 6200ch"
291 dodoc contrib/channel_changers/6200ch-README
292
293 dobin sa3250ch || die "failed to install sa3250ch"
294 dodoc contrib/channel_changers/sa3250ch-README
295 fi
296
297 dobin red_eye || die "failed to install red_eye"
298 dodoc contrib/channel_changers/red_eye-README
299
300 if use directv; then
301 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
302 dodoc contrib/channel_changers/d10control-README
303 fi
304 }
305
306 pkg_preinst() {
307 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
308 }
309
310 pkg_postinst() {
311 python_version
312 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/MythTV
313
314 echo
315 elog "Want mythfrontend to start automatically?"
316 elog "Set USE=autostart. Details can be found at:"
317 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
318
319 elog
320 elog "To always have MythBackend running and available run the following:"
321 elog "rc-update add mythbackend default"
322 elog
323 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
324 ewarn "chown -R mythtv /path/to/store"
325
326 if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then
327 ewarn
328 ewarn "No XvMC implementation has been selected yet"
329 ewarn "Use 'eselect xvmc list' for a list of available choices"
330 ewarn "Then use 'eselect xvmc set <choice>' to choose"
331 ewarn "'eselect xvmc set nvidia' for example"
332 fi
333
334 if use autostart; then
335 elog
336 elog "Please add the following to your /etc/inittab file at the end of"
337 elog "the TERMINALS section"
338 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
339 fi
340
341 }
342
343 pkg_postrm()
344 {
345 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/MythTV
346 }
347
348 pkg_info() {
349 "${ROOT}"/usr/bin/mythfrontend --version
350 }
351
352 pkg_config() {
353 echo "Creating mythtv MySQL user and mythconverg database if it does not"
354 echo "already exist. You will be prompted for your MySQL root password."
355 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
356 }