1 |
cardoe 09/10/25 03:45:22 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: mythtv-0.22_rc22588.ebuild |
5 |
Log: |
6 |
add MythTV 0.22 RC1 + upstream patches |
7 |
(Portage version: 2.1.7.1/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.8 media-tv/mythtv/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/metadata.xml?rev=1.8&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/metadata.xml?rev=1.8&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/metadata.xml?r1=1.7&r2=1.8 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/metadata.xml,v |
19 |
retrieving revision 1.7 |
20 |
retrieving revision 1.8 |
21 |
diff -u -r1.7 -r1.8 |
22 |
--- metadata.xml 14 Jan 2009 17:09:18 -0000 1.7 |
23 |
+++ metadata.xml 25 Oct 2009 03:45:21 -0000 1.8 |
24 |
@@ -55,5 +55,7 @@ |
25 |
<flag name="xvmc">Instructs MythTV to use XvMC for it's video output. By |
26 |
default, this will use the generic XvMC wrapper unless a specific video |
27 |
card driver is enabled via their VIDEO_CARDS USE flags.</flag> |
28 |
+ <flag name="vdpau">enable support of NVIDIA's VDPAU for video |
29 |
+ playback</flag> |
30 |
</use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.281 media-tv/mythtv/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.281&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.281&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.280&r2=1.281 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
44 |
retrieving revision 1.280 |
45 |
retrieving revision 1.281 |
46 |
diff -u -r1.280 -r1.281 |
47 |
--- ChangeLog 29 Aug 2009 18:32:51 -0000 1.280 |
48 |
+++ ChangeLog 25 Oct 2009 03:45:21 -0000 1.281 |
49 |
@@ -1,6 +1,12 @@ |
50 |
# ChangeLog for media-tv/mythtv |
51 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.280 2009/08/29 18:32:51 nixnut Exp $ |
53 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.281 2009/10/25 03:45:21 cardoe Exp $ |
54 |
+ |
55 |
+*mythtv-0.22_rc22588 (25 Oct 2009) |
56 |
+ |
57 |
+ 25 Oct 2009; Doug Goldstein <cardoe@g.o> |
58 |
+ +mythtv-0.22_rc22588.ebuild: |
59 |
+ add MythTV 0.22 RC1 + upstream patches |
60 |
|
61 |
29 Aug 2009; nixnut <nixnut@g.o> mythtv-0.21_p19961-r2.ebuild: |
62 |
ppc stable #280125 |
63 |
|
64 |
|
65 |
|
66 |
1.1 media-tv/mythtv/mythtv-0.22_rc22588.ebuild |
67 |
|
68 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_rc22588.ebuild?rev=1.1&view=markup |
69 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_rc22588.ebuild?rev=1.1&content-type=text/plain |
70 |
|
71 |
Index: mythtv-0.22_rc22588.ebuild |
72 |
=================================================================== |
73 |
# Copyright 1999-2009 Gentoo Foundation |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.22_rc22588.ebuild,v 1.1 2009/10/25 03:45:21 cardoe Exp $ |
76 |
|
77 |
EAPI=2 |
78 |
inherit flag-o-matic multilib eutils qt4 mythtv toolchain-funcs python |
79 |
|
80 |
DESCRIPTION="Homebrew PVR project" |
81 |
SLOT="0" |
82 |
KEYWORDS="~amd64 ~ppc ~x86" |
83 |
|
84 |
IUSE_VIDEO_CARDS="video_cards_nvidia" |
85 |
IUSE="alsa altivec autostart debug directv dvb dvd \ |
86 |
fftw ieee1394 jack lcd lirc mmx perl python \ |
87 |
tiff vdpau xvmc ${IUSE_VIDEO_CARDS}" |
88 |
|
89 |
RDEPEND=">=media-libs/freetype-2.0 |
90 |
>=media-sound/lame-3.93.1 |
91 |
x11-libs/libX11 |
92 |
x11-libs/libXext |
93 |
x11-libs/libXinerama |
94 |
x11-libs/libXv |
95 |
x11-libs/libXrandr |
96 |
x11-libs/libXxf86vm |
97 |
>=x11-libs/qt-core-4.4:4[qt3support] |
98 |
>=x11-libs/qt-gui-4.4:4[qt3support,tiff?] |
99 |
>=x11-libs/qt-sql-4.4:4[qt3support,mysql] |
100 |
>=x11-libs/qt-opengl-4.4:4[qt3support] |
101 |
>=x11-libs/qt-webkit-4.4:4 |
102 |
virtual/mysql |
103 |
virtual/opengl |
104 |
virtual/glu |
105 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 ) |
106 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
107 |
autostart? ( net-dialup/mingetty |
108 |
x11-wm/evilwm |
109 |
x11-apps/xset ) |
110 |
directv? ( virtual/perl-Time-HiRes ) |
111 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
112 |
dvd? ( media-libs/libdvdcss ) |
113 |
fftw? ( sci-libs/fftw:3.0 ) |
114 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
115 |
>=sys-libs/libavc1394-0.5.3 |
116 |
>=media-libs/libiec61883-1.0.0 ) |
117 |
jack? ( media-sound/jack-audio-connection-kit ) |
118 |
lcd? ( app-misc/lcdproc ) |
119 |
lirc? ( app-misc/lirc ) |
120 |
perl? ( dev-perl/DBD-mysql ) |
121 |
python? ( dev-python/mysql-python ) |
122 |
vdpau? ( x11-libs/libvdpau ) |
123 |
xvmc? ( x11-libs/libXvMC )" |
124 |
|
125 |
DEPEND="${RDEPEND} |
126 |
x11-proto/xineramaproto |
127 |
x11-proto/xf86vidmodeproto |
128 |
x11-apps/xinit" |
129 |
|
130 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
131 |
|
132 |
pkg_setup() { |
133 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
134 |
|
135 |
if use xvmc && use video_cards_nvidia; then |
136 |
elog |
137 |
elog "For NVIDIA based cards, the XvMC renderer only works on" |
138 |
elog "the NVIDIA 4, 5, 6 & 7 series cards." |
139 |
fi |
140 |
|
141 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} |
142 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
143 |
} |
144 |
|
145 |
src_prepare() { |
146 |
# upstream wants the revision number in their version.cpp |
147 |
# since the subversion.eclass strips out the .svn directory |
148 |
# svnversion in MythTV's build doesn't work |
149 |
sed -e "s:\`(svnversion 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \ |
150 |
-i "${S}"/version.pro || die "svnversion sed failed" |
151 |
|
152 |
# Perl bits need to go into vender_perl and not site_perl |
153 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
154 |
-i "${S}"/bindings/perl/perl.pro |
155 |
|
156 |
epatch "${FILESDIR}/${PN}-0.21-ldconfig-sanxbox-fix.patch" |
157 |
} |
158 |
|
159 |
src_configure() { |
160 |
local myconf="--prefix=/usr |
161 |
--mandir=/usr/share/man |
162 |
--libdir-name=$(get_libdir)" |
163 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
164 |
use altivec || myconf="${myconf} --disable-altivec" |
165 |
use fftw && myconf="${myconf} --enable-libfftw3" |
166 |
use jack || myconf="${myconf} --disable-audio-jack" |
167 |
use vdpau && myconf="${myconf} --enable-vdpau" |
168 |
|
169 |
#from bug #220857 |
170 |
use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw \ |
171 |
--disable-xvmc-vld" |
172 |
|
173 |
# according to the Ubuntu guys, this works better being always on |
174 |
myconf="${myconf} --enable-glx-procaddrarb" |
175 |
|
176 |
myconf="${myconf} |
177 |
$(use_enable dvb) |
178 |
$(use_enable ieee1394 firewire) |
179 |
$(use_enable lirc) |
180 |
--disable-audio-arts |
181 |
--disable-directfb |
182 |
--dvb-path=/usr/include |
183 |
--enable-opengl-vsync |
184 |
--enable-xrandr |
185 |
--enable-xv |
186 |
--enable-x11" |
187 |
|
188 |
if use mmx || use amd64; then |
189 |
myconf="${myconf} --enable-mmx" |
190 |
else |
191 |
myconf="${myconf} --disable-mmx" |
192 |
fi |
193 |
|
194 |
if use perl && use python; then |
195 |
myconf="${myconf} --with-bindings=perl,python" |
196 |
elif use perl; then |
197 |
myconf="${myconf} --with-bindings=perl" |
198 |
elif use python; then |
199 |
myconf="${myconf} --with-bindings=python" |
200 |
else |
201 |
myconf="${myconf} --without-bindings=perl,python" |
202 |
fi |
203 |
|
204 |
if use debug; then |
205 |
myconf="${myconf} --compile-type=debug" |
206 |
else |
207 |
myconf="${myconf} --compile-type=profile" |
208 |
fi |
209 |
|
210 |
## CFLAG cleaning so it compiles |
211 |
MARCH=$(get-flag "march") |
212 |
MTUNE=$(get-flag "mtune") |
213 |
strip-flags |
214 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
215 |
filter-flags "-O" "-O?" |
216 |
|
217 |
if [[ -n "${MARCH}" ]]; then |
218 |
myconf="${myconf} --cpu=${MARCH}" |
219 |
fi |
220 |
if [[ -n "${MTUNE}" ]]; then |
221 |
myconf="${myconf} --tune=${MTUNE}" |
222 |
fi |
223 |
|
224 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
225 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
226 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
227 |
|
228 |
# let MythTV come up with our CFLAGS. Upstream will support this |
229 |
CFLAGS="" |
230 |
CXXFLAGS="" |
231 |
einfo "Running ./configure ${myconf}" |
232 |
sh ./configure ${myconf} || die "configure died" |
233 |
} |
234 |
|
235 |
src_compile() { |
236 |
eqmake4 mythtv.pro -o "Makefile" || die "eqmake4 failed" |
237 |
emake || die "emake failed" |
238 |
|
239 |
# firewire support should build the tester |
240 |
if use ieee1394; then |
241 |
cd contrib |
242 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester \ |
243 |
development/firewire_tester/firewire_tester.c \ |
244 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
245 |
die "failed to compile firewire_tester" |
246 |
|
247 |
cd channel_changers |
248 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch \ |
249 |
6200ch/6200ch.c \ |
250 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
251 |
die "failed to compile 6200ch" |
252 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch \ |
253 |
sa3250ch/sa3250ch.c \ |
254 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
255 |
die "failed to compile sa3250ch" |
256 |
fi |
257 |
|
258 |
cd "${S}"/contrib/channel_changers |
259 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye/red_eye.c \ |
260 |
${LDFLAGS} || die "failed to compile red_eye" |
261 |
} |
262 |
|
263 |
src_install() { |
264 |
|
265 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
266 |
dodoc AUTHORS FAQ UPGRADING README |
267 |
|
268 |
insinto /usr/share/mythtv/database |
269 |
doins database/* |
270 |
|
271 |
exeinto /usr/share/mythtv |
272 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
273 |
|
274 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
275 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
276 |
|
277 |
dodoc keys.txt docs/*.{txt,pdf} |
278 |
dohtml docs/*.html |
279 |
|
280 |
keepdir /etc/mythtv |
281 |
chown -R mythtv "${D}"/etc/mythtv |
282 |
keepdir /var/log/mythtv |
283 |
chown -R mythtv "${D}"/var/log/mythtv |
284 |
|
285 |
insinto /etc/logrotate.d |
286 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
287 |
|
288 |
insinto /usr/share/mythtv/contrib |
289 |
doins -r contrib/* |
290 |
|
291 |
dobin "${FILESDIR}"/runmythfe |
292 |
|
293 |
if use autostart; then |
294 |
dodir /etc/env.d/ |
295 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
296 |
|
297 |
insinto /home/mythtv |
298 |
newins "${FILESDIR}"/bash_profile .bash_profile |
299 |
newins "${FILESDIR}"/xinitrc .xinitrc |
300 |
fi |
301 |
|
302 |
if use ieee1394; then |
303 |
dobin firewire_tester || die "failed to install firewire_tester" |
304 |
newdoc contrib/development/firewire_tester/README README.firewire_tester |
305 |
|
306 |
dobin 6200ch || die "failed to install 6200ch" |
307 |
newdoc contrib/channel_changers/6200ch/README README.6200ch |
308 |
|
309 |
dobin sa3250ch || die "failed to install sa3250ch" |
310 |
newdoc contrib/channel_changers/sa3250ch/README README.sa3250ch |
311 |
fi |
312 |
|
313 |
dobin red_eye || die "failed to install red_eye" |
314 |
newdoc contrib/channel_changers/red_eye/README README.red_eye |
315 |
|
316 |
if use directv; then |
317 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
318 |
newdoc contrib/channel_changers/d10control/README README.d10control |
319 |
fi |
320 |
} |
321 |
|
322 |
pkg_preinst() { |
323 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
324 |
} |
325 |
|
326 |
pkg_postinst() { |
327 |
use python && python_mod_optimize $(python_get_sitedir)/MythTV |
328 |
|
329 |
elog "Want mythfrontend to start automatically?" |
330 |
elog "Set USE=autostart. Details can be found at:" |
331 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
332 |
|
333 |
elog |
334 |
elog "To always have MythBackend running and available run the following:" |
335 |
elog "rc-update add mythbackend default" |
336 |
elog |
337 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
338 |
ewarn "chown -R mythtv /path/to/store" |
339 |
|
340 |
if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then |
341 |
ewarn |
342 |
ewarn "No XvMC implementation has been selected yet" |
343 |
ewarn "Use 'eselect xvmc list' for a list of available choices" |
344 |
ewarn "Then use 'eselect xvmc set <choice>' to choose" |
345 |
ewarn "'eselect xvmc set nvidia' for example" |
346 |
fi |
347 |
|
348 |
if use autostart; then |
349 |
elog |
350 |
elog "Please add the following to your /etc/inittab file at the end of" |
351 |
elog "the TERMINALS section" |
352 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
353 |
fi |
354 |
|
355 |
} |
356 |
|
357 |
pkg_postrm() |
358 |
{ |
359 |
use python && python_mod_cleanup $(python_get_sitedir)/MythTV |
360 |
} |
361 |
|
362 |
pkg_info() { |
363 |
"${ROOT}"/usr/bin/mythfrontend --version |
364 |
} |
365 |
|
366 |
pkg_config() { |
367 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
368 |
echo "already exist. You will be prompted for your MySQL root password." |
369 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
370 |
} |