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