1 |
cardoe 10/07/30 03:54:49 |
2 |
|
3 |
Modified: ChangeLog mythtv-0.23.1_p25423.ebuild |
4 |
Added: mythtv-0.23.1_p25427.ebuild |
5 |
Log: |
6 |
Upstream fix for character encoding in some fields (e.g. actors). Fix issue where some scripts didn't have execute and should. Potentially actually fix issue where MythTV Branch wasn't shown in --version |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.327 media-tv/mythtv/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.327&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.327&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.326&r2=1.327 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
19 |
retrieving revision 1.326 |
20 |
retrieving revision 1.327 |
21 |
diff -u -r1.326 -r1.327 |
22 |
--- ChangeLog 26 Jul 2010 13:36:15 -0000 1.326 |
23 |
+++ ChangeLog 30 Jul 2010 03:54:49 -0000 1.327 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for media-tv/mythtv |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.326 2010/07/26 13:36:15 fauli Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.327 2010/07/30 03:54:49 cardoe Exp $ |
29 |
+ |
30 |
+*mythtv-0.23.1_p25427 (30 Jul 2010) |
31 |
+ |
32 |
+ 30 Jul 2010; Doug Goldstein <cardoe@g.o> |
33 |
+ mythtv-0.23.1_p25423.ebuild, +mythtv-0.23.1_p25427.ebuild: |
34 |
+ Upstream fix for character encoding in some fields (e.g. actors). Fix |
35 |
+ issue where some scripts didn't have execute and should. Potentially |
36 |
+ actually fix issue where MythTV Branch wasn't shown in --version |
37 |
|
38 |
26 Jul 2010; Christian Faulhammer <fauli@g.o> |
39 |
mythtv-0.22_p24255.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.2 media-tv/mythtv/mythtv-0.23.1_p25423.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25423.ebuild?rev=1.2&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25423.ebuild?rev=1.2&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25423.ebuild?r1=1.1&r2=1.2 |
48 |
|
49 |
Index: mythtv-0.23.1_p25423.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25423.ebuild,v |
52 |
retrieving revision 1.1 |
53 |
retrieving revision 1.2 |
54 |
diff -u -r1.1 -r1.2 |
55 |
--- mythtv-0.23.1_p25423.ebuild 25 Jul 2010 23:26:15 -0000 1.1 |
56 |
+++ mythtv-0.23.1_p25423.ebuild 30 Jul 2010 03:54:49 -0000 1.2 |
57 |
@@ -1,6 +1,6 @@ |
58 |
# Copyright 1999-2010 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25423.ebuild,v 1.1 2010/07/25 23:26:15 cardoe Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25423.ebuild,v 1.2 2010/07/30 03:54:49 cardoe Exp $ |
62 |
|
63 |
EAPI=2 |
64 |
inherit flag-o-matic multilib eutils qt4 mythtv toolchain-funcs python |
65 |
@@ -89,6 +89,7 @@ |
66 |
# puts the SVN revision into a special file that the build system |
67 |
# reads and embeds into the binaries for version info |
68 |
echo "SOURCE_VERSION=${MYTHTV_REV}" > "${S}/VERSION" |
69 |
+ echo "SVNREPOPATH=${MYTHTV_REPO}" >> "${S}/VERSION" |
70 |
|
71 |
# Perl bits need to go into vender_perl and not site_perl |
72 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
73 |
@@ -276,6 +277,7 @@ |
74 |
|
75 |
# correct permissions so the scripts are actually usable |
76 |
fperms 755 /usr/share/mythtv/contrib/*/*.pl |
77 |
+ fperms 755 /usr/share/mythtv/contrib/*/*.py |
78 |
fperms 755 /usr/share/mythtv/mythconverg_backup.pl |
79 |
fperms 755 /usr/share/mythtv/mythconverg_restore.pl |
80 |
|
81 |
|
82 |
|
83 |
|
84 |
1.1 media-tv/mythtv/mythtv-0.23.1_p25427.ebuild |
85 |
|
86 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25427.ebuild?rev=1.1&view=markup |
87 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p25427.ebuild?rev=1.1&content-type=text/plain |
88 |
|
89 |
Index: mythtv-0.23.1_p25427.ebuild |
90 |
=================================================================== |
91 |
# Copyright 1999-2010 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.23.1_p25427.ebuild,v 1.1 2010/07/30 03:54:49 cardoe Exp $ |
94 |
|
95 |
EAPI=2 |
96 |
inherit flag-o-matic multilib eutils qt4 mythtv toolchain-funcs python |
97 |
|
98 |
DESCRIPTION="Homebrew PVR project" |
99 |
SLOT="0" |
100 |
KEYWORDS="~amd64 ~ppc ~x86" |
101 |
|
102 |
IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_via" |
103 |
IUSE="alsa altivec autostart +css dbus debug directv dvb faad \ |
104 |
fftw ieee1394 jack lcd lirc mmx perl pulseaudio python \ |
105 |
tiff vdpau xvmc ${IUSE_VIDEO_CARDS}" |
106 |
|
107 |
# fonts from bug #296222 |
108 |
RDEPEND="media-fonts/corefonts |
109 |
media-fonts/dejavu |
110 |
>=media-libs/freetype-2.0 |
111 |
>=media-sound/lame-3.93.1 |
112 |
x11-libs/libX11 |
113 |
x11-libs/libXext |
114 |
x11-libs/libXinerama |
115 |
x11-libs/libXv |
116 |
x11-libs/libXrandr |
117 |
x11-libs/libXxf86vm |
118 |
>=x11-libs/qt-core-4.4:4[qt3support] |
119 |
>=x11-libs/qt-gui-4.4:4[dbus?,qt3support,tiff?] |
120 |
>=x11-libs/qt-sql-4.4:4[qt3support,mysql] |
121 |
>=x11-libs/qt-opengl-4.4:4[qt3support] |
122 |
>=x11-libs/qt-webkit-4.4:4[dbus?] |
123 |
virtual/mysql |
124 |
virtual/opengl |
125 |
virtual/glu |
126 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 ) |
127 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
128 |
autostart? ( net-dialup/mingetty |
129 |
x11-wm/evilwm |
130 |
x11-apps/xset ) |
131 |
css? ( media-libs/libdvdcss ) |
132 |
dbus? ( >=x11-libs/qt-dbus-4.4:4 ) |
133 |
directv? ( virtual/perl-Time-HiRes ) |
134 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
135 |
faad? ( media-libs/faad2 ) |
136 |
fftw? ( sci-libs/fftw:3.0 ) |
137 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
138 |
>=sys-libs/libavc1394-0.5.3 |
139 |
>=media-libs/libiec61883-1.0.0 ) |
140 |
jack? ( media-sound/jack-audio-connection-kit ) |
141 |
lcd? ( app-misc/lcdproc ) |
142 |
lirc? ( app-misc/lirc ) |
143 |
perl? ( dev-perl/DBD-mysql ) |
144 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.7 ) |
145 |
python? ( dev-python/mysql-python ) |
146 |
vdpau? ( x11-libs/libvdpau ) |
147 |
xvmc? ( x11-libs/libXvMC )" |
148 |
|
149 |
DEPEND="${RDEPEND} |
150 |
app-arch/unzip |
151 |
x11-proto/xineramaproto |
152 |
x11-proto/xf86vidmodeproto |
153 |
x11-apps/xinit |
154 |
!<media-plugins/mythcontrols-0.22 |
155 |
!<x11-themes/mythtv-themes-0.22 |
156 |
!<x11-themes/mythtv-themes-extra-0.23 |
157 |
!<media-plugins/mythflix-0.23" |
158 |
|
159 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
160 |
|
161 |
pkg_setup() { |
162 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
163 |
|
164 |
if use xvmc && use video_cards_nvidia; then |
165 |
elog |
166 |
elog "For NVIDIA based cards, the XvMC renderer only works on" |
167 |
elog "the NVIDIA 4, 5, 6 & 7 series cards." |
168 |
fi |
169 |
|
170 |
# puts the SVN branch name into an environment variable that the build |
171 |
# system reads and embeds into the binaries for version info |
172 |
export URL=${MYTHTV_REPO} |
173 |
|
174 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} |
175 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
176 |
} |
177 |
|
178 |
src_prepare() { |
179 |
# puts the SVN revision into a special file that the build system |
180 |
# reads and embeds into the binaries for version info |
181 |
echo "SOURCE_VERSION=${MYTHTV_REV}" > "${S}/VERSION" |
182 |
echo "SVNREPOPATH=${MYTHTV_REPO}" >> "${S}/VERSION" |
183 |
|
184 |
# Perl bits need to go into vender_perl and not site_perl |
185 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
186 |
-i "${S}"/bindings/perl/perl.pro |
187 |
|
188 |
epatch "${FILESDIR}/${PN}-0.21-ldconfig-sanxbox-fix.patch" |
189 |
} |
190 |
|
191 |
src_configure() { |
192 |
local myconf="--prefix=/usr |
193 |
--mandir=/usr/share/man |
194 |
--libdir-name=$(get_libdir)" |
195 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
196 |
use altivec || myconf="${myconf} --disable-altivec" |
197 |
use faad && myconf="${myconf} --enable-libfaad" |
198 |
use fftw && myconf="${myconf} --enable-libfftw3" |
199 |
use jack || myconf="${myconf} --disable-audio-jack" |
200 |
use vdpau && myconf="${myconf} --enable-vdpau" |
201 |
|
202 |
#from bug #220857 and fixed for bug #292481, and bug #299063 |
203 |
use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw" |
204 |
if use video_cards_via && use xvmc; then |
205 |
myconf="${myconf} --enable-xvmc-vld --enable-xvmc-pro"; |
206 |
else |
207 |
myconf="${myconf} --disable-xvmc-vld"; |
208 |
fi |
209 |
|
210 |
# according to the Ubuntu guys, this works better being always on |
211 |
myconf="${myconf} --enable-glx-procaddrarb" |
212 |
|
213 |
myconf="${myconf} |
214 |
$(use_enable dvb) |
215 |
$(use_enable ieee1394 firewire) |
216 |
$(use_enable lirc) |
217 |
--disable-directfb |
218 |
--dvb-path=/usr/include |
219 |
--enable-opengl-vsync |
220 |
--enable-xrandr |
221 |
--enable-xv |
222 |
--enable-x11" |
223 |
|
224 |
if use mmx || use amd64; then |
225 |
myconf="${myconf} --enable-mmx" |
226 |
else |
227 |
myconf="${myconf} --disable-mmx" |
228 |
fi |
229 |
|
230 |
if use perl && use python; then |
231 |
myconf="${myconf} --with-bindings=perl,python" |
232 |
elif use perl; then |
233 |
myconf="${myconf} --with-bindings=perl" |
234 |
elif use python; then |
235 |
myconf="${myconf} --with-bindings=python" |
236 |
else |
237 |
myconf="${myconf} --without-bindings=perl,python" |
238 |
fi |
239 |
|
240 |
if use debug; then |
241 |
myconf="${myconf} --compile-type=debug" |
242 |
else |
243 |
myconf="${myconf} --compile-type=profile" |
244 |
fi |
245 |
|
246 |
## CFLAG cleaning so it compiles |
247 |
MARCH=$(get-flag "march") |
248 |
MTUNE=$(get-flag "mtune") |
249 |
#strip-flags |
250 |
#filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
251 |
#filter-flags "-O" "-O?" |
252 |
|
253 |
if [[ -n "${MARCH}" ]]; then |
254 |
myconf="${myconf} --cpu=${MARCH}" |
255 |
fi |
256 |
if [[ -n "${MTUNE}" ]]; then |
257 |
myconf="${myconf} --tune=${MTUNE}" |
258 |
fi |
259 |
|
260 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
261 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
262 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
263 |
|
264 |
# let MythTV come up with our CFLAGS. Upstream will support this |
265 |
unset CFLAGS |
266 |
unset CXXFLAGS |
267 |
einfo "Running ./configure ${myconf}" |
268 |
sh ./configure ${myconf} || die "configure died" |
269 |
} |
270 |
|
271 |
src_compile() { |
272 |
eqmake4 mythtv.pro -o "Makefile" || die "eqmake4 failed" |
273 |
emake || die "emake failed" |
274 |
|
275 |
# firewire support should build the tester |
276 |
if use ieee1394; then |
277 |
cd contrib |
278 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester \ |
279 |
development/firewire_tester/firewire_tester.c \ |
280 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
281 |
die "failed to compile firewire_tester" |
282 |
|
283 |
cd channel_changers |
284 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch \ |
285 |
6200ch/6200ch.c \ |
286 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
287 |
die "failed to compile 6200ch" |
288 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch \ |
289 |
sa3250ch/sa3250ch.c \ |
290 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
291 |
die "failed to compile sa3250ch" |
292 |
fi |
293 |
|
294 |
cd "${S}"/contrib/channel_changers |
295 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye/red_eye.c \ |
296 |
${LDFLAGS} || die "failed to compile red_eye" |
297 |
} |
298 |
|
299 |
src_install() { |
300 |
|
301 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
302 |
dodoc AUTHORS FAQ UPGRADING README |
303 |
|
304 |
insinto /usr/share/mythtv/database |
305 |
doins database/* |
306 |
|
307 |
exeinto /usr/share/mythtv |
308 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
309 |
|
310 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
311 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
312 |
|
313 |
dodoc keys.txt docs/*.{txt,pdf} |
314 |
dohtml docs/*.html |
315 |
|
316 |
keepdir /etc/mythtv |
317 |
fowners -R mythtv "${D}"/etc/mythtv |
318 |
keepdir /var/log/mythtv |
319 |
fowners -R mythtv "${D}"/var/log/mythtv |
320 |
|
321 |
insinto /etc/logrotate.d |
322 |
newins "${FILESDIR}"/mythtv.logrotate.d-r1 mythtv |
323 |
|
324 |
insinto /usr/share/mythtv/contrib |
325 |
doins -r contrib/* |
326 |
|
327 |
dobin "${FILESDIR}"/runmythfe |
328 |
|
329 |
# add icon from MythTV's website (scaled to 32x32) |
330 |
# for desktop entry |
331 |
insinto /usr/share/pixmaps |
332 |
doins "${FILESDIR}"/mythtv.png |
333 |
|
334 |
# create desktop entry for mythfrontend |
335 |
make_desktop_entry /usr/bin/mythfrontend "MythFrontend" mythtv \ |
336 |
"AudioVideo;TV;" "Path=/etc/mythtv/" |
337 |
make_desktop_entry /usr/bin/mythtv-setup "MythTV Setup" mythtv \ |
338 |
"AudioVideo;TV;" "Path=/etc/mythtv/" |
339 |
|
340 |
if use autostart; then |
341 |
dodir /etc/env.d/ |
342 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
343 |
|
344 |
insinto /home/mythtv |
345 |
newins "${FILESDIR}"/bash_profile .bash_profile |
346 |
newins "${FILESDIR}"/xinitrc .xinitrc |
347 |
fi |
348 |
|
349 |
if use ieee1394; then |
350 |
dobin firewire_tester || die "failed to install firewire_tester" |
351 |
newdoc contrib/development/firewire_tester/README README.firewire_tester |
352 |
|
353 |
dobin 6200ch || die "failed to install 6200ch" |
354 |
newdoc contrib/channel_changers/6200ch/README README.6200ch |
355 |
|
356 |
dobin sa3250ch || die "failed to install sa3250ch" |
357 |
newdoc contrib/channel_changers/sa3250ch/README README.sa3250ch |
358 |
fi |
359 |
|
360 |
dobin red_eye || die "failed to install red_eye" |
361 |
newdoc contrib/channel_changers/red_eye/README README.red_eye |
362 |
|
363 |
if use directv; then |
364 |
dobin contrib/channel_changers/d10control/d10control.pl || die "failed to install d10control" |
365 |
newdoc contrib/channel_changers/d10control/README README.d10control |
366 |
fi |
367 |
|
368 |
# correct permissions so the scripts are actually usable |
369 |
fperms 755 /usr/share/mythtv/contrib/*/*.pl |
370 |
fperms 755 /usr/share/mythtv/contrib/*/*.py |
371 |
fperms 755 /usr/share/mythtv/mythconverg_backup.pl |
372 |
fperms 755 /usr/share/mythtv/mythconverg_restore.pl |
373 |
|
374 |
} |
375 |
|
376 |
pkg_preinst() { |
377 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
378 |
} |
379 |
|
380 |
pkg_postinst() { |
381 |
use python && python_mod_optimize $(python_get_sitedir)/MythTV |
382 |
|
383 |
elog |
384 |
elog "To always have MythBackend running and available run the following:" |
385 |
elog "rc-update add mythbackend default" |
386 |
elog |
387 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
388 |
ewarn "chown -R mythtv /path/to/store" |
389 |
|
390 |
if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then |
391 |
ewarn |
392 |
ewarn "No XvMC implementation has been selected yet" |
393 |
ewarn "Use 'eselect xvmc list' for a list of available choices" |
394 |
ewarn "Then use 'eselect xvmc set <choice>' to choose" |
395 |
ewarn "'eselect xvmc set nvidia' for example" |
396 |
fi |
397 |
|
398 |
elog "Want mythfrontend to start automatically?" |
399 |
elog "Set USE=autostart. Details can be found at:" |
400 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
401 |
|
402 |
if use autostart; then |
403 |
elog |
404 |
elog "Please add the following to your /etc/inittab file at the end of" |
405 |
elog "the TERMINALS section" |
406 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
407 |
fi |
408 |
|
409 |
elog |
410 |
ewarn "Beware when you change ANY packages on your system that it may" |
411 |
ewarn "break some or all of the MythTV components. MythTV's build system" |
412 |
ewarn "is very fragile and only supports automagic dependencies." |
413 |
ewarn "i.e. It depends on libraries and components it finds at build time" |
414 |
ewarn "We try to mitigate this with RDEPENDs but be prepared to run" |
415 |
ewarn "revdep-rebuild as necessary." |
416 |
|
417 |
} |
418 |
|
419 |
pkg_postrm() |
420 |
{ |
421 |
use python && python_mod_cleanup $(python_get_sitedir)/MythTV |
422 |
} |
423 |
|
424 |
pkg_info() { |
425 |
"${ROOT}"/usr/bin/mythfrontend --version |
426 |
} |
427 |
|
428 |
pkg_config() { |
429 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
430 |
echo "already exist. You will be prompted for your MySQL root password." |
431 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
432 |
} |