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.20.2_p14498.ebuild mythtv-0.20.2_p14472.ebuild
Date: Fri, 21 Sep 2007 16:53:32
Message-Id: E1IYld7-0005W1-Gb@stork.gentoo.org
1 cardoe 07/09/21 16:45:25
2
3 Modified: ChangeLog
4 Added: mythtv-0.20.2_p14498.ebuild
5 Removed: mythtv-0.20.2_p14472.ebuild
6 Log:
7 upstream rev bump to fix new/report issues. fix USE=dvd depends not to require libdts
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.188 media-tv/mythtv/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.188&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.188&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.187&r2=1.188
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
20 retrieving revision 1.187
21 retrieving revision 1.188
22 diff -u -r1.187 -r1.188
23 --- ChangeLog 20 Sep 2007 05:25:15 -0000 1.187
24 +++ ChangeLog 21 Sep 2007 16:45:25 -0000 1.188
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-tv/mythtv
27 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.187 2007/09/20 05:25:15 beandog Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.188 2007/09/21 16:45:25 cardoe Exp $
30 +
31 +*mythtv-0.20.2_p14498 (21 Sep 2007)
32 +
33 + 21 Sep 2007; Doug Goldstein <cardoe@g.o>
34 + -mythtv-0.20.2_p14472.ebuild, +mythtv-0.20.2_p14498.ebuild:
35 + upstream rev bump to fix new/report issues. fix USE=dvd depends not to
36 + require libdts
37
38 *mythtv-0.21_pre14480-r1 (20 Sep 2007)
39 *mythtv-0.20.2_p14472-r1 (20 Sep 2007)
40
41
42
43 1.1 media-tv/mythtv/mythtv-0.20.2_p14498.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14498.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14498.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mythtv-0.20.2_p14498.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14498.ebuild,v 1.1 2007/09/21 16:45:25 cardoe Exp $
53
54 inherit mythtv flag-o-matic multilib eutils qt3 subversion toolchain-funcs
55
56 DESCRIPTION="Homebrew PVR project"
57 SLOT="0"
58 KEYWORDS="~amd64 ~ppc ~x86"
59
60 IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via"
61
62 IUSE="alsa altivec autostart backendonly crciprec dbox2 debug directv dts dvb dvd freebox frontendonly hdhomerun ieee1394 ivtv jack joystick lcd lirc mmx vorbis opengl perl 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 xvmc? (
73 x11-libs/libXvMC
74 video_cards_nvidia? ( x11-drivers/nvidia-drivers )
75 video_cards_via? ( x11-drivers/xf86-video-via )
76 video_cards_i810? ( x11-drivers/xf86-video-i810 )
77 )
78 $(qt_min_version 3.3)
79 virtual/mysql
80 virtual/opengl
81 virtual/glu
82 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )
83 alsa? ( >=media-libs/alsa-lib-0.9 )
84 dts? ( || ( media-libs/libdca media-libs/libdts ) )
85 dvd? ( media-libs/libdvdnav )
86 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
87 directv? ( virtual/perl-Time-HiRes )
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 vorbis? ( media-libs/libvorbis )
94 ieee1394? ( >=sys-libs/libraw1394-1.2.0
95 >=sys-libs/libavc1394-0.5.0
96 >=media-libs/libiec61883-1.0.0 )
97 autostart? ( net-dialup/mingetty
98 x11-wm/evilwm
99 x11-apps/xset )"
100
101 DEPEND="${RDEPEND}
102 x11-proto/xineramaproto
103 x11-proto/xf86vidmodeproto
104 x11-apps/xinit"
105
106 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
107
108 S="${WORKDIR}/${PN}-${MY_PV}"
109
110 MYTHTV_GROUPS="video,audio,tty,uucp"
111
112 pkg_setup() {
113
114 local rip=0
115 if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
116 echo
117 eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled."
118 eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set."
119 echo
120 rip=1
121 fi
122
123 if use xvmc && use video_cards_nvidia; then
124 echo
125 ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or"
126 ewarn "greater to use this. Otherwise, you'll have crashes with MythTV"
127 echo
128 fi
129
130 if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then
131 echo
132 eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either"
133 eerror "an nVidia, Intel i810, or VIA video card."
134 echo
135 rip=1
136 fi
137
138 if use autostart && use backendonly; then
139 echo
140 eerror "You can't have USE=autostart while having USE=backendonly."
141 eerror "USE=autostart is for mythfrontend"
142 echo
143 rip=1
144 fi
145
146 [[ $rip == 1 ]] && die "Please fix the above issues, before continuing."
147
148 echo
149 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
150 einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped"
151 einfo "Only additional CFLAG issues that will be addressed are for binary"
152 einfo "package building."
153 echo
154 }
155
156 src_unpack() {
157 subversion_src_unpack
158
159 # As needed fix since they don't know how to write qmake let alone a real
160 # make system
161 epatch "${FILESDIR}"/${PN}-0.20-as-needed.patch
162
163 # upstream wants the revision number in their version.cpp
164 # since the subversion.eclass strips out the .svn directory
165 # svnversion in MythTV's build doesn't work
166 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${SVNREV}:" \
167 -i "${S}"/version.pro || die "svnversion sed failed"
168 }
169
170 src_compile() {
171 local myconf="--prefix=/usr
172 --mandir=/usr/share/man
173 --libdir-name=$(get_libdir)"
174 use alsa || myconf="${myconf} --disable-audio-alsa"
175 use jack || myconf="${myconf} --disable-audio-jack"
176 use dts || myconf="${myconf} --disable-dts"
177 use freebox || myconf="${myconf} --disable-freebox"
178 use dbox2 || myconf="${myconf} --disable-dbox2"
179 use hdhomerun || myconf="${myconf} --disable-hdhomerun"
180 use crciprec || myconf="${myconf} --disable-crciprec"
181 use altivec || myconf="${myconf} --disable-altivec"
182 use xvmc && myconf="${myconf} --enable-xvmc"
183 use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro"
184 use perl && myconf="${myconf} --with-bindings=perl"
185 myconf="${myconf}
186 --disable-audio-arts
187 $(use_enable lirc)
188 $(use_enable joystick joystick-menu)
189 $(use_enable dvb)
190 --dvb-path=/usr/include
191 $(use_enable opengl opengl-vsync)
192 $(use_enable ieee1394 firewire)
193 --enable-xrandr
194 --enable-xv
195 --disable-directfb
196 --enable-x11
197 --enable-proc-opt"
198
199 if use mmx || use amd64; then
200 myconf="${myconf} --enable-mmx"
201 else
202 myconf="${myconf} --disable-mmx"
203 fi
204
205 if use debug; then
206 myconf="${myconf} --compile-type=debug"
207 else
208 myconf="${myconf} --compile-type=release"
209 fi
210
211 ## CFLAG cleaning so it compiles
212 MARCH=$(get-flag "march")
213 MTUNE=$(get-flag "mtune")
214 MCPU=$(get-flag "mcpu")
215 strip-flags
216 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
217 filter-flags "-O" "-O?"
218
219 if [[ -n "${MARCH}" ]]; then
220 myconf="${myconf} --arch=${MARCH}"
221 fi
222 if [[ -n "${MTUNE}" ]]; then
223 myconf="${myconf} --tune=${MTUNE}"
224 fi
225 if [[ -n "${MCPU}" ]]; then
226 myconf="${myconf} --cpu=${MCPU}"
227 fi
228
229 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
230 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
231 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
232
233 if use frontendonly; then
234 ##Backend Removal
235 ewarn
236 ewarn "You are using the experimental feature for only installing the frontend."
237 ewarn "You will not get Gentoo support nor support from MythTV upstream for this."
238 ewarn "If this breaks, you own both pieces."
239 ewarn
240 myconf="${myconf} --disable-backend"
241 fi
242
243 if use backendonly; then
244 ##Frontend Removal
245 ewarn
246 ewarn "You are using the experimental feature for only installing the backend."
247 ewarn "You will not get Gentoo support nor support from MythTV upstream for this."
248 ewarn "If this breaks, you own both pieces."
249 ewarn
250 myconf="${myconf} --disable-frontend"
251 fi
252
253 # let MythTV come up with our CFLAGS. Upstream will support this
254 CFLAGS=""
255 CXXFLAGS=""
256 einfo "Running ./configure ${myconf}"
257 ./configure ${myconf} || die "configure died"
258
259 ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed"
260 emake || die "emake failed"
261
262 # firewire support should build the tester
263 if use ieee1394; then
264 cd contrib
265 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
266 ${LDFLAGS} -liec61883 -lraw1394 || \
267 die "failed to compile firewire_tester"
268
269 cd channel_changers
270 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
271 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
272 die "failed to compile 6200ch"
273 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
274 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
275 die "failed to compile sa3250ch"
276 # LDLIBS="-liec61883 -lraw1394" CC=$(tc-getCC) emake firewire_tester || \
277 # die "failed to compile firewire_tester"
278 fi
279
280 cd ${S}/contrib/channel_changers
281 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
282 die "failed to compile red_eye"
283 }
284
285 src_install() {
286
287 einstall INSTALL_ROOT="${D}" || die "install failed"
288 for doc in AUTHORS FAQ UPGRADING ChangeLog README; do
289 test -e "${doc}" && dodoc ${doc}
290 done
291
292 if ! use frontendonly; then
293 insinto /usr/share/mythtv/database
294 doins database/*
295
296 exeinto /usr/share/mythtv
297 doexe "${FILESDIR}/mythfilldatabase.cron"
298
299 newinitd ${FILESDIR}/mythbackend-0.18.2.rc mythbackend
300 newconfd ${FILESDIR}/mythbackend-0.18.2.conf mythbackend
301 fi
302
303 dodoc keys.txt docs/*.{txt,pdf}
304 dohtml docs/*.html
305
306 keepdir /etc/mythtv
307 chown -R mythtv "${D}"/etc/mythtv
308 keepdir /var/log/mythtv
309 chown -R mythtv "${D}"/var/log/mythtv
310
311 insinto /etc/logrotate.d
312 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
313
314 insinto /usr/share/mythtv/contrib
315 doins -r contrib/*
316
317 insinto /usr/share/mythtv/configfiles
318 doins configfiles/*
319
320 if ! use backendonly; then
321 dobin "${FILESDIR}"/runmythfe
322
323 if use autostart; then
324 dodir /etc/env.d/
325 echo 'CONFIG_PROTECT="/home/mythtv/"' > ${D}/etc/env.d/95mythtv
326
327 insinto /home/mythtv
328 newins "${FILESDIR}"/bash_profile .bash_profile
329 newins "${FILESDIR}"/xinitrc .xinitrc
330 fi
331 fi
332
333 if use ieee1394; then
334 dobin firewire_tester || die "failed to install firewire_tester"
335 dodoc contrib/firewire_tester-README
336
337 dobin 6200ch || die "failed to install 6200ch"
338 dodoc contrib/channel_changers/6200ch-README
339
340 dobin sa3250ch || die "failed to install sa3250ch"
341 dodoc contrib/channel_changers/sa3250ch-README
342 fi
343
344 dobin red_eye || die "failed to install red_eye"
345 dodoc contrib/channel_changers/red_eye-README
346
347 if use directv; then
348 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
349 dodoc contrib/channel_changers/d10control-README
350 fi
351 }
352
353 pkg_preinst() {
354 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user"
355 usermod -a -G ${MYTHTV_GROUPS} mythtv
356
357 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
358 }
359
360 pkg_postinst() {
361 if ! use backendonly; then
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 fi
367
368 if ! use frontendonly; then
369 elog
370 elog "To always have MythBackend running and available run the following:"
371 elog "rc-update add mythbackend default"
372 elog
373 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
374 ewarn "chown -R mythtv /path/to/store"
375 fi
376
377 if use autostart; then
378 elog
379 elog "Please add the following to your /etc/inittab file at the end of"
380 elog "the TERMINALS section"
381 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
382 fi
383
384 }
385
386 pkg_info() {
387 /usr/bin/mythfrontend --version
388 }
389
390 pkg_config() {
391 echo "Creating mythtv MySQL user and mythconverg database if it does not"
392 echo "already exist. You will be prompted for your MySQL root password."
393 /usr/bin/mysql -u root -p < /usr/share/mythtv/database/mc.sql
394 }
395
396
397
398 --
399 gentoo-commits@g.o mailing list