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