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: mythtv-0.23.1_p26437.ebuild ChangeLog
Date: Fri, 01 Oct 2010 03:18:36
Message-Id: 20101001031830.D7E112004C@flycatcher.gentoo.org
1 cardoe 10/10/01 03:18:30
2
3 Modified: ChangeLog
4 Added: mythtv-0.23.1_p26437.ebuild
5 Log:
6 Upstream version bump. Fix compilation with Qt 4.7 (bug #338613)
7
8 (Portage version: 2.1.9.12/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.329 media-tv/mythtv/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.329&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.329&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.328&r2=1.329
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
20 retrieving revision 1.328
21 retrieving revision 1.329
22 diff -u -r1.328 -r1.329
23 --- ChangeLog 30 Jul 2010 16:48:55 -0000 1.328
24 +++ ChangeLog 1 Oct 2010 03:18:30 -0000 1.329
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-tv/mythtv
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.328 2010/07/30 16:48:55 cardoe Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.329 2010/10/01 03:18:30 cardoe Exp $
30 +
31 +*mythtv-0.23.1_p26437 (01 Oct 2010)
32 +
33 + 01 Oct 2010; Doug Goldstein <cardoe@g.o>
34 + +mythtv-0.23.1_p26437.ebuild:
35 + Upstream version bump. Fix compilation with Qt 4.7 (bug #338613)
36
37 *mythtv-0.23.1_p25496 (30 Jul 2010)
38
39
40
41
42 1.1 media-tv/mythtv/mythtv-0.23.1_p26437.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p26437.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.23.1_p26437.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mythtv-0.23.1_p26437.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_p26437.ebuild,v 1.1 2010/10/01 03:18:30 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 echo "SVNREPOPATH=${MYTHTV_REPO}" >> "${S}/VERSION"
141
142 # Perl bits need to go into vender_perl and not site_perl
143 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
144 -i "${S}"/bindings/perl/perl.pro
145
146 epatch "${FILESDIR}/${PN}-0.21-ldconfig-sanxbox-fix.patch"
147 }
148
149 src_configure() {
150 local myconf="--prefix=/usr
151 --mandir=/usr/share/man
152 --libdir-name=$(get_libdir)"
153 use alsa || myconf="${myconf} --disable-audio-alsa"
154 use altivec || myconf="${myconf} --disable-altivec"
155 use faad && myconf="${myconf} --enable-libfaad"
156 use fftw && myconf="${myconf} --enable-libfftw3"
157 use jack || myconf="${myconf} --disable-audio-jack"
158 use vdpau && myconf="${myconf} --enable-vdpau"
159
160 #from bug #220857 and fixed for bug #292481, and bug #299063
161 use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw"
162 if use video_cards_via && use xvmc; then
163 myconf="${myconf} --enable-xvmc-vld --enable-xvmc-pro";
164 else
165 myconf="${myconf} --disable-xvmc-vld";
166 fi
167
168 # according to the Ubuntu guys, this works better being always on
169 myconf="${myconf} --enable-glx-procaddrarb"
170
171 myconf="${myconf}
172 $(use_enable dvb)
173 $(use_enable ieee1394 firewire)
174 $(use_enable lirc)
175 --disable-directfb
176 --dvb-path=/usr/include
177 --enable-opengl-vsync
178 --enable-xrandr
179 --enable-xv
180 --enable-x11"
181
182 if use mmx || use amd64; then
183 myconf="${myconf} --enable-mmx"
184 else
185 myconf="${myconf} --disable-mmx"
186 fi
187
188 if use perl && use python; then
189 myconf="${myconf} --with-bindings=perl,python"
190 elif use perl; then
191 myconf="${myconf} --with-bindings=perl"
192 elif use python; then
193 myconf="${myconf} --with-bindings=python"
194 else
195 myconf="${myconf} --without-bindings=perl,python"
196 fi
197
198 if use debug; then
199 myconf="${myconf} --compile-type=debug"
200 else
201 myconf="${myconf} --compile-type=profile"
202 fi
203
204 ## CFLAG cleaning so it compiles
205 MARCH=$(get-flag "march")
206 MTUNE=$(get-flag "mtune")
207 #strip-flags
208 #filter-flags "-march=*" "-mtune=*" "-mcpu=*"
209 #filter-flags "-O" "-O?"
210
211 if [[ -n "${MARCH}" ]]; then
212 myconf="${myconf} --cpu=${MARCH}"
213 fi
214 if [[ -n "${MTUNE}" ]]; then
215 myconf="${myconf} --tune=${MTUNE}"
216 fi
217
218 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
219 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
220 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
221
222 # let MythTV come up with our CFLAGS. Upstream will support this
223 unset CFLAGS
224 unset CXXFLAGS
225 einfo "Running ./configure ${myconf}"
226 sh ./configure ${myconf} || die "configure died"
227 }
228
229 src_compile() {
230 eqmake4 mythtv.pro -o "Makefile" || die "eqmake4 failed"
231 emake || die "emake failed"
232
233 # firewire support should build the tester
234 if use ieee1394; then
235 cd contrib
236 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester \
237 development/firewire_tester/firewire_tester.c \
238 ${LDFLAGS} -liec61883 -lraw1394 || \
239 die "failed to compile firewire_tester"
240
241 cd channel_changers
242 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch \
243 6200ch/6200ch.c \
244 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
245 die "failed to compile 6200ch"
246 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch \
247 sa3250ch/sa3250ch.c \
248 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
249 die "failed to compile sa3250ch"
250 fi
251
252 cd "${S}"/contrib/channel_changers
253 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye/red_eye.c \
254 ${LDFLAGS} || die "failed to compile red_eye"
255 }
256
257 src_install() {
258
259 einstall INSTALL_ROOT="${D}" || die "install failed"
260 dodoc AUTHORS FAQ UPGRADING README
261
262 insinto /usr/share/mythtv/database
263 doins database/*
264
265 exeinto /usr/share/mythtv
266 doexe "${FILESDIR}/mythfilldatabase.cron"
267
268 newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
269 newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend
270
271 dodoc keys.txt docs/*.{txt,pdf}
272 dohtml docs/*.html
273
274 keepdir /etc/mythtv
275 fowners -R mythtv "${D}"/etc/mythtv
276 keepdir /var/log/mythtv
277 fowners -R mythtv "${D}"/var/log/mythtv
278
279 insinto /etc/logrotate.d
280 newins "${FILESDIR}"/mythtv.logrotate.d-r1 mythtv
281
282 insinto /usr/share/mythtv/contrib
283 doins -r contrib/*
284
285 dobin "${FILESDIR}"/runmythfe
286
287 # add icon from MythTV's website (scaled to 32x32)
288 # for desktop entry
289 insinto /usr/share/pixmaps
290 doins "${FILESDIR}"/mythtv.png
291
292 # create desktop entry for mythfrontend
293 make_desktop_entry /usr/bin/mythfrontend "MythFrontend" mythtv \
294 "AudioVideo;TV;" "Path=/etc/mythtv/"
295 make_desktop_entry /usr/bin/mythtv-setup "MythTV Setup" mythtv \
296 "AudioVideo;TV;" "Path=/etc/mythtv/"
297
298 if use autostart; then
299 dodir /etc/env.d/
300 echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv
301
302 insinto /home/mythtv
303 newins "${FILESDIR}"/bash_profile .bash_profile
304 newins "${FILESDIR}"/xinitrc .xinitrc
305 fi
306
307 if use ieee1394; then
308 dobin firewire_tester || die "failed to install firewire_tester"
309 newdoc contrib/development/firewire_tester/README README.firewire_tester
310
311 dobin 6200ch || die "failed to install 6200ch"
312 newdoc contrib/channel_changers/6200ch/README README.6200ch
313
314 dobin sa3250ch || die "failed to install sa3250ch"
315 newdoc contrib/channel_changers/sa3250ch/README README.sa3250ch
316 fi
317
318 dobin red_eye || die "failed to install red_eye"
319 newdoc contrib/channel_changers/red_eye/README README.red_eye
320
321 if use directv; then
322 dobin contrib/channel_changers/d10control/d10control.pl || die "failed to install d10control"
323 newdoc contrib/channel_changers/d10control/README README.d10control
324 fi
325
326 # correct permissions so the scripts are actually usable
327 fperms 755 /usr/share/mythtv/contrib/*/*.pl
328 fperms 755 /usr/share/mythtv/contrib/*/*.py
329 fperms 755 /usr/share/mythtv/mythconverg_backup.pl
330 fperms 755 /usr/share/mythtv/mythconverg_restore.pl
331
332 }
333
334 pkg_preinst() {
335 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
336 }
337
338 pkg_postinst() {
339 use python && python_mod_optimize $(python_get_sitedir)/MythTV
340
341 elog
342 elog "To always have MythBackend running and available run the following:"
343 elog "rc-update add mythbackend default"
344 elog
345 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
346 ewarn "chown -R mythtv /path/to/store"
347
348 if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then
349 ewarn
350 ewarn "No XvMC implementation has been selected yet"
351 ewarn "Use 'eselect xvmc list' for a list of available choices"
352 ewarn "Then use 'eselect xvmc set <choice>' to choose"
353 ewarn "'eselect xvmc set nvidia' for example"
354 fi
355
356 elog "Want mythfrontend to start automatically?"
357 elog "Set USE=autostart. Details can be found at:"
358 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
359
360 if use autostart; then
361 elog
362 elog "Please add the following to your /etc/inittab file at the end of"
363 elog "the TERMINALS section"
364 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
365 fi
366
367 elog
368 ewarn "Beware when you change ANY packages on your system that it may"
369 ewarn "break some or all of the MythTV components. MythTV's build system"
370 ewarn "is very fragile and only supports automagic dependencies."
371 ewarn "i.e. It depends on libraries and components it finds at build time"
372 ewarn "We try to mitigate this with RDEPENDs but be prepared to run"
373 ewarn "revdep-rebuild as necessary."
374
375 }
376
377 pkg_postrm()
378 {
379 use python && python_mod_cleanup $(python_get_sitedir)/MythTV
380 }
381
382 pkg_info() {
383 "${ROOT}"/usr/bin/mythfrontend --version
384 }
385
386 pkg_config() {
387 echo "Creating mythtv MySQL user and mythconverg database if it does not"
388 echo "already exist. You will be prompted for your MySQL root password."
389 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
390 }