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