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