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.22_p24255.ebuild
Date: Tue, 04 May 2010 01:13:56
Message-Id: 20100504011350.98F712C3D2@corvid.gentoo.org
1 cardoe 10/05/04 01:13:50
2
3 Modified: ChangeLog
4 Added: mythtv-0.22_p24255.ebuild
5 Log:
6 bump the version to a much newer version that contains numerous fixes.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.316 media-tv/mythtv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.316&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.316&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.315&r2=1.316
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
19 retrieving revision 1.315
20 retrieving revision 1.316
21 diff -u -r1.315 -r1.316
22 --- ChangeLog 23 Mar 2010 03:43:52 -0000 1.315
23 +++ ChangeLog 4 May 2010 01:13:50 -0000 1.316
24 @@ -1,6 +1,12 @@
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.315 2010/03/23 03:43:52 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.316 2010/05/04 01:13:50 cardoe Exp $
29 +
30 +*mythtv-0.22_p24255 (04 May 2010)
31 +
32 + 04 May 2010; Doug Goldstein <cardoe@g.o>
33 + +mythtv-0.22_p24255.ebuild:
34 + bump the version to a much newer version that contains numerous fixes.
35
36 23 Mar 2010; Mike Frysinger <vapier@g.o>
37 mythtv-0.22_p22824-r1.ebuild, mythtv-0.22_p22860.ebuild,
38
39
40
41 1.1 media-tv/mythtv/mythtv-0.22_p24255.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_p24255.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_p24255.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mythtv-0.22_p24255.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.22_p24255.ebuild,v 1.1 2010/05/04 01:13:50 cardoe Exp $
51
52 EAPI=2
53 inherit flag-o-matic multilib eutils qt4 mythtv toolchain-funcs python
54
55 DESCRIPTION="Homebrew PVR project"
56 SLOT="0"
57 KEYWORDS="~amd64 ~ppc ~x86"
58
59 IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_via"
60 IUSE="alsa altivec autostart +css debug directv dvb faad \
61 fftw ieee1394 jack lcd lirc mmx perl pulseaudio python \
62 tiff vdpau xvmc ${IUSE_VIDEO_CARDS}"
63
64 # fonts from bug #296222
65 RDEPEND="media-fonts/corefonts
66 media-fonts/dejavu
67 >=media-libs/freetype-2.0
68 >=media-sound/lame-3.93.1
69 x11-libs/libX11
70 x11-libs/libXext
71 x11-libs/libXinerama
72 x11-libs/libXv
73 x11-libs/libXrandr
74 x11-libs/libXxf86vm
75 >=x11-libs/qt-core-4.4:4[qt3support]
76 >=x11-libs/qt-gui-4.4:4[qt3support,tiff?]
77 >=x11-libs/qt-sql-4.4:4[qt3support,mysql]
78 >=x11-libs/qt-opengl-4.4:4[qt3support]
79 >=x11-libs/qt-webkit-4.4:4
80 virtual/mysql
81 virtual/opengl
82 virtual/glu
83 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 )
84 alsa? ( >=media-libs/alsa-lib-0.9 )
85 autostart? ( net-dialup/mingetty
86 x11-wm/evilwm
87 x11-apps/xset )
88 css? ( media-libs/libdvdcss )
89 directv? ( virtual/perl-Time-HiRes )
90 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
91 faad? ( media-libs/faad2 )
92 fftw? ( sci-libs/fftw:3.0 )
93 ieee1394? ( >=sys-libs/libraw1394-1.2.0
94 >=sys-libs/libavc1394-0.5.3
95 >=media-libs/libiec61883-1.0.0 )
96 jack? ( media-sound/jack-audio-connection-kit )
97 lcd? ( app-misc/lcdproc )
98 lirc? ( app-misc/lirc )
99 perl? ( dev-perl/DBD-mysql )
100 pulseaudio? ( >=media-sound/pulseaudio-0.9.7 )
101 python? ( dev-python/mysql-python )
102 vdpau? ( x11-libs/libvdpau )
103 xvmc? ( x11-libs/libXvMC )"
104
105 DEPEND="${RDEPEND}
106 app-arch/unzip
107 x11-proto/xineramaproto
108 x11-proto/xf86vidmodeproto
109 x11-apps/xinit
110 !<media-plugins/mythcontrols-0.22
111 !<x11-themes/mythtv-themes-0.22
112 !<x11-themes/mythtv-themes-extra-0.22"
113
114 MYTHTV_GROUPS="video,audio,tty,uucp"
115
116 pkg_setup() {
117 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
118
119 if use xvmc && use video_cards_nvidia; then
120 elog
121 elog "For NVIDIA based cards, the XvMC renderer only works on"
122 elog "the NVIDIA 4, 5, 6 & 7 series cards."
123 fi
124
125 # puts the SVN branch name into an environment variable that the build
126 # system reads and embeds into the binaries for version info
127 export URL=${MYTHTV_REPO}
128
129 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}
130 usermod -a -G ${MYTHTV_GROUPS} mythtv
131 }
132
133 src_prepare() {
134 # puts the SVN revision into a special file that the build system
135 # reads and embeds into the binaries for version info
136 echo "SOURCE_VERSION=${MYTHTV_REV}" > "${S}/VERSION"
137
138 # Perl bits need to go into vender_perl and not site_perl
139 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
140 -i "${S}"/bindings/perl/perl.pro
141
142 epatch "${FILESDIR}/${PN}-0.21-ldconfig-sanxbox-fix.patch"
143
144 # fix for bug #292421 & #279944
145 epatch "${FILESDIR}/${PN}-0.22-x86-no-fpic.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-audio-arts
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/mythconverg_backup.pl
329 fperms 755 /usr/share/mythtv/mythconverg_restore.pl
330
331 }
332
333 pkg_preinst() {
334 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
335 }
336
337 pkg_postinst() {
338 use python && python_mod_optimize $(python_get_sitedir)/MythTV
339
340 elog
341 elog "To always have MythBackend running and available run the following:"
342 elog "rc-update add mythbackend default"
343 elog
344 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
345 ewarn "chown -R mythtv /path/to/store"
346
347 if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then
348 ewarn
349 ewarn "No XvMC implementation has been selected yet"
350 ewarn "Use 'eselect xvmc list' for a list of available choices"
351 ewarn "Then use 'eselect xvmc set <choice>' to choose"
352 ewarn "'eselect xvmc set nvidia' for example"
353 fi
354
355 elog "Want mythfrontend to start automatically?"
356 elog "Set USE=autostart. Details can be found at:"
357 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
358
359 if use autostart; then
360 elog
361 elog "Please add the following to your /etc/inittab file at the end of"
362 elog "the TERMINALS section"
363 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
364 fi
365
366 elog
367 ewarn "Beware when you change ANY packages on your system that it may"
368 ewarn "break some or all of the MythTV components. MythTV's build system"
369 ewarn "is very fragile and only supports automagic dependencies."
370 ewarn "i.e. It depends on libraries and components it finds at build time"
371 ewarn "We try to mitigate this with RDEPENDs but be prepared to run"
372 ewarn "revdep-rebuild as necessary."
373
374 }
375
376 pkg_postrm()
377 {
378 use python && python_mod_cleanup $(python_get_sitedir)/MythTV
379 }
380
381 pkg_info() {
382 "${ROOT}"/usr/bin/mythfrontend --version
383 }
384
385 pkg_config() {
386 echo "Creating mythtv MySQL user and mythconverg database if it does not"
387 echo "already exist. You will be prompted for your MySQL root password."
388 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
389 }