Gentoo Archives: gentoo-commits

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