Gentoo Archives: gentoo-commits

From: "Doug Klima (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.21_p16812.ebuild
Date: Fri, 28 Mar 2008 16:04:05
Message-Id: E1JfH3i-0000o3-1t@stork.gentoo.org
1 cardoe 08/03/28 16:04:02
2
3 Modified: ChangeLog
4 Added: mythtv-0.21_p16812.ebuild
5 Log:
6 various DVD, Xinerama and playback pausing fixes
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.228 media-tv/mythtv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.228&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.228&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.227&r2=1.228
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
19 retrieving revision 1.227
20 retrieving revision 1.228
21 diff -u -r1.227 -r1.228
22 --- ChangeLog 25 Mar 2008 20:03:51 -0000 1.227
23 +++ ChangeLog 28 Mar 2008 16:04:01 -0000 1.228
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-tv/mythtv
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.227 2008/03/25 20:03:51 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.228 2008/03/28 16:04:01 cardoe Exp $
29 +
30 +*mythtv-0.21_p16812 (28 Mar 2008)
31 +
32 + 28 Mar 2008; Doug Goldstein <cardoe@g.o>
33 + +mythtv-0.21_p16812.ebuild:
34 + various DVD, Xinerama and playback pausing fixes
35
36 *mythtv-0.22_alpha16791 (25 Mar 2008)
37
38
39
40
41 1.1 media-tv/mythtv/mythtv-0.21_p16812.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p16812.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p16812.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mythtv-0.21_p16812.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.21_p16812.ebuild,v 1.1 2008/03/28 16:04:01 cardoe Exp $
51
52 EAPI=1
53 inherit flag-o-matic multilib eutils qt3 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="aac alsa altivec autostart dbox2 debug directv dvb dvd hdhomerun ieee1394 iptv \
61 ivtv jack joystick lcd lirc mmx opengl opengl-video opengl-xvmc perl python \
62 vorbis xvmc ${IUSE_VIDEO_CARDS}"
63
64 RDEPEND=">=media-libs/freetype-2.0
65 >=media-sound/lame-3.93.1
66 x11-libs/libX11
67 x11-libs/libXext
68 x11-libs/libXinerama
69 x11-libs/libXv
70 x11-libs/libXrandr
71 x11-libs/libXxf86vm
72 >=x11-libs/qt-3.3:3
73 virtual/mysql
74 virtual/opengl
75 virtual/glu
76 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 )
77 aac? ( media-libs/faad2 )
78 alsa? ( >=media-libs/alsa-lib-0.9 )
79 autostart? ( net-dialup/mingetty
80 x11-wm/evilwm
81 x11-apps/xset )
82 directv? ( virtual/perl-Time-HiRes )
83 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
84 dvd? ( media-libs/libdvdnav )
85 ieee1394? ( >=sys-libs/libraw1394-1.2.0
86 >=sys-libs/libavc1394-0.5.0
87 >=media-libs/libiec61883-1.0.0 )
88 ivtv? ( media-tv/ivtv )
89 jack? ( media-sound/jack-audio-connection-kit )
90 lcd? ( app-misc/lcdproc )
91 lirc? ( app-misc/lirc )
92 perl? ( dev-perl/DBD-mysql )
93 python? ( dev-python/mysql-python )
94 opengl-xvmc? ( >=x11-drivers/nvidia-drivers-100 )
95 xvmc? ( x11-libs/libXvMC
96 app-admin/eselect-xvmc )"
97
98 DEPEND="${RDEPEND}
99 x11-proto/xineramaproto
100 x11-proto/xf86vidmodeproto
101 x11-apps/xinit"
102
103 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
104
105 S="${WORKDIR}/${PN}-${MY_PV}"
106
107 MYTHTV_GROUPS="video,audio,tty,uucp"
108
109 pkg_setup() {
110
111 if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
112 echo
113 eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled."
114 eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set."
115 echo
116 die "Please fix the above issues, before continuing."
117 fi
118
119 echo
120 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
121 einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped"
122 einfo "Only additional CFLAG issues that will be addressed are for binary"
123 einfo "package building."
124 echo
125
126 if use xvmc && use opengl-xvmc ; then
127 einfo "Enabling USE=opengl-xvmc results in an experimental OpenGL"
128 einfo "& XvMC renderer that only works on NVIDIA GeForce 4,5,6, & 7"
129 einfo "series of cards. It is typically slower then stock XVideo"
130 einfo "support that is the default in MythTV."
131 echo
132 fi
133
134 if use opengl-video ; then
135 einfo "Enabling USE=opengl-video results in an experimental OpenGL"
136 einfo "renderer that is typically slower then the default XVideo"
137 einfo "renderer. Enable at your own risk."
138 echo
139 fi
140
141 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user"
142 usermod -a -G ${MYTHTV_GROUPS} mythtv
143 }
144
145 src_unpack() {
146 subversion_src_unpack
147
148 # upstream wants the revision number in their version.cpp
149 # since the subversion.eclass strips out the .svn directory
150 # svnversion in MythTV's build doesn't work
151 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \
152 -i "${S}"/version.pro || die "svnversion sed failed"
153
154 # Perl bits need to go into vender_perl and not site_perl
155 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
156 -i "${S}"/bindings/perl/perl.pro
157 }
158
159 src_compile() {
160 local myconf="--prefix=/usr
161 --mandir=/usr/share/man
162 --libdir-name=$(get_libdir)"
163 use aac && myconf="${myconf} --enable-libfaad"
164 use alsa || myconf="${myconf} --disable-audio-alsa"
165 use altivec || myconf="${myconf} --disable-altivec"
166 use dbox2 || myconf="${myconf} --disable-dbox2"
167 use hdhomerun || myconf="${myconf} --disable-hdhomerun"
168 use ivtv || myconf="${myconf} --disable-ivtv"
169 use jack || myconf="${myconf} --disable-audio-jack"
170 use opengl-video && myconf="${myconf} --enable-opengl-video"
171 use xvmc && ! use video_cards_via ! use opengl-xvmc && myconf="${myconf} --enable-xvmc --xvmc-lib=XvMCW"
172 use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc --enable-xvmc-pro"
173 use xvmc && use video_cards_nvidia && use opengl-xvmc && myconf="${myconf} --enable-xvmc --enable-xvmc-opengl"
174 myconf="${myconf}
175 $(use_enable dvb)
176 $(use_enable ieee1394 firewire)
177 $(use_enable iptv)
178 $(use_enable joystick joystick-menu)
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 --enable-gpl"
188
189 if use mmx || use amd64; then
190 myconf="${myconf} --enable-mmx"
191 else
192 myconf="${myconf} --disable-mmx"
193 fi
194
195 if use perl && use python; then
196 myconf="${myconf} --with-bindings=perl,python"
197 elif use perl; then
198 myconf="${myconf} --with-bindings=perl"
199 elif use python; then
200 myconf="${myconf} --with-bindings=python"
201 else
202 myconf="${myconf} --without-bindings=perl,python"
203 fi
204
205 if use debug; then
206 myconf="${myconf} --compile-type=debug"
207 else
208 myconf="${myconf} --compile-type=profile"
209 fi
210
211 ## CFLAG cleaning so it compiles
212 MARCH=$(get-flag "march")
213 MTUNE=$(get-flag "mtune")
214 strip-flags
215 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
216 filter-flags "-O" "-O?"
217
218 if [[ -n "${MARCH}" ]]; then
219 myconf="${myconf} --cpu=${MARCH}"
220 fi
221 if [[ -n "${MTUNE}" ]]; then
222 myconf="${myconf} --tune=${MTUNE}"
223 fi
224
225 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
226 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
227 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
228
229 # let MythTV come up with our CFLAGS. Upstream will support this
230 CFLAGS=""
231 CXXFLAGS=""
232 einfo "Running ./configure ${myconf}"
233 ./configure ${myconf} || die "configure died"
234
235 eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed"
236 emake || die "emake failed"
237
238 # firewire support should build the tester
239 if use ieee1394; then
240 cd contrib
241 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
242 ${LDFLAGS} -liec61883 -lraw1394 || \
243 die "failed to compile firewire_tester"
244
245 cd channel_changers
246 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
247 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
248 die "failed to compile 6200ch"
249 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
250 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
251 die "failed to compile sa3250ch"
252 fi
253
254 cd "${S}"/contrib/channel_changers
255 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
256 die "failed to compile red_eye"
257 }
258
259 src_install() {
260
261 einstall INSTALL_ROOT="${D}" || die "install failed"
262 dodoc AUTHORS FAQ UPGRADING README
263
264 insinto /usr/share/mythtv/database
265 doins database/*
266
267 exeinto /usr/share/mythtv
268 doexe "${FILESDIR}/mythfilldatabase.cron"
269
270 newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
271 newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend
272
273 dodoc keys.txt docs/*.{txt,pdf}
274 dohtml docs/*.html
275
276 keepdir /etc/mythtv
277 chown -R mythtv "${D}"/etc/mythtv
278 keepdir /var/log/mythtv
279 chown -R mythtv "${D}"/var/log/mythtv
280
281 insinto /etc/logrotate.d
282 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
283
284 insinto /usr/share/mythtv/contrib
285 doins -r contrib/*
286
287 dobin "${FILESDIR}"/runmythfe
288
289 if use autostart; then
290 dodir /etc/env.d/
291 echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv
292
293 insinto /home/mythtv
294 newins "${FILESDIR}"/bash_profile .bash_profile
295 newins "${FILESDIR}"/xinitrc .xinitrc
296 fi
297
298 if use ieee1394; then
299 dobin firewire_tester || die "failed to install firewire_tester"
300 dodoc contrib/firewire_tester-README
301
302 dobin 6200ch || die "failed to install 6200ch"
303 dodoc contrib/channel_changers/6200ch-README
304
305 dobin sa3250ch || die "failed to install sa3250ch"
306 dodoc contrib/channel_changers/sa3250ch-README
307 fi
308
309 dobin red_eye || die "failed to install red_eye"
310 dodoc contrib/channel_changers/red_eye-README
311
312 if use directv; then
313 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
314 dodoc contrib/channel_changers/d10control-README
315 fi
316 }
317
318 pkg_preinst() {
319 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
320 }
321
322 pkg_postinst() {
323 python_version
324 python_mod_optimize "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/MythTV"
325
326 echo
327 elog "Want mythfrontend to start automatically?"
328 elog "Set USE=autostart. Details can be found at:"
329 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
330
331 echo
332 elog "To always have MythBackend running and available run the following:"
333 elog "rc-update add mythbackend default"
334 echo
335 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
336 ewarn "chown -R mythtv /path/to/store"
337
338 if use xvmc; then
339 echo
340 elog "Please set the proper XvMC provider with eselect xvmc"
341 fi
342
343 if use autostart; then
344 echo
345 elog "Please add the following to your /etc/inittab file at the end of"
346 elog "the TERMINALS section"
347 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
348 fi
349
350 }
351
352 pkg_postrm()
353 {
354 python_version
355 python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/MythTV"
356 }
357
358 pkg_info() {
359 "${ROOT}"/usr/bin/mythfrontend --version
360 }
361
362 pkg_config() {
363 echo "Creating mythtv MySQL user and mythconverg database if it does not"
364 echo "already exist. You will be prompted for your MySQL root password."
365 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
366 }
367
368
369
370 --
371 gentoo-commits@l.g.o mailing list