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