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