Gentoo Archives: gentoo-commits

From: "Steve Dibb (beandog)" <beandog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.21_pre14480-r1.ebuild mythtv-0.20.2_p14472-r1.ebuild
Date: Thu, 20 Sep 2007 06:05:39
Message-Id: E1IYEXL-0006Z7-ID@stork.gentoo.org
1 beandog 07/09/20 05:25:15
2
3 Modified: ChangeLog
4 Added: mythtv-0.21_pre14480-r1.ebuild
5 mythtv-0.20.2_p14472-r1.ebuild
6 Log:
7 Add perl deps for contrib files
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.187 media-tv/mythtv/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.187&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.187&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.186&r2=1.187
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
20 retrieving revision 1.186
21 retrieving revision 1.187
22 diff -u -r1.186 -r1.187
23 --- ChangeLog 11 Sep 2007 14:28:01 -0000 1.186
24 +++ ChangeLog 20 Sep 2007 05:25:15 -0000 1.187
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-tv/mythtv
27 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.186 2007/09/11 14:28:01 cardoe Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.187 2007/09/20 05:25:15 beandog Exp $
30 +
31 +*mythtv-0.21_pre14480-r1 (20 Sep 2007)
32 +*mythtv-0.20.2_p14472-r1 (20 Sep 2007)
33 +
34 + 20 Sep 2007; Steve Dibb <beandog@g.o>
35 + +mythtv-0.20.2_p14472-r1.ebuild, +mythtv-0.21_pre14480-r1.ebuild:
36 + Add perl deps for contrib files
37
38 *mythtv-0.21_pre14480 (11 Sep 2007)
39 *mythtv-0.20.2_p14472 (11 Sep 2007)
40
41
42
43 1.1 media-tv/mythtv/mythtv-0.21_pre14480-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_pre14480-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_pre14480-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mythtv-0.21_pre14480-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_pre14480-r1.ebuild,v 1.1 2007/09/20 05:25:15 beandog Exp $
53
54 inherit flag-o-matic multilib eutils qt3 mythtv subversion toolchain-funcs
55
56 DESCRIPTION="Homebrew PVR project"
57 SLOT="0"
58 KEYWORDS="~amd64 ~ppc ~x86"
59
60 IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via"
61
62 IUSE="alsa altivec autostart dbox2 debug directv dts dvb dvd hdhomerun ieee1394 iptv ivtv jack joystick lcd lirc mmx vorbis opengl perl xvmc ${IUSE_VIDEO_CARDS}"
63
64 RDEPEND=">=media-libs/freetype-2.0
65 >=media-sound/lame-3.93.1
66 x11-libs/libX11
67 x11-libs/libXext
68 x11-libs/libXinerama
69 x11-libs/libXv
70 x11-libs/libXrandr
71 x11-libs/libXxf86vm
72 xvmc? (
73 x11-libs/libXvMC
74 video_cards_nvidia? ( x11-drivers/nvidia-drivers )
75 video_cards_via? ( x11-drivers/xf86-video-via )
76 video_cards_i810? ( x11-drivers/xf86-video-i810 )
77 )
78 $(qt_min_version 3.3)
79 virtual/mysql
80 virtual/opengl
81 virtual/glu
82 alsa? ( >=media-libs/alsa-lib-0.9 )
83 dts? ( media-libs/libdts )
84 dvd? ( media-libs/libdvdnav
85 media-libs/libdts )
86 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
87 directv? ( virtual/perl-Time-HiRes )
88 ivtv? ( media-tv/ivtv )
89 jack? ( media-sound/jack-audio-connection-kit )
90 lcd? ( app-misc/lcdproc )
91 lirc? ( app-misc/lirc )
92 perl? ( dev-perl/DBD-mysql )
93 vorbis? ( media-libs/libvorbis )
94 ieee1394? ( >=sys-libs/libraw1394-1.2.0
95 >=sys-libs/libavc1394-0.5.0
96 >=media-libs/libiec61883-1.0.0 )
97 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )
98 autostart? ( net-dialup/mingetty
99 x11-wm/evilwm
100 x11-apps/xset )"
101
102 DEPEND="${RDEPEND}
103 x11-proto/xineramaproto
104 x11-proto/xf86vidmodeproto
105 x11-apps/xinit"
106
107 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
108
109 S="${WORKDIR}/${PN}-${MY_PV}"
110
111 MYTHTV_GROUPS="video,audio,tty,uucp"
112
113 pkg_setup() {
114
115 local rip=0
116 if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
117 echo
118 eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled."
119 eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set."
120 echo
121 rip=1
122 fi
123
124 if use xvmc && use video_cards_nvidia; then
125 echo
126 ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or"
127 ewarn "greater to use this. Otherwise, you'll have crashes with MythTV"
128 echo
129 fi
130
131 if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then
132 echo
133 eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either"
134 eerror "an nVidia, Intel i810, or VIA video card."
135 echo
136 rip=1
137 fi
138
139 [[ $rip == 1 ]] && die "Please fix the above issues, before continuing."
140
141 echo
142 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
143 einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped"
144 einfo "Only additional CFLAG issues that will be addressed are for binary"
145 einfo "package building."
146 echo
147 }
148
149 src_unpack() {
150 subversion_src_unpack
151
152 # As needed fix since they don't know how to write qmake let alone a real
153 # make system. And they won't accept this upstream since it comes from
154 # Gentoo
155 #epatch "${FILESDIR}"/${PN}-0.20-as-needed.patch
156
157 # upstream wants the revision number in their version.cpp
158 # since the subversion.eclass strips out the .svn directory
159 # svnversion in MythTV's build doesn't work
160 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${SVNREV}:" \
161 -i "${S}"/version.pro || die "svnversion sed failed"
162 }
163
164 src_compile() {
165 local myconf="--prefix=/usr
166 --mandir=/usr/share/man
167 --libdir-name=$(get_libdir)"
168 use alsa || myconf="${myconf} --disable-audio-alsa"
169 use jack || myconf="${myconf} --disable-audio-jack"
170 use dts && myconf="${myconf} --enable-libdts"
171 use dbox2 || myconf="${myconf} --disable-dbox2"
172 use hdhomerun || myconf="${myconf} --disable-hdhomerun"
173 use altivec || myconf="${myconf} --disable-altivec"
174 use xvmc && myconf="${myconf} --enable-xvmc"
175 use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro"
176 use xvmc && ! use video_cards_nvidia && myconf="${myconf} --disable-xvmc-opengl"
177 use perl && myconf="${myconf} --with-bindings=perl"
178 myconf="${myconf}
179 --disable-audio-arts
180 $(use_enable lirc)
181 $(use_enable joystick joystick-menu)
182 $(use_enable dvb)
183 --dvb-path=/usr/include
184 $(use_enable opengl opengl-vsync)
185 $(use_enable ieee1394 firewire)
186 $(use_enable iptv)
187 --enable-xrandr
188 --enable-xv
189 --disable-directfb
190 --enable-x11
191 --enable-proc-opt"
192
193 if use mmx || use amd64; then
194 myconf="${myconf} --enable-mmx"
195 else
196 myconf="${myconf} --disable-mmx"
197 fi
198
199 if use debug; then
200 myconf="${myconf} --compile-type=debug"
201 else
202 myconf="${myconf} --compile-type=release"
203 fi
204
205 ## CFLAG cleaning so it compiles
206 MARCH=$(get-flag "march")
207 MTUNE=$(get-flag "mtune")
208 MCPU=$(get-flag "mcpu")
209 strip-flags
210 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
211 filter-flags "-O" "-O?"
212
213 if [[ -n "${MARCH}" ]]; then
214 myconf="${myconf} --arch=${MARCH}"
215 fi
216 if [[ -n "${MTUNE}" ]]; then
217 myconf="${myconf} --tune=${MTUNE}"
218 fi
219 if [[ -n "${MCPU}" ]]; then
220 myconf="${myconf} --cpu=${MCPU}"
221 fi
222
223 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
224 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
225 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
226
227 # let MythTV come up with our CFLAGS. Upstream will support this
228 CFLAGS=""
229 CXXFLAGS=""
230 einfo "Running ./configure ${myconf}"
231 ./configure ${myconf} || die "configure died"
232
233 ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed"
234 emake || die "emake failed"
235
236 # firewire support should build the tester
237 if use ieee1394; then
238 cd contrib
239 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
240 ${LDFLAGS} -liec61883 -lraw1394 || \
241 die "failed to compile firewire_tester"
242
243 cd channel_changers
244 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
245 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
246 die "failed to compile 6200ch"
247 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
248 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
249 die "failed to compile sa3250ch"
250 # LDLIBS="-liec61883 -lraw1394" CC=$(tc-getCC) emake firewire_tester || \
251 # die "failed to compile firewire_tester"
252 fi
253
254 cd ${S}/contrib/channel_changers
255 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
256 die "failed to compile red_eye"
257 }
258
259 src_install() {
260
261 einstall INSTALL_ROOT="${D}" || die "install failed"
262 for doc in AUTHORS FAQ UPGRADING ChangeLog README; do
263 test -e "${doc}" && dodoc ${doc}
264 done
265
266 insinto /usr/share/mythtv/database
267 doins database/*
268
269 exeinto /usr/share/mythtv
270 doexe "${FILESDIR}/mythfilldatabase.cron"
271
272 newinitd ${FILESDIR}/mythbackend-0.18.2.rc mythbackend
273 newconfd ${FILESDIR}/mythbackend-0.18.2.conf mythbackend
274
275 dodoc keys.txt docs/*.{txt,pdf}
276 dohtml docs/*.html
277
278 keepdir /etc/mythtv
279 chown -R mythtv "${D}"/etc/mythtv
280 keepdir /var/log/mythtv
281 chown -R mythtv "${D}"/var/log/mythtv
282
283 insinto /etc/logrotate.d
284 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
285
286 insinto /usr/share/mythtv/contrib
287 doins -r contrib/*
288
289 insinto /usr/share/mythtv/configfiles
290 doins configfiles/*
291
292 dobin "${FILESDIR}"/runmythfe
293
294 if use autostart; then
295 dodir /etc/env.d/
296 echo 'CONFIG_PROTECT="/home/mythtv/"' > ${D}/etc/env.d/95mythtv
297
298 insinto /home/mythtv
299 newins "${FILESDIR}"/bash_profile .bash_profile
300 newins "${FILESDIR}"/xinitrc .xinitrc
301 fi
302
303 if use ieee1394; then
304 dobin firewire_tester || die "failed to install firewire_tester"
305 dodoc contrib/firewire_tester-README
306
307 dobin 6200ch || die "failed to install 6200ch"
308 dodoc contrib/channel_changers/6200ch-README
309
310 dobin sa3250ch || die "failed to install sa3250ch"
311 dodoc contrib/channel_changers/sa3250ch-README
312 fi
313
314 dobin red_eye || die "failed to install red_eye"
315 dodoc contrib/channel_changers/red_eye-README
316
317 if use directv; then
318 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
319 dodoc contrib/channel_changers/d10control-README
320 fi
321 }
322
323 pkg_preinst() {
324 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user"
325 usermod -a -G ${MYTHTV_GROUPS} mythtv
326
327 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
328 }
329
330 pkg_postinst() {
331 echo
332 elog "Want mythfrontend to start automatically?"
333 elog "Set USE=autostart. Details can be found at:"
334 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
335
336 echo
337 elog "To always have MythBackend running and available run the following:"
338 elog "rc-update add mythbackend default"
339 echo
340 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
341 ewarn "chown -R mythtv /path/to/store"
342
343 if use autostart; then
344 echo
345 elog "Please add the following to your /etc/inittab file at the end of"
346 elog "the TERMINALS section"
347 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
348 fi
349
350 }
351
352 pkg_info() {
353 /usr/bin/mythfrontend --version
354 }
355
356 pkg_config() {
357 echo "Creating mythtv MySQL user and mythconverg database if it does not"
358 echo "already exist. You will be prompted for your MySQL root password."
359 /usr/bin/mysql -u root -p < /usr/share/mythtv/database/mc.sql
360 }
361
362
363
364 1.1 media-tv/mythtv/mythtv-0.20.2_p14472-r1.ebuild
365
366 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14472-r1.ebuild?rev=1.1&view=markup
367 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14472-r1.ebuild?rev=1.1&content-type=text/plain
368
369 Index: mythtv-0.20.2_p14472-r1.ebuild
370 ===================================================================
371 # Copyright 1999-2007 Gentoo Foundation
372 # Distributed under the terms of the GNU General Public License v2
373 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14472-r1.ebuild,v 1.1 2007/09/20 05:25:15 beandog Exp $
374
375 inherit mythtv flag-o-matic multilib eutils qt3 subversion toolchain-funcs
376
377 DESCRIPTION="Homebrew PVR project"
378 SLOT="0"
379 KEYWORDS="~amd64 ~ppc ~x86"
380
381 IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via"
382
383 IUSE="alsa altivec autostart backendonly crciprec dbox2 debug directv dts dvb dvd freebox frontendonly hdhomerun ieee1394 ivtv jack joystick lcd lirc mmx vorbis opengl perl xvmc ${IUSE_VIDEO_CARDS}"
384
385 RDEPEND=">=media-libs/freetype-2.0
386 >=media-sound/lame-3.93.1
387 x11-libs/libX11
388 x11-libs/libXext
389 x11-libs/libXinerama
390 x11-libs/libXv
391 x11-libs/libXrandr
392 x11-libs/libXxf86vm
393 xvmc? (
394 x11-libs/libXvMC
395 video_cards_nvidia? ( x11-drivers/nvidia-drivers )
396 video_cards_via? ( x11-drivers/xf86-video-via )
397 video_cards_i810? ( x11-drivers/xf86-video-i810 )
398 )
399 $(qt_min_version 3.3)
400 virtual/mysql
401 virtual/opengl
402 virtual/glu
403 alsa? ( >=media-libs/alsa-lib-0.9 )
404 dts? ( || ( media-libs/libdca media-libs/libdts ) )
405 dvd? ( media-libs/libdvdnav
406 media-libs/libdts )
407 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
408 directv? ( virtual/perl-Time-HiRes )
409 ivtv? ( media-tv/ivtv )
410 jack? ( media-sound/jack-audio-connection-kit )
411 lcd? ( app-misc/lcdproc )
412 lirc? ( app-misc/lirc )
413 perl? ( dev-perl/DBD-mysql )
414 vorbis? ( media-libs/libvorbis )
415 ieee1394? ( >=sys-libs/libraw1394-1.2.0
416 >=sys-libs/libavc1394-0.5.0
417 >=media-libs/libiec61883-1.0.0 )
418 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )
419 autostart? ( net-dialup/mingetty
420 x11-wm/evilwm
421 x11-apps/xset )"
422
423 DEPEND="${RDEPEND}
424 x11-proto/xineramaproto
425 x11-proto/xf86vidmodeproto
426 x11-apps/xinit"
427
428 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
429
430 S="${WORKDIR}/${PN}-${MY_PV}"
431
432 MYTHTV_GROUPS="video,audio,tty,uucp"
433
434 pkg_setup() {
435
436 local rip=0
437 if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
438 echo
439 eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled."
440 eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set."
441 echo
442 rip=1
443 fi
444
445 if use xvmc && use video_cards_nvidia; then
446 echo
447 ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or"
448 ewarn "greater to use this. Otherwise, you'll have crashes with MythTV"
449 echo
450 fi
451
452 if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then
453 echo
454 eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either"
455 eerror "an nVidia, Intel i810, or VIA video card."
456 echo
457 rip=1
458 fi
459
460 if use autostart && use backendonly; then
461 echo
462 eerror "You can't have USE=autostart while having USE=backendonly."
463 eerror "USE=autostart is for mythfrontend"
464 echo
465 rip=1
466 fi
467
468 [[ $rip == 1 ]] && die "Please fix the above issues, before continuing."
469
470 echo
471 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
472 einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped"
473 einfo "Only additional CFLAG issues that will be addressed are for binary"
474 einfo "package building."
475 echo
476 }
477
478 src_unpack() {
479 subversion_src_unpack
480
481 # As needed fix since they don't know how to write qmake let alone a real
482 # make system
483 epatch "${FILESDIR}"/${PN}-0.20-as-needed.patch
484
485 # upstream wants the revision number in their version.cpp
486 # since the subversion.eclass strips out the .svn directory
487 # svnversion in MythTV's build doesn't work
488 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${SVNREV}:" \
489 -i "${S}"/version.pro || die "svnversion sed failed"
490 }
491
492 src_compile() {
493 local myconf="--prefix=/usr
494 --mandir=/usr/share/man
495 --libdir-name=$(get_libdir)"
496 use alsa || myconf="${myconf} --disable-audio-alsa"
497 use jack || myconf="${myconf} --disable-audio-jack"
498 use dts || myconf="${myconf} --disable-dts"
499 use freebox || myconf="${myconf} --disable-freebox"
500 use dbox2 || myconf="${myconf} --disable-dbox2"
501 use hdhomerun || myconf="${myconf} --disable-hdhomerun"
502 use crciprec || myconf="${myconf} --disable-crciprec"
503 use altivec || myconf="${myconf} --disable-altivec"
504 use xvmc && myconf="${myconf} --enable-xvmc"
505 use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro"
506 use perl && myconf="${myconf} --with-bindings=perl"
507 myconf="${myconf}
508 --disable-audio-arts
509 $(use_enable lirc)
510 $(use_enable joystick joystick-menu)
511 $(use_enable dvb)
512 --dvb-path=/usr/include
513 $(use_enable opengl opengl-vsync)
514 $(use_enable ieee1394 firewire)
515 --enable-xrandr
516 --enable-xv
517 --disable-directfb
518 --enable-x11
519 --enable-proc-opt"
520
521 if use mmx || use amd64; then
522 myconf="${myconf} --enable-mmx"
523 else
524 myconf="${myconf} --disable-mmx"
525 fi
526
527 if use debug; then
528 myconf="${myconf} --compile-type=debug"
529 else
530 myconf="${myconf} --compile-type=release"
531 fi
532
533 ## CFLAG cleaning so it compiles
534 MARCH=$(get-flag "march")
535 MTUNE=$(get-flag "mtune")
536 MCPU=$(get-flag "mcpu")
537 strip-flags
538 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
539 filter-flags "-O" "-O?"
540
541 if [[ -n "${MARCH}" ]]; then
542 myconf="${myconf} --arch=${MARCH}"
543 fi
544 if [[ -n "${MTUNE}" ]]; then
545 myconf="${myconf} --tune=${MTUNE}"
546 fi
547 if [[ -n "${MCPU}" ]]; then
548 myconf="${myconf} --cpu=${MCPU}"
549 fi
550
551 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
552 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
553 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
554
555 if use frontendonly; then
556 ##Backend Removal
557 ewarn
558 ewarn "You are using the experimental feature for only installing the frontend."
559 ewarn "You will not get Gentoo support nor support from MythTV upstream for this."
560 ewarn "If this breaks, you own both pieces."
561 ewarn
562 myconf="${myconf} --disable-backend"
563 fi
564
565 if use backendonly; then
566 ##Frontend Removal
567 ewarn
568 ewarn "You are using the experimental feature for only installing the backend."
569 ewarn "You will not get Gentoo support nor support from MythTV upstream for this."
570 ewarn "If this breaks, you own both pieces."
571 ewarn
572 myconf="${myconf} --disable-frontend"
573 fi
574
575 # let MythTV come up with our CFLAGS. Upstream will support this
576 CFLAGS=""
577 CXXFLAGS=""
578 einfo "Running ./configure ${myconf}"
579 ./configure ${myconf} || die "configure died"
580
581 ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed"
582 emake || die "emake failed"
583
584 # firewire support should build the tester
585 if use ieee1394; then
586 cd contrib
587 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
588 ${LDFLAGS} -liec61883 -lraw1394 || \
589 die "failed to compile firewire_tester"
590
591 cd channel_changers
592 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
593 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
594 die "failed to compile 6200ch"
595 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
596 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
597 die "failed to compile sa3250ch"
598 # LDLIBS="-liec61883 -lraw1394" CC=$(tc-getCC) emake firewire_tester || \
599 # die "failed to compile firewire_tester"
600 fi
601
602 cd ${S}/contrib/channel_changers
603 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
604 die "failed to compile red_eye"
605 }
606
607 src_install() {
608
609 einstall INSTALL_ROOT="${D}" || die "install failed"
610 for doc in AUTHORS FAQ UPGRADING ChangeLog README; do
611 test -e "${doc}" && dodoc ${doc}
612 done
613
614 if ! use frontendonly; then
615 insinto /usr/share/mythtv/database
616 doins database/*
617
618 exeinto /usr/share/mythtv
619 doexe "${FILESDIR}/mythfilldatabase.cron"
620
621 newinitd ${FILESDIR}/mythbackend-0.18.2.rc mythbackend
622 newconfd ${FILESDIR}/mythbackend-0.18.2.conf mythbackend
623 fi
624
625 dodoc keys.txt docs/*.{txt,pdf}
626 dohtml docs/*.html
627
628 keepdir /etc/mythtv
629 chown -R mythtv "${D}"/etc/mythtv
630 keepdir /var/log/mythtv
631 chown -R mythtv "${D}"/var/log/mythtv
632
633 insinto /etc/logrotate.d
634 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
635
636 insinto /usr/share/mythtv/contrib
637 doins -r contrib/*
638
639 insinto /usr/share/mythtv/configfiles
640 doins configfiles/*
641
642 if ! use backendonly; then
643 dobin "${FILESDIR}"/runmythfe
644
645 if use autostart; then
646 dodir /etc/env.d/
647 echo 'CONFIG_PROTECT="/home/mythtv/"' > ${D}/etc/env.d/95mythtv
648
649 insinto /home/mythtv
650 newins "${FILESDIR}"/bash_profile .bash_profile
651 newins "${FILESDIR}"/xinitrc .xinitrc
652 fi
653 fi
654
655 if use ieee1394; then
656 dobin firewire_tester || die "failed to install firewire_tester"
657 dodoc contrib/firewire_tester-README
658
659 dobin 6200ch || die "failed to install 6200ch"
660 dodoc contrib/channel_changers/6200ch-README
661
662 dobin sa3250ch || die "failed to install sa3250ch"
663 dodoc contrib/channel_changers/sa3250ch-README
664 fi
665
666 dobin red_eye || die "failed to install red_eye"
667 dodoc contrib/channel_changers/red_eye-README
668
669 if use directv; then
670 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
671 dodoc contrib/channel_changers/d10control-README
672 fi
673 }
674
675 pkg_preinst() {
676 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user"
677 usermod -a -G ${MYTHTV_GROUPS} mythtv
678
679 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
680 }
681
682 pkg_postinst() {
683 if ! use backendonly; then
684 echo
685 elog "Want mythfrontend to start automatically?"
686 elog "Set USE=autostart. Details can be found at:"
687 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
688 fi
689
690 if ! use frontendonly; then
691 elog
692 elog "To always have MythBackend running and available run the following:"
693 elog "rc-update add mythbackend default"
694 elog
695 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
696 ewarn "chown -R mythtv /path/to/store"
697 fi
698
699 if use autostart; then
700 elog
701 elog "Please add the following to your /etc/inittab file at the end of"
702 elog "the TERMINALS section"
703 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
704 fi
705
706 }
707
708 pkg_info() {
709 /usr/bin/mythfrontend --version
710 }
711
712 pkg_config() {
713 echo "Creating mythtv MySQL user and mythconverg database if it does not"
714 echo "already exist. You will be prompted for your MySQL root password."
715 /usr/bin/mysql -u root -p < /usr/share/mythtv/database/mc.sql
716 }
717
718
719
720 --
721 gentoo-commits@g.o mailing list