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