Gentoo Archives: gentoo-commits

From: "Doug Klima (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.20.2_p14972.ebuild mythtv-0.20.2_p15332.ebuild
Date: Mon, 07 Jan 2008 20:04:39
Message-Id: E1JByD6-0001ag-Qy@stork.gentoo.org
1 cardoe 08/01/07 20:04:36
2
3 Modified: ChangeLog mythtv-0.20.2_p14972.ebuild
4 Added: mythtv-0.20.2_p15332.ebuild
5 Log:
6 stablize newer revision. add newer revision for MythEvent redirecting fix
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.200 media-tv/mythtv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.200&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.200&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.199&r2=1.200
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
19 retrieving revision 1.199
20 retrieving revision 1.200
21 diff -u -r1.199 -r1.200
22 --- ChangeLog 7 Jan 2008 20:02:10 -0000 1.199
23 +++ ChangeLog 7 Jan 2008 20:04:36 -0000 1.200
24 @@ -1,6 +1,12 @@
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.199 2008/01/07 20:02:10 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.200 2008/01/07 20:04:36 cardoe Exp $
29 +
30 +*mythtv-0.20.2_p15332 (07 Jan 2008)
31 +
32 + 07 Jan 2008; Doug Klima <cardoe@g.o> mythtv-0.20.2_p14972.ebuild,
33 + +mythtv-0.20.2_p15332.ebuild:
34 + stablize newer revision. add newer revision for MythEvent redirecting fix
35
36 07 Jan 2008; Doug Klima <cardoe@g.o> -mythtv-0.20.2_p14324.ebuild,
37 -mythtv-0.20.2_p14498.ebuild, -mythtv-0.20.2_p14668.ebuild,
38
39
40
41 1.2 media-tv/mythtv/mythtv-0.20.2_p14972.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14972.ebuild?rev=1.2&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14972.ebuild?rev=1.2&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14972.ebuild?r1=1.1&r2=1.2
46
47 Index: mythtv-0.20.2_p14972.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14972.ebuild,v
50 retrieving revision 1.1
51 retrieving revision 1.2
52 diff -u -r1.1 -r1.2
53 --- mythtv-0.20.2_p14972.ebuild 1 Dec 2007 16:09:02 -0000 1.1
54 +++ mythtv-0.20.2_p14972.ebuild 7 Jan 2008 20:04:36 -0000 1.2
55 @@ -1,12 +1,12 @@
56 -# Copyright 1999-2007 Gentoo Foundation
57 +# Copyright 1999-2008 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14972.ebuild,v 1.1 2007/12/01 16:09:02 cardoe Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14972.ebuild,v 1.2 2008/01/07 20:04:36 cardoe Exp $
61
62 inherit mythtv flag-o-matic multilib eutils qt3 subversion toolchain-funcs
63
64 DESCRIPTION="Homebrew PVR project"
65 SLOT="0"
66 -KEYWORDS="~amd64 ~ppc ~x86"
67 +KEYWORDS="amd64 ppc x86"
68
69 IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via"
70
71
72
73
74 1.1 media-tv/mythtv/mythtv-0.20.2_p15332.ebuild
75
76 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p15332.ebuild?rev=1.1&view=markup
77 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p15332.ebuild?rev=1.1&content-type=text/plain
78
79 Index: mythtv-0.20.2_p15332.ebuild
80 ===================================================================
81 # Copyright 1999-2008 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p15332.ebuild,v 1.1 2008/01/07 20:04:36 cardoe Exp $
84
85 inherit mythtv flag-o-matic multilib eutils qt3 subversion toolchain-funcs
86
87 DESCRIPTION="Homebrew PVR project"
88 SLOT="0"
89 KEYWORDS="~amd64 ~ppc ~x86"
90
91 IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via"
92
93 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}"
94
95 RDEPEND=">=media-libs/freetype-2.0
96 >=media-sound/lame-3.93.1
97 x11-libs/libX11
98 x11-libs/libXext
99 x11-libs/libXinerama
100 x11-libs/libXv
101 x11-libs/libXrandr
102 x11-libs/libXxf86vm
103 xvmc? (
104 x11-libs/libXvMC
105 video_cards_nvidia? ( x11-drivers/nvidia-drivers )
106 video_cards_via? ( x11-drivers/xf86-video-via )
107 video_cards_i810? ( x11-drivers/xf86-video-i810 )
108 )
109 $(qt_min_version 3.3)
110 virtual/mysql
111 virtual/opengl
112 virtual/glu
113 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )
114 alsa? ( >=media-libs/alsa-lib-0.9 )
115 dts? ( || ( media-libs/libdca media-libs/libdts ) )
116 dvd? ( media-libs/libdvdnav )
117 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
118 directv? ( virtual/perl-Time-HiRes )
119 ivtv? ( media-tv/ivtv )
120 jack? ( media-sound/jack-audio-connection-kit )
121 lcd? ( app-misc/lcdproc )
122 lirc? ( app-misc/lirc )
123 perl? ( dev-perl/DBD-mysql )
124 vorbis? ( media-libs/libvorbis )
125 ieee1394? ( >=sys-libs/libraw1394-1.2.0
126 >=sys-libs/libavc1394-0.5.0
127 >=media-libs/libiec61883-1.0.0 )
128 autostart? ( net-dialup/mingetty
129 x11-wm/evilwm
130 x11-apps/xset )"
131
132 DEPEND="${RDEPEND}
133 x11-proto/xineramaproto
134 x11-proto/xf86vidmodeproto
135 x11-apps/xinit"
136
137 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
138
139 S="${WORKDIR}/${PN}-${MY_PV}"
140
141 MYTHTV_GROUPS="video,audio,tty,uucp"
142
143 pkg_setup() {
144
145 local rip=0
146 if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
147 echo
148 eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled."
149 eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set."
150 echo
151 rip=1
152 fi
153
154 if use xvmc && use video_cards_nvidia; then
155 echo
156 ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or"
157 ewarn "greater to use this. Otherwise, you'll have crashes with MythTV"
158 echo
159 fi
160
161 if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then
162 echo
163 eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either"
164 eerror "an nVidia, Intel i810, or VIA video card."
165 echo
166 rip=1
167 fi
168
169 if use autostart && use backendonly; then
170 echo
171 eerror "You can't have USE=autostart while having USE=backendonly."
172 eerror "USE=autostart is for mythfrontend"
173 echo
174 rip=1
175 fi
176
177 [[ $rip == 1 ]] && die "Please fix the above issues, before continuing."
178
179 echo
180 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
181 einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped"
182 einfo "Only additional CFLAG issues that will be addressed are for binary"
183 einfo "package building."
184 echo
185 }
186
187 src_unpack() {
188 subversion_src_unpack
189
190 # As needed fix since they don't know how to write qmake let alone a real
191 # make system
192 epatch "${FILESDIR}"/${PN}-0.20-as-needed.patch
193
194 # upstream wants the revision number in their version.cpp
195 # since the subversion.eclass strips out the .svn directory
196 # svnversion in MythTV's build doesn't work
197 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${SVNREV}:" \
198 -i "${S}"/version.pro || die "svnversion sed failed"
199 }
200
201 src_compile() {
202 local myconf="--prefix=/usr
203 --mandir=/usr/share/man
204 --libdir-name=$(get_libdir)"
205 use alsa || myconf="${myconf} --disable-audio-alsa"
206 use jack || myconf="${myconf} --disable-audio-jack"
207 use dts || myconf="${myconf} --disable-dts"
208 use freebox || myconf="${myconf} --disable-freebox"
209 use dbox2 || myconf="${myconf} --disable-dbox2"
210 use hdhomerun || myconf="${myconf} --disable-hdhomerun"
211 use crciprec || myconf="${myconf} --disable-crciprec"
212 use altivec || myconf="${myconf} --disable-altivec"
213 use xvmc && myconf="${myconf} --enable-xvmc"
214 use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro"
215 use perl && myconf="${myconf} --with-bindings=perl"
216 myconf="${myconf}
217 --disable-audio-arts
218 $(use_enable lirc)
219 $(use_enable joystick joystick-menu)
220 $(use_enable dvb)
221 --dvb-path=/usr/include
222 $(use_enable opengl opengl-vsync)
223 $(use_enable ieee1394 firewire)
224 --enable-xrandr
225 --enable-xv
226 --disable-directfb
227 --enable-x11
228 --enable-proc-opt"
229
230 if use mmx || use amd64; then
231 myconf="${myconf} --enable-mmx"
232 else
233 myconf="${myconf} --disable-mmx"
234 fi
235
236 if use debug; then
237 myconf="${myconf} --compile-type=debug"
238 else
239 myconf="${myconf} --compile-type=release"
240 fi
241
242 ## CFLAG cleaning so it compiles
243 MARCH=$(get-flag "march")
244 MTUNE=$(get-flag "mtune")
245 MCPU=$(get-flag "mcpu")
246 strip-flags
247 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
248 filter-flags "-O" "-O?"
249
250 if [[ -n "${MARCH}" ]]; then
251 myconf="${myconf} --arch=${MARCH}"
252 fi
253 if [[ -n "${MTUNE}" ]]; then
254 myconf="${myconf} --tune=${MTUNE}"
255 fi
256 if [[ -n "${MCPU}" ]]; then
257 myconf="${myconf} --cpu=${MCPU}"
258 fi
259
260 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
261 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
262 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
263
264 if use frontendonly; then
265 ##Backend Removal
266 ewarn
267 ewarn "You are using the experimental feature for only installing the frontend."
268 ewarn "You will not get Gentoo support nor support from MythTV upstream for this."
269 ewarn "If this breaks, you own both pieces."
270 ewarn
271 myconf="${myconf} --disable-backend"
272 fi
273
274 if use backendonly; then
275 ##Frontend Removal
276 ewarn
277 ewarn "You are using the experimental feature for only installing the backend."
278 ewarn "You will not get Gentoo support nor support from MythTV upstream for this."
279 ewarn "If this breaks, you own both pieces."
280 ewarn
281 myconf="${myconf} --disable-frontend"
282 fi
283
284 # let MythTV come up with our CFLAGS. Upstream will support this
285 CFLAGS=""
286 CXXFLAGS=""
287 einfo "Running ./configure ${myconf}"
288 ./configure ${myconf} || die "configure died"
289
290 ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed"
291 emake || die "emake failed"
292
293 # firewire support should build the tester
294 if use ieee1394; then
295 cd contrib
296 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
297 ${LDFLAGS} -liec61883 -lraw1394 || \
298 die "failed to compile firewire_tester"
299
300 cd channel_changers
301 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
302 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
303 die "failed to compile 6200ch"
304 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
305 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
306 die "failed to compile sa3250ch"
307 # LDLIBS="-liec61883 -lraw1394" CC=$(tc-getCC) emake firewire_tester || \
308 # die "failed to compile firewire_tester"
309 fi
310
311 cd "${S}"/contrib/channel_changers
312 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
313 die "failed to compile red_eye"
314 }
315
316 src_install() {
317
318 einstall INSTALL_ROOT="${D}" || die "install failed"
319 for doc in AUTHORS FAQ UPGRADING ChangeLog README; do
320 test -e "${doc}" && dodoc ${doc}
321 done
322
323 if ! use frontendonly; then
324 insinto /usr/share/mythtv/database
325 doins database/*
326
327 exeinto /usr/share/mythtv
328 doexe "${FILESDIR}"/mythfilldatabase.cron
329
330 newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
331 newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend
332 fi
333
334 dodoc keys.txt docs/*.{txt,pdf}
335 dohtml docs/*.html
336
337 keepdir /etc/mythtv
338 chown -R mythtv "${D}"/etc/mythtv
339 keepdir /var/log/mythtv
340 chown -R mythtv "${D}"/var/log/mythtv
341
342 insinto /etc/logrotate.d
343 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
344
345 insinto /usr/share/mythtv/contrib
346 doins -r contrib/*
347
348 insinto /usr/share/mythtv/configfiles
349 doins configfiles/*
350
351 if ! use backendonly; then
352 dobin "${FILESDIR}"/runmythfe
353
354 if use autostart; then
355 dodir /etc/env.d/
356 echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv
357
358 insinto /home/mythtv
359 newins "${FILESDIR}"/bash_profile .bash_profile
360 newins "${FILESDIR}"/xinitrc .xinitrc
361 fi
362 fi
363
364 if use ieee1394; then
365 dobin firewire_tester || die "failed to install firewire_tester"
366 dodoc contrib/firewire_tester-README
367
368 dobin 6200ch || die "failed to install 6200ch"
369 dodoc contrib/channel_changers/6200ch-README
370
371 dobin sa3250ch || die "failed to install sa3250ch"
372 dodoc contrib/channel_changers/sa3250ch-README
373 fi
374
375 dobin red_eye || die "failed to install red_eye"
376 dodoc contrib/channel_changers/red_eye-README
377
378 if use directv; then
379 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
380 dodoc contrib/channel_changers/d10control-README
381 fi
382 }
383
384 pkg_preinst() {
385 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user"
386 usermod -a -G ${MYTHTV_GROUPS} mythtv
387
388 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
389 }
390
391 pkg_postinst() {
392 if ! use backendonly; then
393 echo
394 elog "Want mythfrontend to start automatically?"
395 elog "Set USE=autostart. Details can be found at:"
396 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
397 fi
398
399 if ! use frontendonly; then
400 elog
401 elog "To always have MythBackend running and available run the following:"
402 elog "rc-update add mythbackend default"
403 elog
404 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
405 ewarn "chown -R mythtv /path/to/store"
406 fi
407
408 if use autostart; then
409 elog
410 elog "Please add the following to your /etc/inittab file at the end of"
411 elog "the TERMINALS section"
412 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
413 fi
414
415 }
416
417 pkg_info() {
418 /usr/bin/mythfrontend --version
419 }
420
421 pkg_config() {
422 echo "Creating mythtv MySQL user and mythconverg database if it does not"
423 echo "already exist. You will be prompted for your MySQL root password."
424 /usr/bin/mysql -u root -p < /usr/share/mythtv/database/mc.sql
425 }
426
427
428
429 --
430 gentoo-commits@l.g.o mailing list